<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    the phone has to send SUBSCRIBE for blf, kamailio cannot do anything
    for that. Maybe the phone is misconfigured. Do you have any logs
    from the phone saying what it tries and what doesn't work?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 25/04/14 01:34, Errol Samuels wrote:<br>
    </div>
    <blockquote
cite="mid:CAJvCycd6ughOZPYp8jOV+0NdUeh1BiMvebSo8M0J=s1fWJWV7g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hello All,<br>
          <br>
          I have an integration with Kamailio and FusionPBX (Freeswitch)
          working great but I been trying to troubleshoot a BLF issue
          with Kamailio where the BLF seems to only work when Kamailio
          is on a Public IP rather than behind NAT.  The BLF works fine
          when we register directly with Freeswitch either on a Public
          IP or behind NAT.<br>
          <br>
        </div>
        Both Kamailio and FusionPBX (Freeswitch) are behind pfSense
        firewall on private IPs and registrations, Inbound and Outbound
        Calls etc are working fine.  Just this BLF issue giving me some
        grief.  The phone in question is a Yealink T20.<br>
        <div><br>
          I made some SIP Traces and I noticed the following:<br>
          <br>
          In the FS Message Header I see we have the SUBSCRIBE:<br>
          <br>
        </div>
        <div>***** Begin Freeswitch trace****<br>
          <br>
          Frame 13: 619 bytes on wire (4952 bits), 619 bytes captured
          (4952 bits)<br>
          <br>
          Internet Protocol Version 4, Src: 192.168.1.138
          (192.168.1.138), Dst: 207.xx.xx.109 (207.xx.xx.109)<br>
          User Datagram Protocol, Src Port: x11 (6062), Dst Port: ca-2
          (5065)<br>
          Session Initiation Protocol (REGISTER)<br>
              Request-Line: REGISTER sip:<a moz-do-not-send="true"
            href="http://testfs.mydomain.com:5065">testfs.mydomain.com:5065</a>
          SIP/2.0<br>
              Message Header<br>
                  Via: SIP/2.0/UDP
          192.168.1.138:6062;branch=z9hG4bK748715490<br>
                  From: "302" <<a moz-do-not-send="true"
            href="http://sip:302@testfs.mydomain.com:5065">sip:302@testfs.mydomain.com:5065</a>>;tag=530545144<br>
                  To: "302" <<a moz-do-not-send="true"
            href="http://sip:302@testfs.mydomain.com:5065">sip:302@testfs.mydomain.com:5065</a>><br>
                  Call-ID: <a moz-do-not-send="true"
            href="mailto:2118669441@192.168.1.138">2118669441@192.168.1.138</a><br>
                  CSeq: 8 REGISTER<br>
                  Contact: <<a moz-do-not-send="true"
            href="http://sip:302@192.168.1.138:6062">sip:302@192.168.1.138:6062</a>><br>
                  Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS,
          NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE<br>
                  Max-Forwards: 70<br>
                  User-Agent: Yealink SIP-T20P 9.72.0.30<br>
                  Expires: 300<br>
                  Allow-Events: talk,hold,conference,refer,check-sync<br>
                  Content-Length: 0<br>
          <br>
          Frame 14: 698 bytes on wire (5584 bits), 698 bytes captured
          (5584 bits)<br>
          <br>
          Internet Protocol Version 4, Src: 207.xx.xx.109
          (207.xx.xx.109), Dst: 192.168.1.138 (192.168.1.138)<br>
          User Datagram Protocol, Src Port: ca-2 (5065), Dst Port: x11
          (6062)<br>
          Session Initiation Protocol (200)<br>
              Status-Line: SIP/2.0 200 OK<br>
              Message Header<br>
                  Via: SIP/2.0/UDP
