<div dir="ltr"><div>Hi list,</div><div><br></div><div>How do I make Asterisk 13 (using PJSIP channel) to handle PUBLISH sent from the phones?</div><div><br></div><div>The trace looks like:</div><div><br></div><div>## PHONE -> ASTERISK ##</div><div><br></div><div>PUBLISH <a href="mailto:sip%3A1001@example.com">sip:1001@example.com</a> SIP/2.0</div><div>Via: SIP/2.0/UDP 172.31.19.250:2048;branch=z9hG4bK-w2orn21sre9u;rport</div><div>From: "1001" <<a href="mailto:sip%3A1001@example.com">sip:1001@example.com</a>>;tag=98slbhbn16</div><div>To: "1001" <<a href="mailto:sip%3A1001@example.com">sip:1001@example.com</a>></div><div>Call-ID: 54ddf28f87c7-ak5cx3jtjc8c</div><div>CSeq: 12480 PUBLISH</div><div>Max-Forwards: 70</div><div>Event: presence</div><div>Authorization: Digest username="1001",realm="newsip",nonce="1423831696/f03cd493c485d56261cbcc0648f97e54",uri="<a href="mailto:sip%3A1001@example.com">sip:1001@example.com</a>",qop=auth,nc=00000001,cnonce="6e4402d8",response="34dcaab743eb5f0837529fbb54105f5a",opaque="20c8892f17d503b0",algorithm=MD5</div><div>Expires: 3600</div><div>Content-Type: application/pidf+xml</div><div>Content-Length: 480</div><div><br></div><div><?xml version="1.0" encoding="UTF-8"?></div><div><presence xmlns="urn:ietf:params:xml:ns:pidf"</div><div>xmlns:im="urn:ietf:params:xml:ns:pidf:im"</div><div>entity="<a href="mailto:pres%3A1001@example.com">pres:1001@example.com</a>"></div><div><tuple id="snom300-0004133D6914"></div><div><status></div><div><basic>open</basic></div><div><im:im>Available</im:im></div><div></status></div><div><contact priority="1.00"><a href="mailto:sip%3A1001@example.com">sip:1001@example.com</a></contact></div><div><note xml:lang="en">Available</note></div><div></tuple></div><div></presence></div><div><br></div><div>## ASTERISK -> PHONE ##</div><div><br></div><div>SIP/2.0 489 Bad Event</div><div>To: "1001"<<a href="mailto:sip%3A1001@example.com">sip:1001@example.com</a>>;tag=z9hG4bK-d87543-ff0f99061907dd6eaa3b-1--d87543-</div><div>From: "1001"<<a href="mailto:sip%3A1001@example.com">sip:1001@example.com</a>>;tag=98slbhbn16</div><div>Via: SIP/2.0/UDP 172.31.19.250:2048;branch=z9hG4bK-w2orn21sre9u</div><div>Call-ID: 54ddf28f87c7-ak5cx3jtjc8c</div><div>CSeq: 12480 PUBLISH</div><div>Server: Asterisk PBX 13.2.0</div><div>Content-Length: 0</div><div><br></div><div><br></div><div>And the debug logging is reporting:</div><div>[2015-02-11 12:28:26] DEBUG[32693] res_pjsip_pubsub.c: Event presence does not match asterisk-devicestate</div><div>[2015-02-11 12:28:26] DEBUG[32693] res_pjsip_pubsub.c: Event presence does not match asterisk-mwi</div><div>[2015-02-11 12:28:26] WARNING[32693] res_pjsip_pubsub.c: No registered publish handler for event presence</div><div><br></div></div>