<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,<br>
</p>
<br>
<div class="moz-cite-prefix">On 31.03.17 09:53, narayan panigrahi
wrote:<br>
</div>
<blockquote
cite="mid:CY4PR13MB15262A3CC4ADD6EAC9BED1F0B6370@CY4PR13MB1526.namprd13.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
dir="ltr">
<p>Hi All,</p>
<p><br>
</p>
<p>I have a architecture of pjsip,kamailio,freeswitch and one
external server.</p>
<p>When kamailio is receiving "407"-proxy authentication
required from the external server it sends to freeswitch and
received "407" from freeswitch.But when replying back to
kamailio the freeswitch is adding some extra headers in that
"407".</p>
<p>Now I need to send the message from kamailio to pjsip the
same thing received from external server.So I need to replace
the message received from external server with the message
received from freeswitch at kamailio.</p>
<p><br>
</p>
<p>I am using redis db to store the message.Can anybody help me
how to configure the kamailio so that it will replace the
message with freeswitch message and send the original message
received before i.e. from external server.<br>
</p>
<p>Any suggestion will be highly appreciated.</p>
<p><br>
</p>
</div>
</blockquote>
you should not send to the device a SIP response that was supposed
to go to FreeSwitch, because there are some headers that must be
processed by FreeSwitch, such as Via. By sending the response to the
device, then the device will have to send it to FreeSwitch.<br>
<br>
If you just want to remove some headers added by FreeSwitch, use
remove_hf() in reply_route or onreply_route[x].<br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>