SIP.js icon indicating copy to clipboard operation
SIP.js copied to clipboard

Add `onCancel` delegate for Session

Open slavikbialik opened this issue 3 years ago • 0 comments

This PR will add onCancel delegation for Session. This can help developers to detect CANCEL events while call is ringing on the client and fire any action needed. It can assist detect 2 scenarios:

  1. CANCEL arriving before answering the call.
  2. CANCEL arriving while trying to answer the call and Session state is still ESTABLISHING (means 200OK - final response - has not yet sent out).

This PR is not breaking the RFC and SIP.js internal mechanism to treat incoming CANCEL requests.

slavikbialik avatar Aug 25 '21 18:08 slavikbialik