[asterisk-bugs] [Asterisk 0017044]: SDP c and o lines contain the wrong IP address when using an externally mapped IP(extern{ip, host})

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 16 15:45:18 CDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17044 
====================================================================== 
Reported By:                ebroad
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17044
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-03-16 15:45 CDT
Last Modified:              2010-03-16 15:45 CDT
====================================================================== 
Summary:                    SDP c and o lines contain the wrong IP address when
using an externally mapped IP(extern{ip,host})
Description: 
The problem stems from a call to ast_rtp_instance_get_local_address() in
chan_sip.c in get_our_media_address(). ast_rtp_instance_get_local_address()
will always return the internal IP address of the Asterisk machine, which
could pose a problem when using NAT. 

A simple solution would be to override {v,t}sin->sin_addr in
get_our_media_address() with p->ourip.sin_addr.s_addr if it is different,
though I don't know what that might break.  
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-16 15:45 ebroad         New Issue                                    
2010-03-16 15:45 ebroad         Asterisk Version          => SVN             
2010-03-16 15:45 ebroad         Regression                => No              
2010-03-16 15:45 ebroad         SVN Branch (only for SVN checkouts, not tarball
releases) =>  trunk          
======================================================================




More information about the asterisk-bugs mailing list