Skip to content

Commit

Permalink
feat: add custom headers on bye
Browse files Browse the repository at this point in the history
  • Loading branch information
farhat-ha committed Apr 30, 2024
1 parent efc6fbf commit f99dcff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/js/src/Modules/Verto/webrtc/BaseCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,10 @@ export default abstract class BaseCall implements IWebRTCCall {
this.sipCode = params.sipCode || null;
this.sipReason = params.sipReason || null;
this.sipCallId = params.sip_call_id || null;

this.options.customHeaders = [
...this.options.customHeaders ?? [],
...params?.dialogParams?.customHeaders ?? [],
];
this.setState(State.Hangup);

const _close = () => {
Expand Down

0 comments on commit f99dcff

Please sign in to comment.