<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <tt>The registration info is used only for routing the SUBSCRIBE
      (which is ok). For the NOTIFY routing, the info from SUBSCRIBE +
      its 200 OK is used - this is why I need the pcap.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 05/22/2013 08:24 PM, Chusov Alexsandr wrote:
    <blockquote
cite="mid:CABn9qfri5yHdOcbwaKaBEtcH_rfEnEVnfQS1BnkrgbN-G7FGng@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><span id="result_box" class="" lang="en"><span class="">I
              do not have&nbsp; </span></span>pcap <span id="result_box"
            class="" lang="en"><span class="">because use TLS. </span></span><span
            id="result_box" class="" lang="en"><span class=""><span
                id="result_box" class="" lang="en"><span class="">But I
                  can</span> <span class="">tomorrow</span></span>
              create pcap TCP.<br>
            </span></span></div>
        <span id="result_box" class="" lang="en"><span class="">Two
            phone one enable </span></span>"Use Actual Ephemeral Port
        in Contact with TCP/TLS" ( <span id="result_box" class=""
          lang="en"><span class=""><a moz-do-not-send="true"
              href="mailto:2083@g-voip.stb.ua">2083@g-voip.stb.ua</a></span></span>
        )<br>
        <div><span id="result_box" class="" lang="en"><span class=""><br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AOR:: <a moz-do-not-send="true"
                href="mailto:9999@g-voip.stb.ua">9999@g-voip.stb.ua</a><br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Contact::
              <a class="moz-txt-link-freetext" href="sip:9999@10.222.1.253:5060;transport=tls">sip:9999@10.222.1.253:5060;transport=tls</a> Q=<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expires:: 247<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Callid::
              <a class="moz-txt-link-abbreviated" href="mailto:311684349-5060-1@BA.CCC.B.CFD">311684349-5060-1@BA.CCC.B.CFD</a><br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cseq:: 2053<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User-agent:: Grandstream GXP2120
              1.0.5.24<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State:: CS_SYNC<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags:: 0<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cflag:: 0<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Socket:: tls:<a
                moz-do-not-send="true" href="http://10.222.0.17:5061">10.222.0.17:5061</a><br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Methods:: 6015<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AOR:: <a moz-do-not-send="true"
                href="mailto:2083@g-voip.stb.ua">2083@g-voip.stb.ua</a><br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Contact::
              <a class="moz-txt-link-freetext" href="sip:2083@10.222.1.221:45266;transport=tls">sip:2083@10.222.1.221:45266;transport=tls</a> Q=<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expires:: 88<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Callid::
              <a class="moz-txt-link-abbreviated" href="mailto:991321032-5060-1@BA.CCC.B.CCB">991321032-5060-1@BA.CCC.B.CCB</a><br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cseq:: 2047<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User-agent:: Grandstream GXP1405
              1.0.5.15<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State:: CS_SYNC<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags:: 0<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cflag:: 0<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Socket:: tls:<a
                moz-do-not-send="true" href="http://10.222.0.17:5061">10.222.0.17:5061</a><br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Methods:: 6015<br>
              <br>
            </span></span></div>
        <div><span id="result_box" class="" lang="en"><span class="">I</span>
            <span class="">also</span> <span class="">asked</span> <span
              class="">a friend</span> <span class="">to</span> <span
              class="">test the</span> <span class="">asterisk. He send
              NOTIFY to port </span></span><span id="result_box"
            class="" lang="en"><span class=""><span id="result_box"
                class="" lang="en"><span class="">is connected</span> <span
                  class="">to</span></span> not Contact. </span></span></div>
        <div><span id="result_box" class="" lang="en"><span class=""><br>
            </span></span></div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/5/22 Bogdan-Andrei Iancu <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">Hi Chusov,<br>
            <br>
            The NOTIFY is sent back to the IP:port from the Contact in
            received<br>
            SUBSCRIBE. Do you have a pcap capture of the SUBSCRIBE +
            NOTIFY on the<br>
            opensips side ?<br>
            <br>
            Regards,<br>
            <br>
            Bogdan-Andrei Iancu<br>
            OpenSIPS Founder and Developer<br>
            <a moz-do-not-send="true"
              href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>
            <div>
              <div class="h5"><br>
                <br>
                On 05/22/2013 06:12 PM, Chusov Alexsandr wrote:<br>
                &gt; Hello<br>
                &gt; I have Grandstream phone with setup BLF button.<br>
                &gt; Opensips &nbsp;use for REGISTER|Presence|BLF<br>
                &gt; When set Grandstream options &nbsp;to "Use Actual
                Ephemeral Port in Contact<br>
                &gt; with TCP/TLS" phone add to Contact header port to
                which it is<br>
                &gt; connected BLF work fine.<br>
                &gt; But if phone set port to standard 5060 Opensips
                cant send NOTIFY<br>
                &gt;<br>
                &gt; Phone - &gt; SUBSCRIBE -&gt; Opensips<br>
                &gt; Opensips -&gt; Ok - &gt; Phone<br>
                &gt; Opensips -&gt; NOTIFY -&gt; tcp_send failed<br>
                &gt;<br>
                &gt; On phone log i don't see problem. He send SUBSCRIBE
                received OK. About<br>
                &gt; &nbsp;NOTIFY nothing.<br>
                &gt;<br>
                &gt;<br>
                &gt; DBG:presence:send_notify_request: built notify_body
                0x10d16f0<br>
                &gt; DBG:presence:send_notify_request:
                headers:#012Event:<br>
                &gt; dialog#015#012Contact:<br>
                &gt;
                <a class="moz-txt-link-rfc2396E" href="sip:sa@10.222.0.17:5061;transport=tls">&lt;sip:sa@10.222.0.17:5061;transport=tls&gt;</a>#015#012Subscription-State:<br>
                &gt; active;expires=180#015#012Content-Type:<br>
                &gt; application/dialog-info+xml#015#012<br>
                &gt; DBG:presence:build_dlg_t: CONTACT =
                <a class="moz-txt-link-freetext" href="sip:9999@10.222.1.253:5060;transport=tls">sip:9999@10.222.1.253:5060;transport=tls</a><br>
                &gt; DBG:presence_dialoginfo:dlginfo_body_setversion:
                set version<br>
                &gt; DBG:presence_dialoginfo:dlginfo_body_setversion:
                replace version with "0"<br>
                &gt; DBG:tm:t_uac:
                next_hop=<a class="moz-txt-link-rfc2396E" href="sip:9999@10.222.1.253:5060;transport=tls">&lt;sip:9999@10.222.1.253:5060;transport=tls&gt;</a><br>
                &gt; DBG:core:mk_proxy: doing DNS lookup...<br>
                &gt; DBG:tm:dlg2hash: 650<br>
                &gt; DBG:tm:print_request_uri:
                <a class="moz-txt-link-freetext" href="sip:9999@10.222.1.253:5060;transport=tls">sip:9999@10.222.1.253:5060;transport=tls</a><br>
                &gt; ERROR:tm:msg_send: tcp_send failed<br>
                &gt; ERROR:tm:t_uac: attempt to send to<br>
                &gt; '<a class="moz-txt-link-freetext" href="sip:9999@10.222.1.253:5060;transport=tls">sip:9999@10.222.1.253:5060;transport=tls</a>' failed<br>
                &gt; DBG:tm:set_timer: relative timeout is 5<br>
                &gt; DBG:tm:insert_timer_unsafe: [0]: 0x7f9a7d7b0fe0
                (34)<br>
                &gt; INFO:presence:send_notify_request: NOTIFY <a
                  moz-do-not-send="true"
                  href="mailto:sip%3A9999@g-voip.stb.ua">sip:9999@g-voip.stb.ua</a>
                via<br>
                &gt; <a class="moz-txt-link-freetext" href="sip:9999@10.222.1.253:5060;transport=tls">sip:9999@10.222.1.253:5060;transport=tls</a> on behalf
                of<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:sip%3A1818@g-voip.stb.ua">sip:1818@g-voip.stb.ua</a>
                for event dialog,<br>
                &gt; to_tag=6b081e8cb2be0cc593bdd08e52ae2811-c7c2,
                cseq=1<br>
                &gt; DBG:tm:t_unref: UNREF_UNSAFE: [0x7f9a7d7a5cc0]
                after is 0<br>
                &gt; DBG:core:destroy_avp_list: destroying list (nil)<br>
                &gt; DBG:core:receive_msg: cleaning up<br>
                &gt;<br>
                &gt;<br>
                &gt; Thanks in advance<br>
                &gt; Sorry for my English<br>
                &gt;<br>
              </div>
            </div>
            &gt; _______________________________________________<br>
            &gt; Users mailing list<br>
            &gt; <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            &gt; <a moz-do-not-send="true"
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            &gt;<br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
  </body>
</html>