sip.js.inviteclienttransaction._constructor_.md

September 26, 2022 ยท View on GitHub

Home > sip.js > InviteClientTransaction > (constructor)

InviteClientTransaction.(constructor)

Constructor. Upon construction, the outgoing request's Via header is updated by calling setViaHeader. Then toString is called on the outgoing request and the message is sent via the transport. After construction the transaction will be in the "calling" state and the transaction id will equal the branch parameter set in the Via header of the outgoing request. https://tools.ietf.org/html/rfc3261\#section-17.1.1

Signature:

constructor(request: OutgoingRequestMessage, transport: Transport, user: ClientTransactionUser);

Parameters

ParameterTypeDescription
requestOutgoingRequestMessageThe outgoing INVITE request.
transportTransportThe transport.
userClientTransactionUserThe transaction user.