[Asterisk-Users] Re: IAX2 doesn't respect bindaddr?
Tom Ivar Helbekkmo
tih at eunetnorge.no
Tue Jan 18 02:50:34 MST 2005
Tom Ivar Helbekkmo <tih at eunetnorge.no> writes:
> I wrote:
>
>> OK, I just [updated]. No change. :-(
>
> Here's what Asterisk says on startup:
>
> Asterisk CVS-HEAD-01/18/05-07:51:47, Copyright (C) 1999-2004 Digium.
> [...]
> == Parsing '/etc/asterisk/iax.conf': Found
> == Using TOS bits 0
> == Binding IAX2 to '193.71.27.8:4569'
> == Registered channel type 'IAX2' (Inter Asterisk eXchange Driver (Ver 2))
> == IAX Ready and Listening on 0.0.0.0 port 4569
Fixed it! Reading code is fun. :-) I'll submit a bug report to Mantis.
athene# cvs diff -u acl.c
Index: acl.c
===================================================================
RCS file: /usr/cvsroot/asterisk/acl.c,v
retrieving revision 1.35
diff -u -r1.35 acl.c
--- acl.c 17 Jan 2005 22:53:36 -0000 1.35
+++ acl.c 18 Jan 2005 09:48:37 -0000
@@ -378,6 +378,7 @@
if ((portno = atoi(port)) > 0)
sin.sin_port = htons(portno);
}
+ inet_aton(tmp, &sin.sin_addr);
return ast_netsock_bindaddr(list, ioc, &sin, tos, callback, data);
} else
ast_log(LOG_WARNING, "Out of memory!\n");
athene#
-tih
--
Tom Ivar Helbekkmo, Senior System Administrator, EUnet Norway Hosting
www.eunet.no T +47-22092958 M +47-93013940 F +47-22092901 FWD 484145
More information about the asterisk-users
mailing list