[asterisk-dev] PJSIP Subscription Handler

Joshua Colp jcolp at digium.com
Thu Jan 4 05:22:17 CST 2018


On Thu, Jan 4, 2018, at 3:56 AM, Simon Hohberg wrote:
> Hi,
> 
> I am trying to implement a PJSIP subscription handler for a custom event 
> where one endpoint sends a subscribe to another endpoint registered on 
> Asterisk.
> I have the basic structure and can receive the subscription from one 
> endpoint in the "new_subscribe" and "subscription_established" callbacks 
> (ast_sip_notifier).
> However, I don't see how I can create a new subscribe that is then send 
> out to the other endpoint.

If you mean having Asterisk set up its own outgoing subscription and act on NOTIFY requests, there is currently no API or support for doing such a thing. It only supports receiving a subscribe and acting on it.

-- 
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



More information about the asterisk-dev mailing list