[asterisk-dev] [Code Review] SIP/IAX2 'shrinkcallerid' option

dimas at dataart.com dimas at dataart.com
Mon Oct 19 16:55:29 CDT 2009


I also agree that forced shrinking is a very strange and unexpected thing.
However:
1. if anyone allows dialing like '555-55-55 at myhost' these will break.
2. It is cumbersome to do shrinking with dialplan unless some SHRINK_NUMBER function is provided.

Because of this, it can be a big surprise for existing users if in some minor Asterisk release they have such a noticeable change.
To me it makes sense to add this option to 1.4 branch (to fix the issue) and possibly change default and document it in CHANGES for trunk. (And of course to remove it completely in couple of years :)

Regards,
Dmitry Andrianov

-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com [mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Matthew Nicholson
Sent: Monday, October 19, 2009 8:51 PM
To: David Vossel; Matthew Nicholson; Asterisk Developers
Subject: Re: [asterisk-dev] [Code Review] SIP/IAX2 'shrinkcallerid' option


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/408/#review1186
-----------------------------------------------------------

Ship it!


Looks good to me, but I am of the opinion that this option should be off by default.  Any callerid manipulation like this could be done in the dialplan.  Without knowing the reasoning behind the original behavior, I can't really comment further.

- Matthew


On 2009-10-19 09:58:09, David Vossel wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/408/
> -----------------------------------------------------------
> 
> (Updated 2009-10-19 09:58:09)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> 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.
> 
> I don't know the history or purpose of why we shrink caller id values to begin with, perhaps this behavior can be deprecated in the future.
> 
> 
> This addresses bug 15940.
>     https://issues.asterisk.org/view.php?id=15940
> 
> 
> Diffs
> -----
> 
>   /trunk/channels/chan_iax2.c 224490 
>   /trunk/channels/chan_sip.c 224490 
>   /trunk/configs/iax.conf.sample 224490 
>   /trunk/configs/sip.conf.sample 224490 
> 
> Diff: https://reviewboard.asterisk.org/r/408/diff
> 
> 
> Testing
> -------
> 
> tested 'shrinkcallerid' option in both chan_sip and chan_iax
> 
> 
> Thanks,
> 
> David
> 
>


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list