bugfix #17: send final sipStatus 487 when A leg cancels

This commit is contained in:
Dave Horton
2020-04-29 09:40:24 -04:00
parent 8ee590172b
commit a806a4eb46

View File

@@ -20,7 +20,10 @@ class InboundCallSession extends CallSession {
this.req = req;
this.res = res;
req.on('cancel', this._callReleased.bind(this));
req.on('cancel', () => {
this._notifyCallStatusChange({callStatus: CallStatus.NoAnswer, sipStatus: 487});
this._callReleased();
});
this.on('callStatusChange', this._notifyCallStatusChange.bind(this));
this._notifyCallStatusChange({callStatus: CallStatus.Trying, sipStatus: 100});