192.168.1.138:6062;branch=z9hG4bK748715490;received=2.xx.xx.187;rport=6062<br>
                  From: "302" <<a moz-do-not-send="true"
            href="http://sip:302@testfs.mydomain.com:5065">sip:302@testfs.mydomain.com:5065</a>>;tag=530545144<br>
                  To: "302" <<a moz-do-not-send="true"
            href="http://sip:302@testfs.mydomain.com:5065">sip:302@testfs.mydomain.com:5065</a>>;tag=j71FeN5gcBjDe<br>
                  Call-ID: <a moz-do-not-send="true"
            href="mailto:2118669441@192.168.1.138">2118669441@192.168.1.138</a><br>
                  CSeq: 8 REGISTER<br>
                  Contact:
          <a class="moz-txt-link-rfc2396E" href="sip:302@192.168.1.138:6062;received=2.xx.xx.187:6062"><sip:302@192.168.1.138:6062;received=2.xx.xx.187:6062></a>;expires=300<br>
                  Date: Thu, 24 Apr 2014 17:03:18 GMT<br>
                  User-Agent:
          FreeSWITCH-mod_sofia/1.2.23+git~20140419T040926Z~8a20da75ef~64bit<br>
                  Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE,
          INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
                  Supported: timer, path, replaces<br>
                  Content-Length: 0<br>
          <br>
          Frame 15: 509 bytes on wire (4072 bits), 509 bytes captured
          (4072 bits)<br>
          <br>
          Internet Protocol Version 4, Src: 192.168.1.138
          (192.168.1.138), Dst: 10.22.110.9 (10.22.110.9)<br>
          User Datagram Protocol, Src Port: x11 (6062), Dst Port: ca-2
          (5065)<br>
          Session Initiation Protocol (SUBSCRIBE)<br>
              Request-Line: SUBSCRIBE <a moz-do-not-send="true"
            href="http://sip:301@10.22.110.9:5065">sip:301@10.22.110.9:5065</a>
          SIP/2.0<br>
              Message Header<br>
                  Via: SIP/2.0/UDP
          192.168.1.138:6062;branch=z9hG4bK148600064<br>
                  From: "302" <<a moz-do-not-send="true"
            href="http://sip:302@testfs.mydomain.com:5065">sip:302@testfs.mydomain.com:5065</a>>;tag=2146254460<br>
                  To: <<a moz-do-not-send="true"
            href="http://sip:301@testfs.mydomain.com:5065">sip:301@testfs.mydomain.com:5065</a>>;tag=70uoBUVRvJyr<br>
                  Call-ID: <a moz-do-not-send="true"
            href="mailto:168472766@192.168.1.138">168472766@192.168.1.138</a><br>
                  CSeq: 2 SUBSCRIBE<br>
                  Contact: <<a moz-do-not-send="true"
            href="http://sip:302@192.168.1.138:6062">sip:302@192.168.1.138:6062</a>><br>
                  Accept: application/dialog-info+xml<br>
                  Max-Forwards: 70<br>
                  User-Agent: Yealink SIP-T20P 9.72.0.30<br>
                  Expires: 1800<br>
                  Event: dialog<br>
                  Content-Length: 0<br>
          <br>
        </div>
        <div>****** End Freeswitch trace ********<br>
        </div>
        <div><br>
          In the Kamailio Header there is no SUBSCRIBE for the BLF.<br>
          <br>
          ***** Begin Kamailio trace****<br>
          <br>
          Frame 17: 809 bytes on wire (6472 bits), 809 bytes captured
          (6472 bits)<br>
          <br>
          Internet Protocol Version 4, Src: 192.168.1.138
          (192.168.1.138), Dst: 207.xx.xx.108 (207.xx.xx.108)<br>
          User Datagram Protocol, Src Port: x11 (6062), Dst Port: sip
          (5060)<br>
          Session Initiation Protocol (REGISTER)<br>
              Request-Line: REGISTER sip:<a moz-do-not-send="true"
            href="http://test.mydomain.com:5060">test.mydomain.com:5060</a>
          SIP/2.0<br>
              Message Header<br>
                  Via: SIP/2.0/UDP
          192.168.1.138:6062;branch=z9hG4bK1572502835<br>
                  From: "302" <<a moz-do-not-send="true"
            href="mailto:sip%3A302@test.mydomain.com">sip:302@test.mydomain.com</a>>;tag=1877226231<br>
                  To: "302" <<a moz-do-not-send="true"
            href="mailto:sip%3A302@test.mydomain.com">sip:302@test.mydomain.com</a>><br>
                  Call-ID: <a moz-do-not-send="true"
            href="mailto:887242692@192.168.1.138">887242692@192.168.1.138</a><br>
                  CSeq: 3 REGISTER<br>
                  Contact: <<a moz-do-not-send="true"
            href="http://sip:302@192.168.1.138:6062">sip:302@192.168.1.138:6062</a>><br>
                  Authorization: Digest username="302", realm="<a
            moz-do-not-send="true" href="http://test.mydomain.com">test.mydomain.com</a>",
          nonce="U1lHHFNZRfB7/5Lyb/Rz3p/xu26B1lpE", uri="sip:<a
            moz-do-not-send="true" href="http://test.mydomain.com:5060">test.mydomain.com:5060</a>",
          response="7687c7d3141d1898e63a1cc9538f05d7", algorithm=MD5<br>
                  Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS,
          NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE<br>
                  Max-Forwards: 70<br>
                  User-Agent: Yealink SIP-T20P 9.72.0.30<br>
                  Expires: 300<br>
                  Allow-Events: talk,hold,conference,refer,check-sync<br>
                  Content-Length: 0<br>
          <br>
          Frame 18: 496 bytes on wire (3968 bits), 496 bytes captured
          (3968 bits)<br>
          <br>
          Internet Protocol Version 4, Src: 207.xx.xx.108
          (207.xx.xx.108), Dst: 192.168.1.138 (192.168.1.138)<br>
          User Datagram Protocol, Src Port: sip (5060), Dst Port: x11
          (6062)<br>
          Session Initiation Protocol (200)<br>
              Status-Line: SIP/2.0 200 OK<br>
              Message Header<br>
                  Via: SIP/2.0/UDP
