[Freeswitch-users] My SIP provider is stripping phone numbers !

Peter Olsson peter.olsson at visionutveckling.se
Fri May 25 19:46:30 MSD 2012


Try setting effective_caller_id_number before you bridge the call.

/Peter

25 maj 2012 kl. 17:34 skrev "rico-freeswitch at ricozome.net" <rico-freeswitch at ricozome.net>:

> Hi list,
> 
> I have a stupid issue with my SIP provider "SCT Telecom" (in France) :
> it strip the first digit of the caller pĥone number !
> After many support requests they finally reconised the problem is at
> their side, but their answer is they'll not fix at their side and I must
> fix it at my side :-/
> 
> So I had a look on variables on public context and I see this :
> 
> Channel-Name: [sofia/external/661864068 at sct-voip.fr]
> Caller-Username: [661864068]
> Caller-Caller-ID-Name: [661864068]
> Caller-Caller-ID-Number: [661864068]
> Caller-ANI: [661864068]
> Caller-Channel-Name: [sofia/external/661864068 at sct-voip.fr]
> variable_sip_from_user: [661864068]
> variable_sip_from_uri: [661864068 at sct-voip.fr]
> variable_sip_from_user_stripped: [661864068]
> variable_sip_full_from:
> [<sip:661864068 at sct-voip.fr;user=phone>;tag=21b05c16]
> variable_sip_contact_user: [661864068]
> variable_sip_contact_uri: [661864068 at 86.64.146.248]
> variable_channel_name: [sofia/external/661864068 at sct-voip.fr]
> variable_caller_id_number: [661864068]
> 
> 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.
> 
> So I wonder I handle the problem the wrong way... Any help would be
> appreciated :)
> 
> Thanks and regards,
> 
> -- 
> Rico
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> Join Us At ClueCon - Aug 7-9, 2012
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> !DSPAM:4fbfa38b32765983520329!
> 



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list