]> git.ipfire.org Git - thirdparty/asterisk.git/commit
IAX/SIP shrinkcallerid option
authorDavid Vossel <dvossel@digium.com>
Wed, 21 Oct 2009 14:37:04 +0000 (14:37 +0000)
committerDavid Vossel <dvossel@digium.com>
Wed, 21 Oct 2009 14:37:04 +0000 (14:37 +0000)
commitbedd6eb8a4d3380760f30430a3f1f86d66523a5d
tree69fe2215bfe875fbf3b718a98c79a9e0e836454c
parent9d658502027f278566938349289714cf6f21ad5f
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@225032 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_iax2.c
channels/chan_sip.c
configs/iax.conf.sample
configs/sip.conf.sample