[asterisk-bugs] [Asterisk 0018419]: IAX2 bindaddr doesn't bind to IP address

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Jan 30 02:16:23 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18419 
====================================================================== 
Reported By:                blanchae
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18419
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           Older 1.6.2 - please test a newer version 
JIRA:                       SWP-2682 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-12-03 10:35 CST
Last Modified:              2011-01-30 02:16 CST
====================================================================== 
Summary:                    IAX2 bindaddr doesn't bind to IP address
Description: 
When using the bindaddr directive in iax_general_custom.conf, (included in
iax.conf), IAX2 does not bind to the IP address. 

chan_iax2.c: Ignoring bindaddr

This bug was originally noted on
 * FreePBX : 2.5.1
 * Asterisk Source Version : 1.6.0.6  (later tested on 1.6.2.6)
 * Dahdi Source Version : 2.1.0.4+2.1.0.2
 * Libpri Source Version : 1.4.9
 * Addons Source Version : 1.6.0.1

 With IAX2 and the iax_general_custom.conf file. bindaddr=xxx.xxx.xxx.xxx
 is ignored on reload. It defaults back to address 0.0.0.0 which is any
interface.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0016561 Ignores bindaddr on reload
====================================================================== 

---------------------------------------------------------------------- 
 (0131237) blanchae (reporter) - 2011-01-30 02:16
 https://issues.asterisk.org/view.php?id=18419#c131237 
---------------------------------------------------------------------- 
bindaddr = for IAX is ignored in my testing on reload or when asterisk
starts. Doesn't work with the versions that I've tried. Basically, I have
two ethernet cards: eth0 and eth1. using bindaddr to point to eth0's IP
address doesn't work. IAX goes out eth1's port. Wiresharking shows requests
coming in on eth0 and IAX going out on eth1 regardless of bindaddr
settings. FYI eth0 is on a different subnet then eth1.

The result is if an IAX phone is registering to eth0, IAX may respond from
eth1 which has the wrong subnet address. The IAX phone ignores the response
because it is expecting the registrar on eth0 to respond. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-30 02:16 blanchae       Note Added: 0131237                          
======================================================================




More information about the asterisk-bugs mailing list