Module: sip-router Branch: master Commit: 21e54da18f9bc6f87f913a897c9183074de4c937 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=21e54da1...
Author: Marcus Hunger hunger@sipgate.de Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Tue Aug 12 16:09:28 2014 +0200
rtpproxy: swap tags for lookup command (l) to fix one way audio on reinvite
- affected cases when the lookup was used explicitely
---
modules/rtpproxy/rtpproxy.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c index 57815d6..5926ca8 100644 --- a/modules/rtpproxy/rtpproxy.c +++ b/modules/rtpproxy/rtpproxy.c @@ -2454,6 +2454,11 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer, int forc if (to_tag.len == 0) { FORCE_RTP_PROXY_RET (-1); } + if (msg->first_line.type == SIP_REQUEST) { + tmp = from_tag; + from_tag = to_tag; + to_tag = tmp; + } create = 0; } else if ((msg->first_line.type == SIP_REPLY && offer != 0) || (msg->first_line.type == SIP_REQUEST && offer == 0)) {