[asterisk-bugs] [Asterisk 0018424]: [patch] Temporary answers are sent to the wrong IP

Asterisk Bug Tracker noreply at bugs.digium.com
Wed May 11 13:51:53 CDT 2011


The following issue has been CLOSED 
====================================================================== 
https://issues.asterisk.org/view.php?id=18424 
====================================================================== 
Reported By:                oej
Assigned To:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   18424
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Target Version:             1.4/1.6.2 Issues (Final Release)
Asterisk Version:           SVN 
JIRA:                       SWP-2683 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-12-04 09:16 CST
Last Modified:              2011-05-11 13:51 CDT
====================================================================== 
Summary:                    [patch] Temporary answers are sent to the wrong IP
Description: 
When sending a bad message to asterisk we use a temporary pvt to respond.
If I send a message from a SIP device behind a NAT to an Asterisk on a
public IP, Asterisk ALWAYS answer to the address in the via: header. This
is not compliant with RFC 3261 and also opens up for using Asterisk for
sending messages to other host. If I send a SIP message with a via: header
for pbx.digium.com all the responses will be sent there.

We should really ALWAYS send responses to the sender's IP and port
(another issue here in the tracker correctly points that out). In other
cases, you can sort it out by setting NAT=yes in the general section.
However, that doesn't apply on temp_pvt.

====================================================================== 

---------------------------------------------------------------------- 
 (0134802) mnicholson (administrator) - 2011-05-11 13:51
 https://issues.asterisk.org/view.php?id=18424#c134802 
---------------------------------------------------------------------- 
I was not able to reproduce this issue.  Also, after a review of the code
in question, I don't see how this behavior would be possible (at least not
with the current SVN code). The sent by address in the via headers is not
currently used by asterisk when deciding where to route the response. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-11 13:51 mnicholson     Note Added: 0134802                          
2011-05-11 13:51 mnicholson     Status                   feedback => closed  
======================================================================




More information about the asterisk-bugs mailing list