[Freeswitch-users] Removing RPID header from 183/200 answer

Igor Olhovskiy igorolhovskiy at gmail.com
Tue Sep 10 08:14:26 UTC 2019


Hi!

I have a strange issue. Phone dials to Freeswitch with this INVITE
INVITE sip:012345678 at mypbx.net;user=phone SIP/2.0
...
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO, UPDATE
Allow-Events: talk, hold, refer, call-info
Supported: timer, 100rel, replaces, from-change
....

But than 200 OK from FS comes with Remote-Party-ID header
SIP/2.0 200 OK
....
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
...
Remote-Party-ID: "012345678" <sip:12345678 at mypbx.net>;party=calling;privacy=off;screen=no (https://link.getmailspring.com/link/171DA887-7BD6-4B11-A4A5-491E6BB82DFF@getmailspring.com/0?redirect=sip%3A12345678%40mypbx.net%3E%3Bparty%3Dcalling%3Bprivacy%3Doff%3Bscreen%3Dno&recipient=ZnJlZXN3aXRjaC11c2Vyc0BsaXN0cy5mcmVlc3dpdGNoLm9yZw%3D%3D)
Main problem - in this header 0 is stripped from number and phone updates called number to without leading 0 and saves in a call list incorrect. (One of ideas why 0 is stripped - regular expression for this destination number is ^0([1-9]\d{4,30})$)
My question is - how to suppress adding RPID header in FS answers?
FS: 1.8.7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190910/52b280d1/attachment.html>


More information about the FreeSWITCH-users mailing list