[asterisk-bugs] [JIRA] (ASTERISK-23706) PJSIP: Add outbound subscriptions and inbound NOTIFY request handling (MWI, Device State)

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu May 1 15:53:44 CDT 2014


Matt Jordan created ASTERISK-23706:
--------------------------------------

             Summary: PJSIP: Add outbound subscriptions and inbound NOTIFY request handling (MWI, Device State)
                 Key: ASTERISK-23706
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23706
             Project: Asterisk
          Issue Type: Improvement
      Security Level: None
          Components: Resources/res_pjsip, Resources/res_pjsip_pubsub
            Reporter: Matt Jordan


One of the things that didn't make the cut in PJSIP land initially was the concept of outbound subscriptions. We need to add it.

This task consists of two parts:
# Adding outbound subscriptions, and managing all the fun that it entails
# Understanding inbound NOTIFY requests and raising the appropriate Stasis messages

Outbound subscriptions will need a new configuration item. This should be discussed on the -dev list before being implemented, but it _could_ look like this:

{noformat}
[external_asterisk]
type=endpoint
outbound_subscription=external_asterisk

[external_asterisk]
type=outbound_subscription
mailbox=1000 at context
{noformat}

This uses a similar nomenclature to outbound registration. We would create a subscription for an event package mapping to 'mailbox' for {{1000 at context}}.

{{res_pjsip_pubsub}} already contains some APIs for this; these should be extended to support outbound subscriptions.

NOTIFY request handling should be handled by the body generators. A body generator should have the ability to take in the body from a NOTIFY request and return back a stasis_message to publish. The virtual table for body generators should be modified to support such a callback, and the various resource modules updated to pass back the appropriate stasis messages.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list