[Freeswitch-users] Remote-Party-ID manipulation in SIP 200 OK

Neil Burgess neil.burgess at redmatter.com
Wed Aug 25 11:34:47 PDT 2010


Hi,

I am bridging a call through FS and have a problem with a Remote-Party-ID header being added to the returned 200 OK SIP message that is sent back on the A-Leg!  I need to either re-write or strip it

The scenario is that:-

1/ a user dials a number such as 07740777777
2/ we have to rewrite the number in the dial plan to 447740980777777 for routing to the upstream provider on the B leg
3/ the call is then bridged through to our upstream provider who attempts to connect the call successfully, returning a 200 OK.
4/ the a leg then has the Remote-Party-ID field inserted (looks to be done by FS) into the responding 200 OK, looking something like Remote-Party-ID: "447740777777" sip:07740777777 at 172.30.98.4

Unfortunately the Yealink phones we use then re-write the number from the original dialled to the number provided in the Remote-Party-ID (e.g. 447740980777777), which ends up in the phone's history. This now causes redials to fail!

Any ideas on whether we can remove this header/ re-write or indeed control the number inserted into the display name component of the Remote Party ID?

Many thanks,
Neil


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100825/9a14a492/attachment-0001.html 


More information about the FreeSWITCH-users mailing list