[asterisk-bugs] [Asterisk 0017044]: [regression][patch] 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 Aug 10 11:54:19 CDT 2010


The following issue has been ASSIGNED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17044 
====================================================================== 
Reported By:                ebroad
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   17044
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/566/ 
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-08-10 11:54 CDT
====================================================================== 
Summary:                    [regression][patch] 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.  
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013823 [patch] Response to REGISTER is sent to...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-10 11:54 svnbot         Status                   confirmed => assigned
2010-08-10 11:54 svnbot         Assigned To               => russell         
======================================================================




More information about the asterisk-bugs mailing list