From 8764b1e4d32694f0dd58c58254e2b5641d0769e8 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Mon, 12 Aug 2019 14:17:43 +0200 Subject: [PATCH] TT#64652 pv_headers: ignore FAKED_REPLY msg * skip pv_headers processing in the callbacks if the msg pointer is FAKED_REPLY Change-Id: I1469708f9112c9510f02c4b1e7af72f32a93adc2 (cherry picked from commit 67446d7fb9810cbe34657b9c5f272175f8a0da12) --- debian/patches/sipwise/add_pv_headers_module.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/patches/sipwise/add_pv_headers_module.patch b/debian/patches/sipwise/add_pv_headers_module.patch index 23bede169..c376b4191 100644 --- a/debian/patches/sipwise/add_pv_headers_module.patch +++ b/debian/patches/sipwise/add_pv_headers_module.patch @@ -770,7 +770,7 @@ + switch (type) { + case TMCB_RESPONSE_IN: + msg = params->rpl; -+ if (msg) { ++ if (msg != NULL && msg != FAKED_REPLY) { + pv_reset_headers(msg, NULL, NULL); + pv_collect_headers(msg, "1", NULL); + } @@ -787,7 +787,7 @@ + return; + } + -+ if (msg) ++ if (msg != NULL && msg != FAKED_REPLY) + pv_apply_headers(msg, "1", NULL); + + return;