<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    Contact header is not used for routing of current message, it is
    there to indicate to the receiver where to send back follow up
    requests.<br>
    <br>
    As I can see in the trace you attached, the request URI doesn't have
    any transport parameter, which means to use UDP, the transport that
    kamailio uses for relaying.<br>
    <br>
    You can enforce a transport for kamailio, by adding transport
    parameter to uri or using some dedicated functions -- see the readme
    of tm module.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 17/11/14 23:48, Andrew Mason wrote:<br>
    </div>
    <blockquote
cite="mid:CANjSGvqfagfLOhST5HrLes=s5EcdbmfcDS8-bq4Ty33LLfsdTg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi All,<br>
              <br>
            </div>
            I am testing SIP messages through the proxy from one client
            to another and the sender specifies TCP as the transport but
            Kamailio seems to overwrite this and chooses UDP (TCP is
            specified in the contact header).<br>
            <br>
          </div>
          The receivers are manually registered using kamctl ul add so i
          am not sure if this is forcing UDP or something else - I have
          redirected the messages to wireshark and attached an example
          of Kamailio adding its VIA headers but specifying UDP (taken
          from destination).<br>
          <br>
        </div>
        <div>Basically I am getting TCP to Proxy the UDP from Proxy to
          Dest?<br>
        </div>
        <div><br>
          Thanks<br>
        </div>
        Andrew<br>
        <br>
        <img alt="Inline images 1"
          src="cid:part1.06080609.04090206@gmail.com" height="344"
          width="517"><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></pre>
  </body>
</html>