<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 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 href="http://sip:302@testfs.mydomain.com:5065">sip:302@testfs.mydomain.com:5065</a>>;tag=530545144<br>
        To: "302" <<a href="http://sip:302@testfs.mydomain.com:5065">sip:302@testfs.mydomain.com:5065</a>><br>        Call-ID: <a href="mailto:2118669441@192.168.1.138">2118669441@192.168.1.138</a><br>        CSeq: 8 REGISTER<br>
        Contact: <<a 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 href="http://sip:302@testfs.mydomain.com:5065">sip:302@testfs.mydomain.com:5065</a>>;tag=530545144<br>
        To: "302" <<a href="http://sip:302@testfs.mydomain.com:5065">sip:302@testfs.mydomain.com:5065</a>>;tag=j71FeN5gcBjDe<br>        Call-ID: <a href="mailto:2118669441@192.168.1.138">2118669441@192.168.1.138</a><br>
        CSeq: 8 REGISTER<br>        Contact: <sip:302@192.168.1.138:6062;received=2.xx.xx.187:6062>;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 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 href="http://sip:302@testfs.mydomain.com:5065">sip:302@testfs.mydomain.com:5065</a>>;tag=2146254460<br>
        To: <<a href="http://sip:301@testfs.mydomain.com:5065">sip:301@testfs.mydomain.com:5065</a>>;tag=70uoBUVRvJyr<br>        Call-ID: <a href="mailto:168472766@192.168.1.138">168472766@192.168.1.138</a><br>        CSeq: 2 SUBSCRIBE<br>
        Contact: <<a 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 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 href="mailto:sip%3A302@test.mydomain.com">sip:302@test.mydomain.com</a>>;tag=1877226231<br>        To: "302" <<a href="mailto:sip%3A302@test.mydomain.com">sip:302@test.mydomain.com</a>><br>
        Call-ID: <a href="mailto:887242692@192.168.1.138">887242692@192.168.1.138</a><br>        CSeq: 3 REGISTER<br>        Contact: <<a href="http://sip:302@192.168.1.138:6062">sip:302@192.168.1.138:6062</a>><br>        Authorization: Digest username="302", realm="<a href="http://test.mydomain.com">test.mydomain.com</a>", nonce="U1lHHFNZRfB7/5Lyb/Rz3p/xu26B1lpE", uri="sip:<a 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 href="mailto:sip%3A302@test.mydomain.com">sip:302@test.mydomain.com</a>>;tag=1877226231<br>        To: "302" <<a href="mailto:sip%3A302@test.mydomain.com">sip:302@test.mydomain.com</a>>;tag=ff6b32c6b28b8954915484dd79f46b1c.fcdc<br>
        Call-ID: <a href="mailto:887242692@192.168.1.138">887242692@192.168.1.138</a><br>        CSeq: 3 REGISTER<br>        Contact: <<a href="http://sip:302@192.168.1.138:6062">sip:302@192.168.1.138:6062</a>>;expires=300;received="sip:2.xx.xx.187:6062"<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 sip:2.xx.xx.187:6062 SIP/2.0<br>    Message Header<br>        Via: SIP/2.0/UDP 10.22.110.11:5060;branch=0<br>
        From: <a href="mailto:sip%3Apinger@kamailio.org">sip:pinger@kamailio.org</a>;tag=uloc-53579917-4e9-89-0b632cbb-a8aa99c<br>        To: sip:2.xx.xx.187:6062<br>        Call-ID: <a 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>