[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:32:36 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12006 
====================================================================== 
Reported By:                mnicholson
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   12006
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 103725 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-02-15 12:45 CST
Last Modified:              2009-04-13 11:32 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...
====================================================================== 

---------------------------------------------------------------------- 
 (0103149) svnbot (reporter) - 2009-04-13 11:32
 http://bugs.digium.com/view.php?id=12006#c103149 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 188069

_U  branches/1.6.1/
U   branches/1.6.1/channels/chan_sip.c

------------------------------------------------------------------------
r188069 | file | 2009-04-13 11:32:35 -0500 (Mon, 13 Apr 2009) | 17 lines

Merged revisions 188067 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r188067 | file | 2009-04-13 13:28:06 -0300 (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=188069 

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




More information about the asterisk-bugs mailing list