Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Asterisk 13 - publish handler


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
no7find at gmail.com
Guest





PostPosted: Fri Feb 13, 2015 8:03 am    Post subject: [asterisk-users] Asterisk 13 - publish handler Reply with quote

Hi list,


How do I make Asterisk 13 (using PJSIP channel) to handle PUBLISH sent from the phones?


The trace looks like:


## PHONE -> ASTERISK ##


PUBLISH sip:1001@example.com ([email]sip%3A1001@example.com[/email]) SIP/2.0
Via: SIP/2.0/UDP 172.31.19.250:2048;branch=z9hG4bK-w2orn21sre9u;rport
From: "1001" <sip:1001@example.com ([email]sip%3A1001@example.com[/email])>;tag=98slbhbn16
To: "1001" <sip:1001@example.com ([email]sip%3A1001@example.com[/email])>
Call-ID: 54ddf28f87c7-ak5cx3jtjc8c
CSeq: 12480 PUBLISH
Max-Forwards: 70
Event: presence
Authorization: Digest username="1001",realm="newsip",nonce="1423831696/f03cd493c485d56261cbcc0648f97e54",uri="sip:1001@example.com ([email]sip%3A1001@example.com[/email])",qop=auth,nc=00000001,cnonce="6e4402d8",response="34dcaab743eb5f0837529fbb54105f5a",opaque="20c8892f17d503b0",algorithm=MD5
Expires: 3600
Content-Type: application/pidf+xml
Content-Length: 480


<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:im="urn:ietf:params:xml:ns:pidf:im"
entity="pres:1001@example.com ([email]pres%3A1001@example.com[/email])">
<tuple id="snom300-0004133D6914">
<status>
<basic>open</basic>
<im:im>Available</im:im>
</status>
<contact priority="1.00">sip:1001@example.com ([email]sip%3A1001@example.com[/email])</contact>
<note xml:lang="en">Available</note>
</tuple>
</presence>


## ASTERISK -> PHONE ##


SIP/2.0 489 Bad Event
To: "1001"<sip:1001@example.com ([email]sip%3A1001@example.com[/email])>;tag=z9hG4bK-d87543-ff0f99061907dd6eaa3b-1--d87543-
From: "1001"<sip:1001@example.com ([email]sip%3A1001@example.com[/email])>;tag=98slbhbn16
Via: SIP/2.0/UDP 172.31.19.250:2048;branch=z9hG4bK-w2orn21sre9u
Call-ID: 54ddf28f87c7-ak5cx3jtjc8c
CSeq: 12480 PUBLISH
Server: Asterisk PBX 13.2.0
Content-Length: 0




And the debug logging is reporting:
[2015-02-11 12:28:26] DEBUG[32693] res_pjsip_pubsub.c: Event presence does not match asterisk-devicestate
[2015-02-11 12:28:26] DEBUG[32693] res_pjsip_pubsub.c: Event presence does not match asterisk-mwi
[2015-02-11 12:28:26] WARNING[32693] res_pjsip_pubsub.c: No registered publish handler for event presence
Back to top
jcolp at digium.com
Guest





PostPosted: Fri Feb 13, 2015 12:25 pm    Post subject: [asterisk-users] Asterisk 13 - publish handler Reply with quote

Sunny wrote:
Quote:
Hi list,

Kia ora,

Quote:
How do I make Asterisk 13 (using PJSIP channel) to handle PUBLISH sent
from the phones?

Noone has implemented this functionality. The only way to have it handle
it would be to write an implementation.

Cheers,

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services