diff --git a/debian/patches/series b/debian/patches/series index afbc47239..7241cdc98 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -43,6 +43,8 @@ upstream/cfgt-fix-implicit-declaration-of-strcasestr.patch upstream/topos_execute_event_route_topos_sending.patch ## backport from kamailio upstream (5.3) upstream/limit_the_execution_of_dialplan_reload.patch +## backport from kamailio upstream (5.5) +upstream/nathelper-don-t-fail-if-a-rtcp-has-no-IP.patch # sipwise/extend_stats.patch sipwise/tt37692.patch diff --git a/debian/patches/upstream/nathelper-don-t-fail-if-a-rtcp-has-no-IP.patch b/debian/patches/upstream/nathelper-don-t-fail-if-a-rtcp-has-no-IP.patch new file mode 100644 index 000000000..61b363cc9 --- /dev/null +++ b/debian/patches/upstream/nathelper-don-t-fail-if-a-rtcp-has-no-IP.patch @@ -0,0 +1,30 @@ +From: Victor Seva +Date: Tue, 8 Jun 2021 15:03:21 +0200 +Subject: nathelper: don't fail if 'a=rtcp' has no IP + +Examples from RFC3605: +> m=audio 49170 RTP/AVP 0 +> a=rtcp:53020 +> +> m=audio 49170 RTP/AVP 0 +> a=rtcp:53020 IN IP4 126.16.64.4 +> +> m=audio 49170 RTP/AVP 0 +> a=rtcp:53020 IN IP6 2001:2345:6789:ABCD:EF01:2345:6789:ABCD +--- + src/modules/nathelper/nathelper.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/modules/nathelper/nathelper.c b/src/modules/nathelper/nathelper.c +index baae1db..9512834 100644 +--- a/src/modules/nathelper/nathelper.c ++++ b/src/modules/nathelper/nathelper.c +@@ -1655,7 +1655,7 @@ static inline int replace_sdp_ip( + hasreplaced = 1; + body1 = body2; + } +- if(!hasreplaced) { ++ if(!hasreplaced && memcmp("a=rtcp", line, 6) != 0) { + LM_ERR("can't extract '%s' IP from the SDP\n", line); + return -1; + }