<html><body><div style="font-family: lucida console,sans-serif; font-size: 12pt; color: #000000"><div>Hello Daniel,<br data-mce-bogus="1"></div><div>Is notify should follow subscribe routes ?<br data-mce-bogus="1"></div><div>Here SUBSCRIBE completely look normal to me. <br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><--- SIP read from UDP:10.18.130.46:5060 ---><br>SUBSCRIBE sip:10102@networklab.ca SIP/2.0<br>Record-Route: <sip:kamailio_pub_ip:5081;transport=tls;lr=on;ftag=08c99307d3;nat=yes><br>Accept: application/simple-message-summary<br>Via: SIP/2.0/UDP 10.18.130.46;branch=z9hG4bKdee2.b83c2028dc57c641d2b8cad968347d6a.0;i=2<br>Via: SIP/2.0/TLS 192.168.0.16:5063;rport=5063;received=client_pub_ip;branch=z9hG4bK0c54032bd8905d262<br>Max-Forwards: 69<br>From: "10102" <sips:10102@networklab.ca>;tag=08c99307d3<br>To: <sips:10102@networklab.ca><br>Call-ID: cea703eb8c21f709<br>CSeq: 1096440084 SUBSCRIBE<br>Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE<br>Allow-Events: message-summary<br>Authorization: Digest username="10102",realm="networklab.ca",nonce="29ac01f1",uri="sips:10102@networklab.ca",response="0298c2a93bdd4969a3cd0b757d671dbb",algorithm=MD5<br>Contact: <sips:10102@client_pub_ip:5063>;audio<br>Event: message-summary<br>Expires: 3600<br>Supported: eventlist, replaces, timer<br>User-Agent: Media5-fone/4.1.6.3283 Android/4.1.2<br>Content-Length: 0<br>Path: <sip:outbound@10.18.130.46;lr;received=sip:client_pub_ip:5063%3Btransport%3Dtls><br>P-hint: outbound<br></div><div><br></div><div>Slava<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Daniel-Constantin Mierla" <miconda@gmail.com><br><b>To: </b>"Slava Bendersky" <volga629@networklab.ca><br><b>Cc: </b>"sr-users" <sr-users@lists.sip-router.org><br><b>Sent: </b>Tuesday, March 3, 2015 1:50:03 AM<br><b>Subject: </b>Re: [SR-Users] kamailio asterisk<br></div><br><div data-marker="__QUOTED_TEXT__">Hello,<br>
    <br>
    I pushed a fix for it -- the issue was in a LM_DBG() trying to print
    te address for local socket, but it was not set yet, it was
    affecting only when running in debug mode with debug=3. I pushed the
    patch to branch 4.2, so if you want the fix, then you have to
    install from git branch 4.2.<br>
    <br>
    For REGISTER, you need to add the Path header (see path module),
    otherwise the OPTIONS and INVITE sent out to the phone are not going
    via Kamailio. You have to check the version of your Asterisk to be
    one that supports Path.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 27/02/15 14:40, Slava Bendersky
      wrote:<br>
    </div>
    <blockquote cite="mid:1808880654.31043796.1425044410230.JavaMail.zimbra@skillsearch.ca">
      <div style="font-family: lucida console,sans-serif; font-size:
        12pt; color: #000000">
        <div>Hello Daniel,<br>
        </div>
        <div>Here paste for gdb<br>
        </div>
        <div><br>
        </div>
        <div><a class="moz-txt-link-freetext" href="http://fpaste.org/191338/25043949/" target="_blank">http://fpaste.org/191338/25043949/</a><br data-mce-bogus="1"></div>
        <div><br>
        </div>
        <div>I got REGISTER and SUBSCRIBE start working correctly I see
          on asterisk correct record routes and sip traffic flow, but
          when asterisk or client ( soft phone) send OPTIONS or NOTIFY
          can't get properly relay it.<br>
        </div>
        <div><br>
        </div>
        <div>This is SUBSCRIBE route.<br>
        </div>
        <div><br>
        </div>
        <div><--- Transmitting (NAT) to 10.18.130.46:5060 ---><br>
          SIP/2.0 200 OK<br>
          Via: SIP/2.0/UDP
