From 2fc2f989bbc3ffe1bdabba1c738449d1d91bc9ab Mon Sep 17 00:00:00 2001 From: Jozef Kenyeres Date: Tue, 1 Aug 2017 15:27:06 +0200 Subject: [PATCH] TT#9521 fix failed relay of 200OK without SDP. Change-Id: Iaed4c2edc65e1d1d1c80848be1e51cd587d1c22b (cherry picked from commit 564d4c09263c021aa7e651edbfbd22e8b895a3bf) --- debian/patches/series | 1 + .../0020-TT-9521-fix-200OK-without-SPD.patch | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 debian/patches/sipwise/0020-TT-9521-fix-200OK-without-SPD.patch diff --git a/debian/patches/series b/debian/patches/series index 7a673b47..cf6b3e81 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -18,3 +18,4 @@ sipwise/MT-20649-add-vsc-for-block-in-clir sipwise/MT-20649-change-config-validation sipwise/MT-20649-use-macros sipwise/0002-b-f-dsm-mod_conference-set-callgroup-to-conference-c.patch +sipwise/0020-TT-9521-fix-200OK-without-SPD.patch diff --git a/debian/patches/sipwise/0020-TT-9521-fix-200OK-without-SPD.patch b/debian/patches/sipwise/0020-TT-9521-fix-200OK-without-SPD.patch new file mode 100644 index 00000000..3440d718 --- /dev/null +++ b/debian/patches/sipwise/0020-TT-9521-fix-200OK-without-SPD.patch @@ -0,0 +1,14 @@ +Index: sems/core/AmOfferAnswer.cpp +=================================================================== +--- sems.orig/core/AmOfferAnswer.cpp ++++ sems/core/AmOfferAnswer.cpp +@@ -392,6 +392,9 @@ int AmOfferAnswer::onReplyOut(AmSipReply + if (reply.code == 183 && reply.cseq_method == SIP_METH_INVITE) { + // just ignore if no SDP is generated (required for B2B) + } ++ else if (reply.code == 200 && reply.cseq_method == SIP_METH_INVITE && state == OA_Completed) { ++ // just ignore if no SDP is generated (required for B2B) ++ } + else return -1; + } + else {