[Freeswitch-users] My SIP provider is stripping phone numbers !
rico-freeswitch at ricozome.net
rico-freeswitch at ricozome.net
Fri May 25 19:27:34 MSD 2012
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
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list