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"/> </condition> </extension> public.xml <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"/> </condition> </extension> Thank You, George ----- Original Message ----- From: "Brian West" <brian@freeswitch.org> To: "FreeSWITCH Users Help" <freeswitch-users@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. /b 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@10.185.16.170;user=phone SIP/2.0 Via: SIP/2.0/UDP 10.185.16.169:5060;branch=z9hG4bKght6ecqg4eh7d5sluaj9cl2rr4 From: "Caller"< sip:403YYYYYYY;phone-context=national@10.185.16.169;user=phone;isup-oli=00 >;tag=SDj6q1a01-98964 To: < sip:403XXXXXXX;phone-context=national@10.185.16.170;user=phone > Call-ID: SDj6q1a01-2afa0c6426482b0cfa2885f32878c86c-o0t3g30 CSeq: 62218 INVITE Content-Type: application/sdp Contact: < sip:403YYYYYYY;phone-context=national@10.185.16.169:5060;transport=udp > User-Agent: Nortel SESM 14.0.6.0 Max-Forwards: 19 Supported: com.nortelnetworks.firewall,p-3rdpartycontrol,nosec,join,x-nortel-sipvc,com.nortelnetworks.im.encryption,r eplaces,100rel,tdialog Allow: UPDATE,REFER x-nt-corr-id: 871f3514-29e7-1b21-a633-000e0cb7d3a0 x-nt-location: -1 Content-Length: 206 Route: < sip:403XXXXXXX;phone-context=national@10.185.16.170:5060;user=phone;lr > Thank You, George -- Brian West FreeSWITCH Solutions, LLC Phone: +1 (918) 420-9266 Fax: +1 (918) 420-9267 brian@freeswitch.org http://www.freeswitch.org _________________________________________________________________________ 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 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