sip.js.transactionuser.onstatechange.md

July 12, 2019 ยท View on GitHub

Home > sip.js > TransactionUser > onStateChange

TransactionUser.onStateChange property

Callback for notification of transaction state changes.

Not called when transaction is constructed, so there is no notification of entering the initial transaction state. Otherwise, called once for each transaction state change. State changes adhere to the following RFCs. https://tools.ietf.org/html/rfc3261\#section-17 https://tools.ietf.org/html/rfc6026

Signature:

onStateChange?: (newState: TransactionState) => void;