[Asterisk-Users] IAX2 using non standard port
Walker Haddock
whaddock at datacrest.com
Tue Dec 16 22:38:28 MST 2003
On Wed, Dec 17, 2003 at 12:21:28AM -0500, William Waites wrote:
> 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
I agree. The only problem is that IAX grabs this. Even when I put noload => chan_iax.so, it still would not bind to port 80. that's when I went looking in the source.
>
> 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;
I saw that.
>
> 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.
I was thinking it should work this way.
>
> can you create a bug for this on bugs.digium.com?
I'd be glad to, I haven't opened a bug before. Do I just log in and state these facts?
Walker
--
******** DataCrest, Inc. -- Technically Superior ******************
Walker Haddock http://www.datacrest.com
DataCrest, Inc. e-mail: wh at datacrest.com
1634A Montgomery Hwy. phone: 1-888-941-3282, 1-205-335-8589
Birmingham, AL 35216 fax: 1-205-823-7838
***********************************************************************
More information about the asterisk-users
mailing list