[asterisk-bugs] [Asterisk 0012006]: [patch] chan_sip fails to set contact, via, and sdp headers correctly with outboundproxy set

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 13 11:28:08 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12006 
====================================================================== 
Reported By:                mnicholson
Assigned To:                oej
====================================================================== 
Project:                    Asterisk
Issue ID:                   12006
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 103725 
Request Review:              
====================================================================== 
Date Submitted:             2008-02-15 12:45 CST
Last Modified:              2009-04-13 11:28 CDT
====================================================================== 
Summary:                    [patch] chan_sip fails to set contact, via, and sdp
headers correctly with outboundproxy set
Description: 
Setting outboundproxy in sip.conf causes asterisk to fail to properly set
contact, via, and sdp headers (they get set to 127.0.0.1).  This is because
when outboundproxy is set, we don't fill in the sa struct of the sip_pvt
for that dialog which is used to generate the ourip member of the sip_pvt
struct which is used to generate the contact, via, and sdp headers that are
faulty.  I don't know what the reasoning was for not populating the
sip_pvt.sa member originally, but it breaks stuff.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0014055 "outboundproxy" in "gene...
====================================================================== 

---------------------------------------------------------------------- 
 (0103147) svnbot (reporter) - 2009-04-13 11:28
 http://bugs.digium.com/view.php?id=12006#c103147 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 188067

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r188067 | file | 2009-04-13 11:28:06 -0500 (Mon, 13 Apr 2009) | 10 lines

Fix a bug where using an outbound proxy would cause the local address to
be 127.0.0.1.

Copy the outbound proxy IP address into the SIP dialog structure as the IP
address we will
be sending to. This has to be done because the logic that determines what
local IP address to use
in the SIP messages is not aware of an outbound proxy being in place. It
only knows what IP address
we are sending to.

(closes issue http://bugs.digium.com/view.php?id=12006)
Reported by: mnicholson

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

http://svn.digium.com/view/asterisk?view=rev&revision=188067 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-13 11:28 svnbot         Checkin                                      
2009-04-13 11:28 svnbot         Note Added: 0103147                          
======================================================================




More information about the asterisk-bugs mailing list