[Freeswitch-users] My SIP provider is stripping phone numbers !
Paul Cupis
paul at cupis.co.uk
Fri May 25 19:50:29 MSD 2012
On Fri, May 25, 2012 at 05:27:34PM +0200, rico-freeswitch at ricozome.net wrote:
> I have a stupid issue with my SIP provider "SCT Telecom" (in France) :
> it strip the first digit of the caller p??one number !
This is not abnormal - the leading zero is not really present in the CLI
on the providers network, just added for presentation to end-users.
> The expected caller number is 0661864068, and as you can see is stripped
> to 661864068
>
> So I added this in the begining of my public dialplan :
>
> <extension name="public_sct" continue="true">
> <condition field="destination_number"
> expression="^01645327|^01645380|^01714170">
> <action application="ring_ready"/>
> <action application="set" data="ringback=${fr-ring}"/>
> <action application="set" data="call_direction=inbound"/>
> <action application="set"
> data="caller_id_number=0${caller_id_number}"/>
> </condition>
> </extension>
>
> It works as expected as the variable caller_id_number is updated :
> variable_caller_id_number: [0661864068]
> But when it starts to the default context dialplan, the caller number is
> still truncated as 661864068.
You probably want to look at using effective_caller_id_name/number rather
than trying to change caller_id_name/number.
http://wiki.freeswitch.org/wiki/Channel_Variables#Caller_ID_Related
<action application="set"
data="effective_caller_id_number=0${caller_id_number}"/>
Regards,
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list