10.18.130.46;branch=z9hG4bKf852.e0223f39c2bbad8366fdf1b7cb22b336.0;i=8;received=10.18.130.46;rport=5060<br>
          Via: SIP/2.0/TLS 192.168.88.252:5062;received=Client public
          ip;branch=z9hG4bK0bbe1f7d27257bba9;rport=5062<br>
          Record-Route:
          <a class="moz-txt-link-rfc2396E" href="sip:10.18.130.46;r2=on;lr=on;ftag=a185d974ec;nat=yes" target="_blank"><sip:10.18.130.46;r2=on;lr=on;ftag=a185d974ec;nat=yes></a><br>
          Record-Route:
<a class="moz-txt-link-rfc2396E" href="sip:PUBLIC_KAMAILIO_IP:5081;transport=tls;r2=on;lr=on;ftag=a185d974ec;nat=yes" target="_blank"><sip:PUBLIC_KAMAILIO_IP:5081;transport=tls;r2=on;lr=on;ftag=a185d974ec;nat=yes></a><br>
          From: "Slava Bendersky"
          <a class="moz-txt-link-rfc2396E" href="mailto:sips:10101@networklab.ca" target="_blank"><sips:10101@networklab.ca></a>;tag=a185d974ec<br>
          To: <a class="moz-txt-link-rfc2396E" href="mailto:sips:10101@networklab.ca" target="_blank"><sips:10101@networklab.ca></a>;tag=as00757d3e<br>
          Call-ID: b08adb1ad1804a83<br>
          CSeq: 236711034 SUBSCRIBE<br>
          Server: FPBX-2.11.0(11.15.1)<br>
          Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,
          NOTIFY, INFO, PUBLISH, MESSAGE<br>
          Supported: replaces, timer<br>
          Expires: 3600<br>
          Contact: <a class="moz-txt-link-rfc2396E" href="sip:10101@10.18.130.50:5060" target="_blank"><sip:10101@10.18.130.50:5060></a>;expires=3600<br>
          Content-Length: 0</div>
        <div><br>
        </div>
        <div>Slava.<br>
        </div>
        <div><br>
        </div>
        <hr id="zwchr">
        <div><b>From: </b>"Daniel-Constantin
          Mierla" <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com" target="_blank"><miconda@gmail.com></a><br>
          <b>To: </b>"Slava Bendersky" <a class="moz-txt-link-rfc2396E" href="mailto:volga629@networklab.ca" target="_blank"><volga629@networklab.ca></a><br>
          <b>Cc: </b>"sr-users" <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org" target="_blank"><sr-users@lists.sip-router.org></a><br>
          <b>Sent: </b>Friday, February 27, 2015 6:42:33 AM<br>
          <b>Subject: </b>Re: [SR-Users] kamailio asterisk<br>
        </div>
        <br>
        <div>Hello,<br>
          <br>
          I asked for the wrong command, as the bt full was already sent
          before -- I wanted the output from gdb for:<br>
          <br>
          p *tcpconn<br>
          <br>
          Daniel<br>
          <br>
          <br>
          <div class="moz-cite-prefix">On 27/02/15 04:10, Slava
            Bendersky wrote:<br>
          </div>
          <blockquote cite="mid:2017040220.30928972.1425006630882.JavaMail.zimbra@skillsearch.ca">
            <div style="font-family: lucida console,sans-serif;
              font-size: 12pt; color: #000000">
              <div>Hello Daniel,<br>
              </div>
              <div>Here bt full from back trace.<br>
              </div>
              <div><br>
              </div>
              <div><a class="moz-txt-link-freetext" href="http://fpaste.org/191207/50064491/" target="_blank">http://fpaste.org/191207/50064491/</a><br>
              </div>
              <div><br>
              </div>
              <div>Slava.<br>
              </div>
              <div><br>
              </div>
              <hr id="zwchr">
              <div><b>From: </b>"volga629" <a class="moz-txt-link-rfc2396E" href="mailto:volga629@skillsearch.ca" target="_blank"><volga629@skillsearch.ca></a><br>
                <b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>,
                "Slava Bendersky" <a class="moz-txt-link-rfc2396E" href="mailto:volga629@networklab.ca" target="_blank"><volga629@networklab.ca></a><br>
                <b>Cc: </b>"sr-users" <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org" target="_blank"><sr-users@lists.sip-router.org></a><br>
                <b>Sent: </b>Thursday, February 26, 2015 9:56:48 PM<br>
                <b>Subject: </b>Re: [SR-Users] kamailio asterisk<br>
              </div>
              <br>
              <div>
                <div style="font-family:Calibri, Arial, Helvetica,
                  sans-serif;font-size:12pt;">
                  <div>Hello Daniel,</div>
                  <div>I tried $rz option on top of request route and
                    that where I see wrong request uri like <a class="moz-txt-link-freetext" href="sip:sips" target="_blank">sip:sips</a>: . And as far I can
                    see it happenes only for SUBSCRIBE INVITE and
                    NOTIFY.</div>
                  <br>
                  <div><span style="font-family: sans-serif; font-size:
                      18px; line-height: normal;">if($rz=="sips") {</span><br style="font-family: sans-serif; font-size: 18px;
                      line-height: normal;">
                    <span style="font-family: sans-serif; font-size:
                      18px; line-height: normal;">   $ru = "sip" +
                      $(ru{s.substr,4,0});</span><br style="font-family:
                      sans-serif; font-size: 18px; line-height: normal;">
                    <span style="font-family: sans-serif; font-size:
                      18px; line-height: normal;">}</span></div>
                  <br>
                  <div>Slava.</div>
                  <br>
                  <div id="signature-x" style="-webkit-user-select:none;"> Sent from mobile
                    device typos are expected.</div>
                </div>
                <div id="quoted_header" style="clear:both;"><br>
                  <div style="border:none;border-top:solid #E1E1E1
                    1.0pt;padding:3.0pt 0cm 0cm 0cm"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif'"><b>From:</b>
                      Daniel-Constantin Mierla <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com" target="_blank"><miconda@gmail.com></a><br>
                      <b>Sent:</b> Feb 25, 2015 1:04 PM<br>
                      <b>To:</b> Slava Bendersky<br>
                      <b>Cc:</b> sr-users<br>
                      <b>Subject:</b> Re: [SR-Users] kamailio asterisk<br>
                    </span></div>
                </div>
                <br>
                <br>
                Hello,<br>
                <br>
                <div class="moz-cite-prefix">On 25/02/15 17:19, Slava
                  Bendersky wrote:<br>
                </div>
                <blockquote cite="mid:90891263.30515025.1424881151793.JavaMail.zimbra@skillsearch.ca">
                  <div style="font-family: lucida console,sans-serif;
                    font-size: 12pt; color: #000000">
                    <div>Hello Daniel,</div>
                    <div>substr you suggested didn't worked.<br>
                    </div>
                    <div>See my previous email. <br>
                    </div>
                  </div>
                </blockquote>
                <br>
                your previous email didn't say anything about the
                results. That's why I asked. Be sure you don't have
                those spaces that are in the email you wrote. Also, I
                had more parenthesis in the parameter of the
                subst_uri().<br>
                <br>
                Or you can try the alternative with:<br>
                <br>
                if($rz=="sips") {<br>
                   $ru = "sip" + $(ru{s.substr,4,0});<br>
                }<br>
                <br>
                I asked for more details from the backtrace to confirm
                that what I found is the cause for the crash in this
                case -- see one of my previous emails from today.<br>
                <br>
                Cheers,<br>
                Daniel<br>
              </div>
            </div>
          </blockquote>
          <br>
          <pre class="moz-signature">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a>
</pre>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a><br data-mce-bogus="1"></pre><br></div></div></body></html>