Home > sip.js > SessionDialog > invite
Modifying an Existing Session
A successful INVITE request (see Section 13) establishes both a dialog between two user agents and a session using the offer-answer model. Section 12 explains how to modify an existing dialog using a target refresh request (for example, changing the remote target URI of the dialog). This section describes how to modify the actual session. This modification can involve changing addresses or ports, adding a media stream, deleting a media stream, and so on. This is accomplished by sending a new INVITE request within the same dialog that established the session. An INVITE request sent within an existing dialog is known as a re-INVITE.
Note that a single re-INVITE can modify the dialog and the parameters of the session at the same time.
Either the caller or callee can modify an existing session. https://tools.ietf.org/html/rfc3261\#section-14
Signature:
invite(delegate?: OutgoingInviteRequestDelegate, options?: RequestOptions): OutgoingInviteRequest;
Parameter | Type | Description |
---|---|---|
delegate | OutgoingInviteRequestDelegate | |
options | RequestOptions | Options bucket |
Returns: