<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">If you want to handle Privacy and P-Asserted-Id headers manually, it is best to set sip_cid_type to "none".</div><div class=""><br class=""></div><div class="">Also, if you use the "{...}sofia/gateway/..." syntax, you don't need to add the "_nolocal_" prefix as the vars between the curly braces are <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">only</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""> </span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">set</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""> </span>for the b-leg. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">Best Regards,<br class="">-- <br class="">Vallimamod Abdullah<br class="">SIP Solutions<br class=""><a href="mailto:vma@sip.solutions" class="">vma@sip.solutions</a><br class="">linkedin.com/in/vallimamod<br class="">.<br class=""><br class=""></div></div>
</div>


<div><br class=""><blockquote type="cite" class=""><div class="">On 5 Feb 2020, at 10:52, Markus Bönke <<a href="mailto:mbodbg@gmx.net" class="">mbodbg@gmx.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I made a couple of more tests and found out that it depends on the cid_type. <br class="">So if the sip_cid_type is set to rpid (or not set as the default is rpid) <br class="">then the deletion of the Privacy header works:<br class=""><br class=""><br class="">EXECUTE [depth=0] <a href="mailto:sofia/internal/+4999999999999@192.168.12.13" class="">sofia/internal/+4999999999999@192.168.12.13</a> bridge({sip_cid_type=rpid,_nolocal_sip_h_Privacy=}sofia/gateway/asterisk/+4933333333332)<br class=""><br class="">INVITE <a href="sip:+4933333333332@192.168.12.18" class="">sip:+4933333333332@192.168.12.18</a> SIP/2.0<br class="">Via: SIP/2.0/UDP 192.168.12.2;rport;branch=z9hG4bK55vN1XK3UZNHQ<br class="">Max-Forwards: 69<br class="">From: "+4999999999999" <<a href="sip:+4999999999999@192.168.12.2" class="">sip:+4999999999999@192.168.12.2</a>>;tag=Fyr8m981N4Dea<br class="">To: <<a href="sip:+4933333333332@192.168.12.18" class="">sip:+4933333333332@192.168.12.18</a>><br class="">Call-ID: 0f549364-c29d-1238-6baf-001c42a16581<br class="">CSeq: 15893737 INVITE<br class="">Contact: <<a href="sip:gw+asterisk@192.168.12.2:5060;transport=udp;gw=asterisk" class="">sip:gw+asterisk@192.168.12.2:5060;transport=udp;gw=asterisk</a>><br class="">User-Agent: FreeSWITCH-mod_sofia/1.10.2-release-13-f7bdd3845a~64bit<br class="">Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY<br class="">Supported: timer, path, replaces<br class="">Allow-Events: talk, hold, conference, refer<br class="">Content-Type: application/sdp<br class="">Content-Disposition: session<br class="">Content-Length: 220<br class="">Remote-Party-ID: "+4999999999999" <<a href="sip:+4999999999999@192.168.12.2" class="">sip:+4999999999999@192.168.12.2</a>>;party=calling;screen=yes;privacy=off<br class=""><br class=""><br class="">but when the cid_type is set to pid, setting "_nolocal_sip_h_Privacy=" has no effect, the Privacy header is kept.<br class=""><br class="">EXECUTE [depth=0] <a href="mailto:sofia/internal/+4999999999999@192.168.12.13" class="">sofia/internal/+4999999999999@192.168.12.13</a> bridge({sip_cid_type=pid,_nolocal_sip_h_Privacy=}sofia/gateway/asterisk/+4933333333332)<br class=""><br class=""><br class="">INVITE <a href="sip:+4933333333332@192.168.12.18" class="">sip:+4933333333332@192.168.12.18</a> SIP/2.0<br class="">Via: SIP/2.0/UDP 192.168.12.2;rport;branch=z9hG4bK2aHBvc1r44jSm<br class="">Max-Forwards: 69<br class="">From: "+4999999999999" <<a href="sip:+4999999999999@192.168.12.2" class="">sip:+4999999999999@192.168.12.2</a>>;tag=Dc6pHK7tUj18j<br class="">To: <<a href="sip:+4933333333332@192.168.12.18" class="">sip:+4933333333332@192.168.12.18</a>><br class="">Call-ID: c34ec1cd-c29c-1238-6baf-001c42a16581<br class="">CSeq: 15893673 INVITE<br class="">Contact: <<a href="sip:gw+asterisk@192.168.12.2:5060;transport=udp;gw=asterisk" class="">sip:gw+asterisk@192.168.12.2:5060;transport=udp;gw=asterisk</a>><br class="">User-Agent: FreeSWITCH-mod_sofia/1.10.2-release-13-f7bdd3845a~64bit<br class="">Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY<br class="">Supported: timer, path, replaces<br class="">Allow-Events: talk, hold, conference, refer<br class="">Privacy: none<br class="">Content-Type: application/sdp<br class="">Content-Disposition: session<br class="">Content-Length: 220<br class="">P-Asserted-Identity: "+4999999999999" <<a href="sip:+4999999999999@192.168.12.2" class="">sip:+4999999999999@192.168.12.2</a>><br class=""><br class=""><br class="">Is this by design or a bug?<br class=""><br class="">Thanks<br class=""><br class="">Markus<br class=""><br class=""><blockquote type="cite" class="">Am 05.02.2020 um 07:15 schrieb Markus Bönke <<a href="mailto:mbodbg@gmx.net" class="">mbodbg@gmx.net</a>>:<br class=""><br class="">Perfect, that works! <br class=""><br class="">Thank you<br class=""><br class="">Markus<br class=""><blockquote type="cite" class="">Am 04.02.2020 um 23:20 schrieb Vallimamod Abdullah <<a href="mailto:vma@vallimamod.org" class="">vma@vallimamod.org</a>>:<br class=""><br class="">Hi,<br class=""><br class="">For sip headers you need to set an empty value to remove them: {sip_h_Privacy=} <br class=""><br class="">or before the bridge: <br class=""><br class=""><action application="export" data="_nolocal_sip_h_Privacy="/> <br class=""><br class="">the "_nolocal_" (or "nolocal:") prefix tells freeswitch to set the var only on b-leg.<br class=""><br class="">Hope this helps.<br class=""><br class=""><br class=""><br class="">Best Regards,<br class="">-- <br class="">Vallimamod Abdullah<br class="">SIP Solutions<br class=""><a href="mailto:vma@sip.solutions" class="">vma@sip.solutions</a><br class="">linkedin.com/in/vallimamod<br class="">.<br class=""><br class=""><br class=""><blockquote type="cite" class="">On 4 Feb 2020, at 20:44, Markus Bönke <mbodbg@gmx.net> wrote:<br class=""><br class="">Unfortunately I doesn’t work. I tried:<br class=""><br class=""><action application="bridge" data="{sip_h_Privacy=_undef_}sofia/gateway/asterisk/+4933333333332" /><br class=""><br class="">and see <br class=""><br class="">Privacy: _undef_<br class=""><br class="">In the sip INVITE message.<br class=""><br class="">Thanks <br class=""><br class="">Markus <br class=""><br class=""><blockquote type="cite" class="">Am 03.02.2020 um 16:48 schrieb Vallimamod Abdullah <vma@vallimamod.org>:<br class=""><br class="">Hi,<br class=""><br class="">You can try with _undef_, it works in dialplan as <action application="set" data="variable=_undef_"/><br class=""><br class=""><br class="">Best Regards,<br class="">-- <br class="">Vallimamod Abdullah<br class="">SIP Solutions<br class="">vma@sip.solutions<br class="">linkedin.com/in/vallimamod<br class="">.<br class=""><br class=""><br class=""><blockquote type="cite" class="">On 3 Feb 2020, at 16:07, Markus Bönke <mbodbg@gmx.net> wrote:<br class=""><br class="">Hello NG,<br class=""><br class="">I know it is possible to unset a variable in the dial plan by using the „unset“ application like:<br class=""><br class=""><application="unset" data="variable_name“><br class=""><br class="">But is it also possible to unset a variable within a bridge command like:<br class=""><br class="">bridge({variable_name="_unset_"}sofia/gateway/mygateway/+49123456789) <br class=""><br class="">_unset_ does not work with FS 1.10.2 but maybe there is any other „special value“ to unset? <br class=""><br class="">Thanks and regards<br class=""><br class="">Markus<br class=""><br class=""><br class=""><br class="">_________________________________________________________________________<br class=""><br class="">The FreeSWITCH project is sponsored by SignalWire https://signalwire.com<br class="">Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br class="">Build your next product on our scalable cloud platform.<br class=""><br class="">Join our online community to chat in real time https://signalwire.community<br class=""><br class="">Professional FreeSWITCH Services<br class="">sales@freeswitch.com<br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com<br class=""></blockquote><br class=""><br class=""><br class=""><br class=""><br class=""><br class="">_________________________________________________________________________<br class=""><br class="">The FreeSWITCH project is sponsored by SignalWire https://signalwire.com<br class="">Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br class="">Build your next product on our scalable cloud platform.<br class=""><br class="">Join our online community to chat in real time https://signalwire.community<br class=""><br class="">Professional FreeSWITCH Services<br class="">sales@freeswitch.com<br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com<br class=""></blockquote><br class="">_________________________________________________________________________<br class=""><br class="">The FreeSWITCH project is sponsored by SignalWire https://signalwire.com<br class="">Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br class="">Build your next product on our scalable cloud platform.<br class=""><br class="">Join our online community to chat in real time https://signalwire.community<br class=""><br class="">Professional FreeSWITCH Services<br class="">sales@freeswitch.com<br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com<br class=""></blockquote><br class=""><br class="">_________________________________________________________________________<br class=""><br class="">The FreeSWITCH project is sponsored by SignalWire https://signalwire.com<br class="">Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br class="">Build your next product on our scalable cloud platform.<br class=""><br class="">Join our online community to chat in real time https://signalwire.community<br class=""><br class="">Professional FreeSWITCH Services<br class="">sales@freeswitch.com<br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com<br class=""></blockquote><br class=""><br class="">_________________________________________________________________________<br class=""><br class="">The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" class="">https://signalwire.com</a><br class="">Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br class="">Build your next product on our scalable cloud platform.<br class=""><br class="">Join our online community to chat in real time <a href="https://signalwire.community" class="">https://signalwire.community</a><br class=""><br class="">Professional FreeSWITCH Services<br class=""><a href="mailto:sales@freeswitch.com" class="">sales@freeswitch.com</a><br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com<br class=""></blockquote><br class=""><br class="">_________________________________________________________________________<br class=""><br class="">The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" class="">https://signalwire.com</a><br class="">Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br class="">Build your next product on our scalable cloud platform.<br class=""><br class="">Join our online community to chat in real time <a href="https://signalwire.community" class="">https://signalwire.community</a><br class=""><br class="">Professional FreeSWITCH Services<br class=""><a href="mailto:sales@freeswitch.com" class="">sales@freeswitch.com</a><br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com</div></div></blockquote></div><br class=""></div></div></body></html>