<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Look inside syslog file to see the line where the errors are and
description of the errors.<br>
<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 10/11/15 12:38, Rizwan Khan wrote:<br>
</div>
<blockquote
cite="mid:CALByW_G+aV=e+tWXx4+uyjK2XcpT4mbA6bmNGd4M=pDgMa4uAQ@mail.gmail.com"
type="cite">
<div dir="ltr">Doesn't work. Still give the bad config errors.</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature">Rizwan Khan<br>
<br>
<br>
</div>
</div>
<br>
<div class="gmail_quote">On Tue, Nov 10, 2015 at 4:13 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> That is conflicting
with other changes to the contact header.<br>
<br>
Try to use msg_apply_changes() before (and after) your
subst operation for changing contact.<span class="HOEnZb"><font
color="#888888"><br>
<br>
Daniel</font></span>
<div>
<div class="h5"><br>
<br>
<div>On 10/11/15 12:00, Rizwan Khan wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I have fix_nated_contact() at
multiple places :(</div>
<div class="gmail_extra"><br clear="all">
<div>
<div>Rizwan Khan<br>
<br>
<br>
</div>
</div>
<br>
<div class="gmail_quote">On Tue, Nov 10, 2015 at
3:59 PM, Rizwan Khan <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:rizkhan@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:rizkhan@gmail.com">rizkhan@gmail.com</a></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">Oh, Yes I do.</div>
<div class="gmail_extra"><span><font
color="#888888"><br clear="all">
<div>
<div>Rizwan Khan<br>
<br>
<br>
</div>
</div>
</font></span>
<div>
<div> <br>
<div class="gmail_quote">On Tue, Nov 10,
2015 at 3:58 PM, Daniel-Constantin
Mierla <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:miconda@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF"
text="#000000"> Do you have
set_contact_alias() or
fix_nated_contact() in your config
file?<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On 10/11/15 11:54, Rizwan
Khan wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">i am trying
it but it doesn't change
the string. Do I need to
use msg_apply_changes() ??
<div><br>
</div>
<div>I am trying that but
it gives syntax error in
the file.</div>
<div><br>
</div>
<div>
<div>log("L_INFO:",
"INVITE::: [$ct]\n");</div>
<div>subst("/^<a
moz-do-not-send="true"><a class="moz-txt-link-freetext" href="Contact:(.*);transport=tls(.*)/Contact:\1;transport=udp\2/i">Contact:(.*);transport=tls(.*)/Contact:\1;transport=udp\2/i</a></a>");</div>
<div>if(msg_apply_changes())</div>
<div>{</div>
<div>
xlog("L_INFO:",
"INVITE::: [$ct]\n");</div>
<div>}</div>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br
clear="all">
<div>
<div>Rizwan Khan<br>
<br>
<br>
</div>
</div>
<br>
<div class="gmail_quote">On
Tue, Nov 10, 2015 at
11:45 AM, Koray
Vatansever <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:koray.vatansever@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:koray.vatansever@gmail.com">koray.vatansever@gmail.com</a></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">Hi
Rizwan,
<div><br>
</div>
<div>You can try the
following:</div>
<div><br>
</div>
<div>subst("/^<a
moz-do-not-send="true"><a class="moz-txt-link-freetext" href="Contact:(.*);transport=tls(.*)/Contact:\1;transport=udp\2/i">Contact:(.*);transport=tls(.*)/Contact:\1;transport=udp\2/i</a></a>");<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">
<div>
<div>On Tue, Nov
10, 2015 at
7:28 AM,
Rizwan Khan <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:rizkhan@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:rizkhan@gmail.com">rizkhan@gmail.com</a></a>></span>
wrote:<br>
</div>
</div>
<blockquote
class="gmail_quote"
style="margin:0
0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div>
<div>
<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> <br>
<div
class="gmail_quote">On
Mon, Nov 9,
2015 at 6:53
PM, Rizwan
Khan <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:rizkhan@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:rizkhan@gmail.com">rizkhan@gmail.com</a></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>
</div>
</div>
_______________________________________________<br>
SIP Express
Router (SER) and
Kamailio
(OpenSER) -
sr-users mailing
list<br>
<a
moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></a><br>
<a
moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer"
target="_blank"><a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________<br>
SIP Express Router
(SER) and Kamailio
(OpenSER) - sr-users
mailing list<br>
<a
moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></a><br>
<a
moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer"
target="_blank"><a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
</div>
</div>
<span><font color="#888888">
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a moz-do-not-send="true" href="http://asipto.com/kat" target="_blank">http://asipto.com/kat</a></pre>
</font></span></div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and
Kamailio (OpenSER) - sr-users
mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org"
target="_blank">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
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>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a moz-do-not-send="true" href="http://asipto.com/kat" target="_blank">http://asipto.com/kat</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/kat">http://asipto.com/kat</a></pre>
</body>
</html>