[Asterisk-Users] IAX2 using non standard port
    William Waites 
    asterisk at lists.styx.org
       
    Tue Dec 16 22:21:28 MST 2003
    
    
  
On Tue, Dec 16, 2003 at 10:59:50PM -0600, Walker Haddock wrote:
> 
> edit iax2.h file and change line 73 as follows:
> #define IAX_DEFAULT_PORTNO              80    /* 4569 */
this is *really* the *wrong* way to fix it.
the correct way is to set port = 80 in iax.conf
BUT...
you will notice near the beginning of the load_module()
routine in chan_iax2.c, it does
sin.sin_port = ntohs(IAX_DEFAULT_PORTNO);
sin.sin_addr.s_addr = INADDR_ANY;
in other words, the local address the iax2 process 
binds to, as well as the port, are hardcoded in
the source.
not good. these should come from the config file
with INADDR_ANY and IAX_DEFAULT_PORTNO as defaults.
can you create a bug for this on bugs.digium.com?
-w
-- 
/~\  The ASCII Ribbon Campaign
\ /    No HTML/RTF in email
 X     No Word docs in email
/ \  Respect for open standards
    
    
More information about the asterisk-users
mailing list