192.168.1.138:6062;branch=z9hG4bK1572502835;rport=6062;received=2.xx.xx.187<br>
                  From: "302" <<a moz-do-not-send="true"
            href="mailto:sip%3A302@test.mydomain.com">sip:302@test.mydomain.com</a>>;tag=1877226231<br>
                  To: "302" <<a moz-do-not-send="true"
            href="mailto:sip%3A302@test.mydomain.com">sip:302@test.mydomain.com</a>>;tag=ff6b32c6b28b8954915484dd79f46b1c.fcdc<br>
                  Call-ID: <a moz-do-not-send="true"
            href="mailto:887242692@192.168.1.138">887242692@192.168.1.138</a><br>
                  CSeq: 3 REGISTER<br>
                  Contact: <<a moz-do-not-send="true"
            href="http://sip:302@192.168.1.138:6062">sip:302@192.168.1.138:6062</a>>;expires=300;received=<a class="moz-txt-link-rfc2396E" href="sip:2.xx.xx.187:6062">"sip:2.xx.xx.187:6062"</a><br>
                  Server: kamailio (4.0.6 (x86_64/linux))<br>
                  Content-Length: 0<br>
          <br>
          Frame 19: 316 bytes on wire (2528 bits), 316 bytes captured
          (2528 bits)<br>
          <br>
          Internet Protocol Version 4, Src: 207.xx.xx.108
          (207.xx.xx.108), Dst: 192.168.1.138 (192.168.1.138)<br>
          User Datagram Protocol, Src Port: sip (5060), Dst Port: x11
          (6062)<br>
          Session Initiation Protocol (OPTIONS)<br>
              Request-Line: OPTIONS <a class="moz-txt-link-freetext" href="sip:2.xx.xx.187:6062">sip:2.xx.xx.187:6062</a> SIP/2.0<br>
              Message Header<br>
                  Via: SIP/2.0/UDP 10.22.110.11:5060;branch=0<br>
                  From: <a moz-do-not-send="true"
            href="mailto:sip%3Apinger@kamailio.org">sip:pinger@kamailio.org</a>;tag=uloc-53579917-4e9-89-0b632cbb-a8aa99c<br>
                  To: <a class="moz-txt-link-freetext" href="sip:2.xx.xx.187:6062">sip:2.xx.xx.187:6062</a><br>
                  Call-ID: <a moz-do-not-send="true"
            href="mailto:f9749d7-2d0b0be7-c678c54@10.22.110.11">f9749d7-2d0b0be7-c678c54@10.22.110.11</a><br>
                  CSeq: 1 OPTIONS<br>
                  Content-Length: 0<br>
          <br>
          ***** End Kamailio trace****<br>
        </div>
        <div><br>
        </div>
        <div>Anyone faced this issue or have any ideas?<br>
          <br>
        </div>
        <div>regards,<br>
          <br>
          Errol<br>
          <br>
        </div>
        <div><br>
        </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></pre>
  </body>
</html>