[OpenSIPS-Devel] [ opensips-Bugs-3498720 ] engage_rtp_proxy() causes errors if called from branch_route

SourceForge.net noreply at sourceforge.net
Wed Mar 7 17:53:23 CET 2012


Bugs item #3498720, was opened at 2012-03-07 08:53
Message generated for change (Tracker Item Submitted) made by dpacket
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3498720&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dynamic Packet (dpacket)
Assigned to: Nobody/Anonymous (nobody)
Summary: engage_rtp_proxy() causes errors if called from branch_route

Initial Comment:
When calling engage_rtp_proxy() from a branch route on initial invite, replies with status 18x cause "ERROR:rtpproxy:engage_force_rtpproxy: cannot fetch first parameter" in log file. If engage_rtp_proxy() is called from main request route before branching, no error occurs on 18x replies.

It seems this bug is hitting line 2502 in rtpproxy.c . Running with debug=6 shows the following when processing the 18x reply in question:

Mar  7 11:44:44 core6 /usr/sbin/opensips[32402]: DBG:core:decode_mime_type: Decoding MIME type for:[application/sdp]
Mar  7 11:44:44 core6 /usr/sbin/opensips[32402]: DBG:rtpproxy:engage_force_rtpproxy: method id is 1 SDP: 1
Mar  7 11:44:44 core6 /usr/sbin/opensips[32402]: DBG:rtpproxy:engage_force_rtpproxy: handling 200 OK? - 183
Mar  7 11:44:44 core6 /usr/sbin/opensips[32402]: DBG:rtpproxy:move_bavp2dlg: nothing moved - message type 2 code 183
Mar  7 11:44:44 core6 /usr/sbin/opensips[32402]: DBG:rtpproxy:engage_force_rtpproxy: has sdp? 1 - offer 0
Mar  7 11:44:44 core6 /usr/sbin/opensips[32402]: DBG:dialog:fetch_dlg_value: looking for <rtpproxy_1>
Mar  7 11:44:44 core6 /usr/sbin/opensips[32402]: DBG:dialog:fetch_dlg_value: var NOT found!
Mar  7 11:44:44 core6 /usr/sbin/opensips[32402]: ERROR:rtpproxy:engage_force_rtpproxy: cannot fetch first parameter

Whats even stranger, is after the 183, on 200 OK, error does not seem to occur. Could this be related to a failure to track the dialog for 18x replies?



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3498720&group_id=232389



More information about the Devel mailing list