[OpenSIPS-Devel] SF.net SVN: opensips:[7082] branches/1.5/modules/nathelper/nathelper.c

Bogdan-Andrei Iancu bogdan at voice-system.ro
Sun Aug 1 22:35:01 CEST 2010


Revision: 7082
          http://opensips.svn.sourceforge.net/opensips/?rev=7082&view=rev
Author:   bogdan_iancu
Date:     2010-08-01 20:35:01 +0000 (Sun, 01 Aug 2010)

Log Message:
-----------


When rewriting the SDP of an ACK rtpproxy_answer() retrieves the wrong port from rtpproxy.

This is reproducible by handling SDP offered in a 200 Ok response with rtpproxy_offer() and then processing the answering SDP in an ACK with rtpproxy_answer() - the result is that the same port gets written into the ACK's SDP as was written into the Ok's SDP. In short, the 200 Ok is being handled correctly when it contain an SDP offer since the to/from tag are swapped inside force_rtp_proxy() before getting passed along to rtpproxy. The swap is critical as it provides consistent results when processing SDP offered in INVITE requests and Ok responses during re-invites within the same dialog. But the complimentary swapping is not being done for SDP answers contained in ACKs.

Closes patch 3019749
Credits go to John Riordan  

Modified Paths:
--------------
    branches/1.5/modules/nathelper/nathelper.c


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Devel mailing list