[asterisk-dev] [Code Review] 2547: Remove single event type restriction from res_sip_pubsub

Joshua Colp reviewboard at asterisk.org
Wed May 15 17:15:55 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2547/
-----------------------------------------------------------

Review request for Asterisk Developers.


Repository: Asterisk


Description
-------

The pjsip subscription system has a restriction where only a single event type can be registered. Due to the way res_sip_pubsub has been architected this really doesn't matter as it is always called into and ultimately finds a respective handler among all registered. The change attached moves a bit of logic into res_sip_pubsub (adding of accept types to the global Accept header) and only registers an event type once. By doing so res_sip_pubsub now supports multiple modules registering the same event type.


Diffs
-----

  /team/group/pimp_my_sip/res/res_sip_pubsub.c 388882 

Diff: https://reviewboard.asterisk.org/r/2547/diff/


Testing
-------

Set MWI up, confirmed it works as expected still.


Thanks,

Joshua Colp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130515/bbd0e3ce/attachment-0001.htm>


More information about the asterisk-dev mailing list