<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Do you have set_contact_alias() or fix_nated_contact() in your
    config file?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 10/11/15 11:54, Rizwan Khan wrote:<br>
    </div>
    <blockquote
cite="mid:CALByW_ESqmZ02950+3VCMTDe5snJzbqrSJSfBjO+PmOmFV1UPQ@mail.gmail.com"
      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 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>");</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 class="gmail_signature">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">koray.vatansever@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">Hi Rizwan,
              <div><br>
              </div>
              <div>You can try the following:</div>
              <div><br>
              </div>
              <div>subst("/^<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>");<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 class="h5">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 class="h5">
                      <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">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>
            <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">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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<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>
</pre>
    </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>