Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 2.36 KB

sip.js.subscribeuseragentclient.md

File metadata and controls

45 lines (29 loc) · 2.36 KB

Home > sip.js > SubscribeUserAgentClient

SubscribeUserAgentClient class

SUBSCRIBE UAC.

Signature:

export declare class SubscribeUserAgentClient extends UserAgentClient implements OutgoingSubscribeRequest 

Extends: UserAgentClient

Implements: OutgoingSubscribeRequest

Remarks

4.1. Subscriber Behavior https://tools.ietf.org/html/rfc6665\#section-4.1

User agent client for installation of a single subscription per SUBSCRIBE request. TODO: Support for installation of multiple subscriptions on forked SUBSCRIBE requests.

Constructors

Constructor Modifiers Description
(constructor)(core, message, delegate) Constructs a new instance of the SubscribeUserAgentClient class

Properties

Property Modifiers Type Description
delegate OutgoingSubscribeRequestDelegate | undefined

Methods

Method Modifiers Description
dispose() Destructor. Note that Timer N may live on waiting for an initial NOTIFY and the delegate may still receive that NOTIFY. If you don't want that behavior then either clear the delegate so the delegate doesn't get called (a 200 will be sent in response to the NOTIFY) or call waitNotifyStop which will clear Timer N and remove this UAC from the core (a 481 will be sent in response to the NOTIFY).
onNotify(uas) Handle out of dialog NOTIFY associated with SUBSCRIBE request. This is the first NOTIFY received after the SUBSCRIBE request.
receiveResponse(message) Receive a response from the transaction layer.
waitNotifyStart()
waitNotifyStop()