Skip to content

Commit

Permalink
fix: add cause and causeCode when hangup the call (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeividVeloso authored Oct 2, 2020
1 parent a5105ea commit 74114d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/js/src/Modules/Verto/webrtc/BaseCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ export default abstract class BaseCall implements IWebRTCCall {
const bye = new Bye({
sessid: this.session.sessionid,
dialogParams: this.options,
cause: 'USER_BUSY',
causeCode: 17,
});
this._execute(bye)
.catch((error) => logger.error('telnyl_rtc.bye failed!', error))
Expand Down

0 comments on commit 74114d7

Please sign in to comment.