<div dir="ltr"><div><div>Hi Grant,<br><br><br></div>IMHO there is no way dont copy the sip-x header to the new call-leg.<br><br></div>The simple way to resolve this, is to remove your kamailio sip-x headers after you read it and before you create the b-leg.<br>
<br><a href="http://wiki.freeswitch.org/wiki/Strip_SIP_Headers">http://wiki.freeswitch.org/wiki/Strip_SIP_Headers</a><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/26 Grant Bagdasarian <span dir="ltr"><<a href="mailto:GB@cm.nl" target="_blank">GB@cm.nl</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">Hello,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So I found this page which shows how to remove custom SIP headers by using the unset application and passing in the custom header name prefixed by sip_h_[HEADER].<u></u><u></u></p><p class="MsoNormal">
Is there a configuration setting which can be set to disallow custom headers being copied when bridging calls? <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The scenario is as following; <u></u><u></u></p>
<p><u></u><span>1)<span style="font:7.0pt "Times New Roman""> </span></span><u></u>Each call is going through a Kamailio SIP Proxy first, which adds some custom headers.<u></u><u></u></p><p><u></u><span>2)<span style="font:7.0pt "Times New Roman""> </span></span><u></u>Kamailio routes the INVITE to one of our FS SBC’s.<u></u><u></u></p>
<p><u></u><span>3)<span style="font:7.0pt "Times New Roman""> </span></span><u></u>FS bridges the call to the carrier.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">When FS creates a new call leg towards the carrier, I would expect it to NOT copy the custom headers added by Kamailio, but it does. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">This is my dialplan:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""> <extension name="internal_to_external"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""> <condition field="${sip_req_host}" expression="^10\.0\.0\.1$"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""> <action application="set" data="hangup_after_bridge=false"/><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""> <action application="set" data="continue_on_fail=true"/><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""> <action application="privacy" data="full"/><u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:9.0pt;font-family:"Courier New""> <action application="set" data="sip_h_Privacy=id"/><u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:9.0pt;font-family:"Courier New""> <action application="set" data="privacy=yes"/><u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""> <action application="bridge" data="sofia/external/${sip_req_uri}"/><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""> </condition><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> </extension><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal">Did I configure something wrong, or is this just normal behavior?<u></u><u></u></p></div>
</div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Mit freundlichen Grüßen<br>*Karsten Horsmann*<br>
</div>