<div dir="ltr">Hi Rizwan,<div><br></div><div>You can try the following:</div><div><br></div><div>subst("/^Contact:(.*);transport=tls(.*)/Contact:\1;transport=udp\2/i");<br></div><div><br></div><div>On the other hand, there should not be any other contact header modification in your script; for example set_contact_alias().</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 10, 2015 at 7:28 AM, Rizwan Khan <span dir="ltr"><<a href="mailto:rizkhan@gmail.com" target="_blank">rizkhan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Guys,<div><br></div><div>Is this a stupid question or this just cannot be done?</div><div><br></div><div>Any help will be highly appreciated.</div><div><br></div><div>Thanks,</div></div><div class="gmail_extra"><br clear="all"><div><div>Rizwan Khan<br><br><br></div></div><div><div class="h5">
<br><div class="gmail_quote">On Mon, Nov 9, 2015 at 6:53 PM, Rizwan Khan <span dir="ltr"><<a href="mailto:rizkhan@gmail.com" target="_blank">rizkhan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I want to remove the transport=TLS from the contact header.</div><div><br></div><div>How can I do that inside Kamailio?  The flow is an under:</div><div><br></div><div><br></div><div>Client --------> Kamailio -------------> FS</div><div>           TLS                       UDP</div><div><br></div><div><br></div><div>Client <-------- Kamailio <------------- FS<br></div><div>           TLS                       UDP<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>FS gets a request on udp but it complains about TLS profile as the contact header has the transport=TLS. Since its receing traffic on UDP, if I only get rid of the value from the Contact Header, it would be great.</div><div><br></div><div><br></div><div>Thanks,</div><span><font color="#888888"><div><br></div><div> </div><div>Rizwan Khan<br></div><div><div><br><br></div></div>
</font></span></div>
</blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>