My SIP provider is stripping phone numbers !
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@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@sct-voip.fr] variable_sip_from_user: [661864068] variable_sip_from_uri: [661864068@sct-voip.fr] variable_sip_from_user_stripped: [661864068] variable_sip_full_from: [<sip:661864068@sct-voip.fr;user=phone>;tag=21b05c16] variable_sip_contact_user: [661864068] variable_sip_contact_uri: [661864068@86.64.146.248] variable_channel_name: [sofia/external/661864068@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
Try setting effective_caller_id_number before you bridge the call. /Peter 25 maj 2012 kl. 17:34 skrev "rico-freeswitch@ricozome.net" <rico-freeswitch@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@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@sct-voip.fr] variable_sip_from_user: [661864068] variable_sip_from_uri: [661864068@sct-voip.fr] variable_sip_from_user_stripped: [661864068] variable_sip_full_from: [<sip:661864068@sct-voip.fr;user=phone>;tag=21b05c16] variable_sip_contact_user: [661864068] variable_sip_contact_uri: [661864068@86.64.146.248] variable_channel_name: [sofia/external/661864068@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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@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!
On Fri, May 25, 2012 at 05:27:34PM +0200, rico-freeswitch@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,
participants (3)
-
Paul Cupis
-
Peter Olsson
-
rico-freeswitch@ricozome.net