<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div>I decided to try a different setup and install Siremis and Kamailio 5.1 according to the following tutorial :</div>
<div><a href="https://www.powerpbx.org/content/kamailio-v5-siremis-v5-debian-v9-mariadb-apache-v1" id="LPNoLP315833">https://www.powerpbx.org/content/kamailio-v5-siremis-v5-debian-v9-mariadb-apache-v1</a></div>
<br>
<div>All is working and because this setup uses WITH_NAT, I have not needed to add set_contact_alias() to the SUBSCRIBE section of kamailio.cfg.</div>
<div><br>
</div>
<div>Unfortunately, the BLF lights on the phone do not light up. I can see dialog entries in the "Active Watchers List" in Siremis and no errors in the log. The other list ("Watcher List", "Presentity List" and "PUA List") are empty.  <br>
</div>
<div><br>
</div>
<div>I have tested the phone directly with Freeswitch to make sure the lights are working.</div>
<div><br>
</div>
<div>Any ideas.</div>
<div><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org> on behalf of Petarr Jones <petarrjones@outlook.com><br>
<b>Sent:</b> 01 October 2019 06:29<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; miconda@gmail.com <miconda@gmail.com><br>
<b>Subject:</b> Re: [SR-Users] BLF 'NOTIFY' not working</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Daniel</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Adding in the set_contact_alias() for SUBSCRIBE meant that the NOTIFY now gets a "200 OK", but the light on the phone does not light up even though the extension being monitored is registered. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I notice that after the SUBSCRIBE request, the return message is a "202 OK" instead of a "202 ACCEPTED". Is that correct?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am also now getting this message in the log</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
nathelper [nathelper.c:700]: set_contact_alias(): you can't update contact twice, check your config!<br>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org> on behalf of Petarr Jones <petarrjones@outlook.com><br>
<b>Sent:</b> 01 October 2019 02:57<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; miconda@gmail.com <miconda@gmail.com><br>
<b>Subject:</b> Re: [SR-Users] BLF 'NOTIFY' not working</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks for your response Daniel. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">Kamailio is installed on a cloud server (not AWS) and therefore has an internet facing IP address. The phone is in my office so there is NAT happening at that end.
 I would have thought the NAT traversal would only apply if the server/Kamailio was behind a firewall/router doing some kind of NAT?</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">Regards</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">Petarr</span></div>
<div id="x_x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Daniel-Constantin Mierla <miconda@gmail.com><br>
<b>Sent:</b> 01 October 2019 00:16<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; Petarr Jones <petarrjones@outlook.com><br>
<b>Subject:</b> Re: [SR-Users] BLF 'NOTIFY' not working</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p>Hello,</p>
<p><br>
</p>
<p>there can be NOTIFY requests with no body, as the one below has Content-Length 0 -- a matter of what is the call state, it can be a valid one.</p>
<p><br>
</p>
<p>Regarding the fact that the NOTIFY is not delivered, have you done nat traversal for SUBSCRIBE? I see private address in the R-URI, so the problem can be in that part. You should do set_contact_alias() for SUBSCRIBE.</p>
<p><br>
</p>
<p>Cheers,<br>
Daniel</p>
<p><br>
</p>
<div class="x_x_x_moz-cite-prefix">On 30.09.19 15:16, Petarr Jones wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="margin:0px">I am using Kamailio 5.2 with the following PRESENCE modules and parameters:</span></div>
<div style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="margin:0px"><br>
</span></div>
<div style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="margin:0px"><span style="margin:0px">loadmodule "presence.so"<br>
</span>
<div style="margin:0px">loadmodule "presence_xml.so"<br>
</div>
<div style="margin:0px">loadmodule "presence_dialoginfo.so"<br>
</div>
<div style="margin:0px">loadmodule "presence_reginfo.so"<br>
</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">
<div style="margin:0px">modparam("presence", "db_url", DBURL)<br>
</div>
<div style="margin:0px">modparam("presence_xml", "db_url", DBURL)<br>
</div>
<div style="margin:0px">modparam("presence_xml", "force_active", 1)<br>
</div>
<div style="margin:0px">modparam("presence_xml", "disable_bla", 0)<br>
</div>
<div style="margin:0px">modparam("presence_xml", "integrated_xcap_server", 1)<br>
</div>
<span style="margin:0px"></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"> </span><br>
</div>
<span style="margin:0px"></span></span></div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have a Yealink T28P phone which has two lines/extensions successfully registered with Kamailio 5.2. When I setup the BLF light to monitor one of the extensions, I get the correct SUBSCRIBE record but the NOTIFY record is sent over and over again until it
 fails. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
