<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>can you send the ngrep trace for such case? I would like to look
      at the headers to understand properly what do you mean.</p>
    <p>Cheers,</p>
    <p>Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 26/04/16 15:23, huseyin kalyoncu
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPf+86WZ4hr60WxSxUc5JCiuF+6H2o3gXna5myvgtaqq_UtDFw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello
        <div><br>
        </div>
        <div>I am trying to implement click 2 call functionality on
          Kamailio with dlg_bridge.</div>
        <div>But It seems that Kamailio routes REFER messages to devices
          according to Contact field of location table instead of
          Received field. </div>
        <div>But if the the IP in the Contact field is private REFER
          messages are failing so </div>
        <div>does the dlg_bridge.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I called dlg_bridge in the config like this:</div>
        <div><br>
        </div>
        <div>dlg_bridge(<a class="moz-txt-link-rfc2396E" href="sip:$param1">"sip:$param1"</a>, <a class="moz-txt-link-rfc2396E" href="sip:$param2">"sip:$param2"</a>,
          <a class="moz-txt-link-rfc2396E" href="sip:IP_ADDRESS_OF_KAMAILIO:5060">"sip:IP_ADDRESS_OF_KAMAILIO:5060"</a>);<br>
        </div>
        <div><br>
        </div>
        <div>It rings the device in $param1 but after answering on that
          device</div>
        <div>Kamailio fails to send REFER if the Contact field for that
          device is Private IP.</div>
        <div>So it fails to initiate a call.</div>
        <div><br>
        </div>
        <div>How can I force Kamailio to use Received field for REFER
          messages instead of Contact field?<br>
        </div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div>Huseyin</div>
        <div><br>
        </div>
        <div> </div>
      </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://www.asipto.com">http://www.asipto.com</a>
<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>
Kamailio World Conference, Berlin, May 18-20, 2016 - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>