res_pjsip: Add ignore_uri_user_options option.

This implements the chan_sip legacy_useroption_parsing option but with a
better name.

* Made the caller-id number and redirecting number strings obtained from
incoming SIP URI user fields always truncated at the first semicolon.
People don't care about anything after the semicolon showing up on their
displays even though the RFC allows the semicolon.

ASTERISK-26316 #close
Reported by: Kevin Harwell

Change-Id: Ib42b0e940dd34d84c7b14bc2e90d1ba392624f62
This commit is contained in:
Richard Mudgett
2016-08-29 18:08:22 -05:00
parent 7580a736bb
commit 30af92e78d
16 changed files with 276 additions and 17 deletions

11
CHANGES
View File

@@ -60,6 +60,17 @@ res_pjsip
configure these options then you already had to do a reload after making
changes.
* Added "ignore_uri_user_options" global configuration option for
compatibility with an ITSP that sends URI user field options. When enabled
the user field is truncated at the first semicolon.
Example:
URI: "sip:1235557890;phone-context=national@x.x.x.x;user=phone"
The user field is "1235557890;phone-context=national"
Which is truncated to this: "1235557890"
Note: The caller-id and redirecting number strings obtained from incoming
SIP URI user fields are now always truncated at the first semicolon.
app_confbridge
------------------
* Some sounds played into the bridge are played asynchronously. This, for