summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2016-08-29 18:08:22 -0500
committerRichard Mudgett <rmudgett@digium.com>2016-09-09 17:11:07 -0500
commitb7ec070cd754db0d6e91f7822e68f1bb2ad1b0f2 (patch)
tree4d42efafb1652b9786deeb52f6573c29d04a22ae /configs
parent236761a5b2efc54a5baa32febdaa869a669c7ce7 (diff)
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
Diffstat (limited to 'configs')
-rw-r--r--configs/samples/pjsip.conf.sample16
1 files changed, 16 insertions, 0 deletions
diff --git a/configs/samples/pjsip.conf.sample b/configs/samples/pjsip.conf.sample
index 0d1c03909..8cd732a2a 100644
--- a/configs/samples/pjsip.conf.sample
+++ b/configs/samples/pjsip.conf.sample
@@ -987,6 +987,22 @@
; If disabled then unsolicited mwi will start processing
; on the endpoint's next contact update.
+;ignore_uri_user_options=no ; Enable/Disable ignoring SIP URI user field options.
+ ; If you have this option enabled and there are semicolons
+ ; in the user field of a SIP URI then the field is truncated
+ ; at the first semicolon. This effectively makes the semicolon
+ ; a non-usable character for PJSIP endpoint names, extensions,
+ ; and AORs. This can be useful for improving compatability with
+ ; an ITSP that likes to use user options for whatever reason.
+ ; Example:
+ ; URI: "sip:1235557890;phone-context=national@x.x.x.x;user=phone"
+ ; The user field is "1235557890;phone-context=national"
+ ; Which becomes this: "1235557890"
+ ;
+ ; Note: The caller-id and redirecting number strings obtained
+ ; from incoming SIP URI user fields are always truncated at the
+ ; first semicolon.
+
; MODULE PROVIDING BELOW SECTION(S): res_pjsip_acl
;==========================ACL SECTION OPTIONS=========================
;[acl]