[Freeswitch-users] sip_invite_from_params

George Sapak sat at calgaryit.com
Tue Feb 7 19:29:49 MSK 2012

i already have it setup, my calls go through to the right extensions and I have done some rewitting in public.xml file, but I have having some wierdness on the handsets with call ID, when the phone rings the ID show correctly but when its picked up it shows it with the ;national... sting included.

Here is how I have done the routing and rewritte:

<extension name="105">
   <condition expression="public" field="context"/>
   <condition field="destination_number" expression="^403XXXXXXX(.+)$">
   <action application="transfer" data="105 XML default"/>

<extension name="set caller id" continue="true">
<condition field="caller_id_number" expression="^(\d+)">
 <action application="set" data="caller_id_number=$1"/>
 <action application="set" data="effective_caller_id_number=$1"/>

Thank You,

----- Original Message -----
From: "Brian West" <brian at freeswitch.org>
To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
Sent: Tuesday, February 7, 2012 8:43:54 AM
Subject: Re: [Freeswitch-users] sip_invite_from_params

Why? What is your goal? This should be a simple dialplan rewrite really. 


On Feb 7, 2012, at 9:27 AM, George Sapak wrote: 

can someone give me an example in use, I have looked at the wiki and its pretty unclear, I am trying to remove a string in an invite -> ;phone-context=national 

INVITE sip:403XXXXXXX;phone-context=national at;user=phone SIP/2.0 
Via: SIP/2.0/UDP;branch=z9hG4bKght6ecqg4eh7d5sluaj9cl2rr4 
From: "Caller"< sip:403YYYYYYY;phone-context=national at;user=phone;isup-oli=00 >;tag=SDj6q1a01-98964 
To: < sip:403XXXXXXX;phone-context=national at;user=phone > 
Call-ID: SDj6q1a01-2afa0c6426482b0cfa2885f32878c86c-o0t3g30 
CSeq: 62218 INVITE 
Content-Type: application/sdp 
Contact: < sip:403YYYYYYY;phone-context=national at;transport=udp > 
User-Agent: Nortel SESM 
Max-Forwards: 19 
Supported: com.nortelnetworks.firewall,p-3rdpartycontrol,nosec,join,x-nortel-sipvc,com.nortelnetworks.im.encryption,r eplaces,100rel,tdialog 
x-nt-corr-id: 871f3514-29e7-1b21-a633-000e0cb7d3a0 
x-nt-location: -1 
Content-Length: 206 
Route: < sip:403XXXXXXX;phone-context=national at;user=phone;lr > 

Thank You, 

Brian West 
FreeSWITCH Solutions, LLC 
Phone: +1 (918) 420-9266 
Fax: +1 (918) 420-9267 
brian at freeswitch.org 

Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org

Official FreeSWITCH Sites

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org

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