From 4ffa9f915bb07fac39e2077e753f734fc023a414 Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Thu, 12 Oct 2023 20:10:26 +0700 Subject: [PATCH] feat, add sip hedaer to sip info hook (#481) --- lib/session/call-session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session/call-session.js b/lib/session/call-session.js index 48ca3eb5..fb6d9980 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -1676,7 +1676,7 @@ class CallSession extends Emitter { res.send(501); return; } - const params = {sip_method, sip_body: req.body}; + const params = {sip_method, sip_body: req.body, sip_headers: req.headers}; this.currentTask.performHook(this, this.sipRequestWithinDialogHook, params); }