-----------------------------------------------------------------------------------------------------------</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>NOTIFY <a class="x_x_x_moz-txt-link-freetext" href="sip:101@192.168.1.123:5062">
sip:101@192.168.1.123:5062</a> SIP/2.0<br>
</span>
<div>Via: SIP/2.0/UDP 45.45.45.45;branch=z9hG4bKd16c.03b5bc97000000000000000000000000.0<br>
</div>
<div>To: <a class="x_x_x_moz-txt-link-rfc2396E" href="sip:101@45.45.45.45"><sip:101@45.45.45.45></a>;tag=1366853594<br>
</div>
<div>From: <a class="x_x_x_moz-txt-link-rfc2396E" href="sip:104@45.45.45.45"><sip:104@45.45.45.45></a>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-e6c3<br>
</div>
<div>CSeq: 2 NOTIFY<br>
</div>
<div>Call-ID: <a class="x_x_x_moz-txt-link-abbreviated" href="mailto:594386350@192.168.1.123">
594386350@192.168.1.123</a><br>
</div>
<div>Content-Length: 0<br>
</div>
<div>User-Agent: kamailio (5.2.4 (x86_64/linux))<br>
</div>
<div>Max-Forwards: 70<br>
</div>
<div>Event: dialog<br>
</div>
<span>Contact: <a class="x_x_x_moz-txt-link-rfc2396E" href="sip:45.45.45.45:5060;transport=udp">
<sip:45.45.45.45:5060;transport=udp></a></span>  </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">-----------------------------------------------------------------------------------------------------------</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
When I register the phone with Freeswitch instead and run the same test, the NOTIFY works and I get a much longer NOTIFY message</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">-----------------------------------------------------------------------------------------------------------</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>NOTIFY <a class="x_x_x_moz-txt-link-freetext" href="sip:100@192.168.1.123:5064">
sip:100@192.168.1.123:5064</a> SIP/2.0<br>
</span>
<div>Via: SIP/2.0/UDP 66.66.66.66;rport;branch=z9hG4bK1mXej9r2605UB<br>
</div>
<div>Route: <a class="x_x_x_moz-txt-link-rfc2396E" href="sip:55.55.55.55:5064"><sip:55.55.55.55:5064></a>;transport=udp<br>
</div>
<div>Max-Forwards: 70<br>
</div>
<div>From: <a class="x_x_x_moz-txt-link-rfc2396E" href="sip:102@66.66.66.66"><sip:102@66.66.66.66></a>;tag=xUoVghM5syHc<br>
</div>
<div>To: "100" <a class="x_x_x_moz-txt-link-rfc2396E" href="sip:100@66.66.66.66">
<sip:100@66.66.66.66></a>;tag=1720892352<br>
</div>
<div>Call-ID: <a class="x_x_x_moz-txt-link-abbreviated" href="mailto:2583553127@192.168.1.123">
2583553127@192.168.1.123</a><br>
</div>
<div>CSeq: 1178415701 NOTIFY<br>
</div>
<div>Contact: <a class="x_x_x_moz-txt-link-rfc2396E" href="sip:102@66.66.66.66:5060">
<sip:102@66.66.66.66:5060></a><br>
</div>
<div>User-Agent: FreeSWITCH-mod_sofia/1.10.1-release-12-f9990221e6~64bit<br>
</div>
<div>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
</div>
<div>Supported: timer, path, replaces<br>
</div>
<div>Event: dialog<br>
</div>
<div>Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer<br>
</div>
<div>Subscription-State: active;expires=1800<br>
</div>
<div>Content-Type: application/dialog-info+xml<br>
</div>
<div>Content-Length: 149<br>
</div>
<div><br>
</div>
<div>xml version="1.0"?><br>
</div>
<div>dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity=<a class="x_x_x_moz-txt-link-rfc2396E" href="sip:102@66.66.66.66">"sip:102@66.66.66.66"</a>><br>
</div>
<span>dialog-info></span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">-----------------------------------------------------------------------------------------------------------</span><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Should the message coming from Kamailio contain more data or is that not the issue. Should I be including other modules also?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
All guidance would be appreciated.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<br>
<fieldset class="x_x_x_mimeAttachmentHeader"></fieldset>
<pre class="x_x_x_moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="x_x_x_moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="x_x_x_moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="x_x_x_moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="x_x_x_moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="x_x_x_moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="x_x_x_moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- <a class="x_x_x_moz-txt-link-freetext" href="https://asipto.com/u/kat">https://asipto.com/u/kat</a></pre>
</div>
</div>
</div>
</body>
</html>