[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
Tue Dec 9 11:20:47 CST 2008


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:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 103725 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-02-15 12:45 CST
Last Modified:              2008-12-09 11:20 CST
====================================================================== 
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.
====================================================================== 

---------------------------------------------------------------------- 
 (0096018) chris-mac (reporter) - 2008-12-09 11:20
 http://bugs.digium.com/view.php?id=12006#c96018 
---------------------------------------------------------------------- 
I am having problems with "outboundproxy" in "general" section too
(Asterisk SVN-branch-1.6.1-r161639).

when I put proxy in sip.conf:
[general]
...
outboundproxy=proxy.domain:5060

and try to Dial(SIP/enum-test at sip.nemox.net), I am getting the following
error in the console:

   -- Executing [43780004711 at dialSIP:3]
Dial("SIP/dev-sip.tele500.com-08204d10",
"SIP/enum-test at sip.nemox.net") in new stack
 == Using SIP RTP CoS mark 5
[Dec  9 15:39:35] ERROR[2344]: chan_sip.c:19423 handle_request_do: We
could NOT get the channel lock for SIP/sip.nemox.net-08210dc8!
[Dec  9 15:39:35] ERROR[2344]: chan_sip.c:19424 handle_request_do: SIP
transaction failed: 365c9c8209a3163523bd79782dc9d208 at 78.105.1.129
   -- Got SIP response 503 "Server error" back from 0.0.0.0
   -- Called enum-test at sip.nemox.net
   -- SIP/sip.nemox.net-08210dc8 is circuit-busy

When I use proxy IP address instead of a domain name:
[general]
...
outboundproxy=proxy_IP_address:5060

There is an error as below:

   -- Executing [43780004711 at dialSIP:3]
Dial("SIP/dev-sip.tele500.com-b7208810",
"SIP/enum-test at sip.nemox.net") in new stack
 == Using SIP RTP CoS mark 5
   -- Called enum-test at sip.nemox.net
   -- Got SIP response 482 "Loop Detected" back from 0.0.0.0

In both cases no SIP packets are leaving Asterisk. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-09 11:20 chris-mac      Note Added: 0096018                          
======================================================================




More information about the asterisk-bugs mailing list