[asterisk-bugs] [Asterisk 0013008]: [patch] chan_sip ignores rport and does not reply to source IP:port

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jul 8 03:49:43 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13008 
====================================================================== 
Reported By:                klaus3000
Assigned To:                bbryant
====================================================================== 
Project:                    Asterisk
Issue ID:                   13008
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.21 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-07-2008 08:44 CDT
Last Modified:              07-08-2008 03:49 CDT
====================================================================== 
Summary:                    [patch] chan_sip ignores rport and does not reply to
source IP:port
Description: 
Hi!

I have defined a peer in sip.conf:
[klaus]
type=peer
username=klaus
secret=password
host=dynamic
context=fromklaus

Then I register with eyebeam. Eyebeam sets the "rport" parameter in via
header which should activate symmetric signaling. Further, even if rport is
missing, the RFC 3261 mandates that replies should be sent to the source IP
of the request, not the IP in the Via header (the latter one should only be
used if the first one fails (e.g. ICMP error)).

Bug: Asterisk sends the request back to the IP in the Via header. I know I
can change behavior by setting nat=yes, but even without this setting
Asterisk should be standard conform.

I used Asterisk 1.4.21.1
====================================================================== 

---------------------------------------------------------------------- 
 oej - 07-08-08 03:49  
---------------------------------------------------------------------- 
We do have rport support in 1.4, so it's strange that it doesn't work. If
you have nat=never it is turned off. 

That needs to be fixed. 

Bretts patch was for svn trunk, obviously he missed that you reported
against 1.4. 

Klaus, you know that we also need a trace from your Asterisk when you file
bug reports against SIP. This time, I would like to see "sip show settings"
and a transaction with verbosity and debug output. THanks.

The symmetric reply to all requests is handled in another bug report. I'll
add a reference too it soon. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-08-08 03:49  oej            Note Added: 0089877                          
======================================================================




More information about the asterisk-bugs mailing list