<div dir="ltr"><div dir="ltr">On Mon, Mar 23, 2020 at 7:15 AM John Hughes <<a href="mailto:john@calva.com">john@calva.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, in these dark days of COVID-19 lockdown I'm using linphone to <br>
connect to my office asterisk system for working from home.<br>
<br>
It's going pretty well but the presence/BLF functions don't appear to work.<br>
<br>
In the linphone logs and asterisk debug I find that asterisk is <br>
rejecting linphone's PUBLISH message:<br>
<br>
<--- SIP read from UDP:<a href="http://10.27.128.3:5060" rel="noreferrer" target="_blank">10.27.128.3:5060</a> ---><br>
PUBLISH <a href="mailto:sip%3Ajohn@xxx.xxx.com" target="_blank">sip:john@xxx.xxx.com</a> SIP/2.0<br>
Via: SIP/2.0/UDP 10.27.128.3:5060;branch=z9hG4bK.GRd5yC7Wo;rport<br>
From: <<a href="mailto:sip%3Ajohn@xxx.xxx.com" target="_blank">sip:john@xxx.xxx.com</a>>;tag=ZtFgBTxUL<br>
To: <a href="mailto:sip%3Ajohn@xxx.xxx.com" target="_blank">sip:john@xxx.xxx.com</a><br>
CSeq: 20 PUBLISH<br>
Call-ID: SMHLUSLJD6<br>
Max-Forwards: 70<br>
Supported: replaces, outbound<br>
Event: presence<br>
Accept: application/pidf+xml<br>
Content-Length: 511<br>
Content-Type: application/pidf+xml<br>
Expires: 3600<br>
User-Agent: Linphone/3.12.0 (belle-sip/1.6.3)<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<presence xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" <br>
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" <br>
xmlns:pidfonline="<a href="http://www.linphone.org/xsds/pidfonline.xsd" rel="noreferrer" target="_blank">http://www.linphone.org/xsds/pidfonline.xsd</a>" <br>
entity="<a href="mailto:sip%3Ajohn@xxx.xxx.com" target="_blank">sip:john@xxx.xxx.com</a>" xmlns="urn:ietf:params:xml:ns:pidf"> <br>
<tuple id="bhhmlg"> <status> <basic>open</basic> <pidfonline:online/> <br>
</status> <contact priority="0.8"><a href="mailto:sip%3Ajohn@xxx.xxx.com" target="_blank">sip:john@xxx.xxx.com</a></contact> <br>
<timestamp>2020-03-23T09:40:43Z</timestamp> </tuple><br>
</presence><br>
<-------------><br>
--- (14 headers 3 lines) ---<br>
<br>
<br>
Sending to <a href="http://10.27.128.3:5060" rel="noreferrer" target="_blank">10.27.128.3:5060</a> (no NAT)<br>
<br>
<--- Transmitting (no NAT) to <a href="http://10.27.128.3:5060" rel="noreferrer" target="_blank">10.27.128.3:5060</a> ---><br>
SIP/2.0 489 Bad Event<br>
Via: SIP/2.0/UDP <br>
10.27.128.3:5060;branch=z9hG4bK.GRd5yC7Wo;received=10.27.128.3;rport=5060<br>
From: <<a href="mailto:sip%3Ajohn@xxx.xxx.com" target="_blank">sip:john@xxx.xxx.com</a>>;tag=ZtFgBTxUL<br>
To: <a href="mailto:sip%3Ajohn@xxx.xxx.com" target="_blank">sip:john@xxx.xxx.com</a>;tag=as674d428f<br>
Call-ID: SMHLUSLJD6<br>
CSeq: 20 PUBLISH<br>
Server: Asterisk PBX 13.14.1~dfsg-2+deb9u4<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, <br>
INFO, PUBLISH, MESSAGE<br>
Supported: replaces, timer<br>
Content-Length: 0<br>
<br>
I can find nothing in the asterisk logs that says *why* it doesn't like <br>
the publish.<br>
<br>
Help?<br></blockquote><div><br></div><div>Asterisk has no support for receiving/storing/using such a PUBLISH message. Asterisk instead generates state itself based on whether something is on the phone, busy, etc. This is received using a SUBSCRIBE and NOTIFY. </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>