[asterisk-bugs] [Asterisk 0013996]: [patch] Presence subscription on Cisco SIP phone needs special Cisco-styled XML

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 16 22:56:26 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=13996 
====================================================================== 
Reported By:                Nugget
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13996
Category:                   Channels/chan_sip/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-202 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2008-11-30 15:13 CST
Last Modified:              2011-05-16 22:56 CDT
====================================================================== 
Summary:                    [patch] Presence subscription on Cisco SIP phone
needs special Cisco-styled XML
Description: 
Cisco phones appear to be unable to parse the existing PIDF XML being
generated by Asterisk for presence notification.  I've attached a patch
which produces well-formed (but incomplete) XML which will satisfy a Cisco
phone.  The patch as supplied will successfully render a "busy"
subscription, but does not send a subsequent "available" notification, so
presence detection only half works currently.

I suspect the next step might be to watch some CallManager SIP traffic to
identify precisely what XML tags the phone is expecting in order to
properly parse an available subscription, but I'm not in a position to do
that.  I'll continue to work with this, though, and perhaps may be able to
stumble upon the precise data the Cisco phone is looking for.
====================================================================== 

---------------------------------------------------------------------- 
 (0135000) gareth (reporter) - 2011-05-16 22:56
 https://issues.asterisk.org/view.php?id=13996#c135000 
---------------------------------------------------------------------- 
Patch has been updated (gareth-1.8.4.patch), changes are -

DoNotDisturb and CallForward status is stored in the asterisk database and
retrieved on restart.

DoNotDisturb and CallForward status is correctly set back on phone during
registration for firmware >= 9.0.

DoNotDisturb will only have local_state = NOTIFY_OPEN for phones with
ciscounified=yes so it should show as busy rather than in-use.

iDivert soft key is now supported, see gareth-softkeys.xml for
definition.

Gave up trying to correctly authenticate PUBLISH requests as it phone
firmware chokes on 401 response in UDP mode.

Subscriptions with expiry of 0 won't create a useless extension state
watcher (this is an asterisk bug), phone does this when callLogBLFEnabled
is on.

Note: The Via: port fix has been included so it is possible to use UDP as
the session transport, you will need to set insecure=port as well. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-16 22:56 gareth         Note Added: 0135000                          
======================================================================




More information about the asterisk-bugs mailing list