aboutsummaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-21 14:37:04 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-21 14:37:04 +0000
commit6ba5e74e4b40db25812f0f8fc1814aff3059e874 (patch)
tree69fe2215bfe875fbf3b718a98c79a9e0e836454c /configs
parentfb85d4632c8233e0f171346a4fa5e41c1e1fdcff (diff)
IAX/SIP shrinkcallerid option
The shrinking of caller id removes '(', ' ', ')', non-trailing '.', and '-' from the string. This means values such as 555.5555 and test-test result in 555555 and testtest. There are instances, such as Skype integration, where a specific value is passed via caller id that must be preserved unmodified. This patch makes the shrinking of caller id optional in chan_sip and chan_iax in order to support such cases. By default this option is on to preserve previous expected behavior. (closes issue #15940) Reported by: dimas Patches: v2-15940.patch uploaded by dimas (license 88) 15940_shrinkcallerid_trunk.c uploaded by dvossel (license 671) Tested by: dvossel Review: https://reviewboard.asterisk.org/r/408/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@225032 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs')
-rw-r--r--configs/iax.conf.sample9
-rw-r--r--configs/sip.conf.sample10
2 files changed, 19 insertions, 0 deletions
diff --git a/configs/iax.conf.sample b/configs/iax.conf.sample
index f783615df..1e4d8cea1 100644
--- a/configs/iax.conf.sample
+++ b/configs/iax.conf.sample
@@ -324,6 +324,15 @@ autokill=yes
;10.1.2.0/255.255.255.0 = 32
;
+; The shrinkcallerid function removes '(', ' ', ')', non-trailing '.', and '-' not
+; in square brackets. For example, the caller id value 555.5555 becomes 5555555
+; when this option is enabled. Disabling this option results in no modification
+; of the caller id value, which is necessary when the caller id represents something
+; that must be preserved. This option can only be used in the [general] section.
+; By default this option is on.
+;
+;shrinkcallerid=yes ; on by default
+
; Guest sections for unauthenticated connection attempts. Just specify an
; empty secret, or provide no secret section.
;
diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample
index bfabeb63a..186ebd8f6 100644
--- a/configs/sip.conf.sample
+++ b/configs/sip.conf.sample
@@ -189,6 +189,16 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
;
;regcontext=sipregistrations
;
+
+; The shrinkcallerid function removes '(', ' ', ')', non-trailing '.', and '-' not
+; in square brackets. For example, the caller id value 555.5555 becomes 5555555
+; when this option is enabled. Disabling this option results in no modification
+; of the caller id value, which is necessary when the caller id represents something
+; that must be preserved. This option can only be used in the [general] section.
+; By default this option is on.
+;
+;shrinkcallerid=yes ; on by default
+
;--------------------------- RTP timers ----------------------------------------------------
; These timers are currently used for both audio and video streams. The RTP timeouts
; are only applied to the audio channel.