[Asterisk-Dev] ast_gethostbyname

Ignace CARIA ignace.caria at level-it.be
Tue May 4 12:30:21 MST 2004


Hi,

I try to make a new application for Asterisk.

For this one, I need sockets!

When I try a gethostbyname, the compiler return me a warning, it prefers 
using ast_gethostbyname.

Right....

I change my source code, it runs well but I don't know where this 
function found the IP address.

Explaination:

Five days before, I make test using 172.26.139.64 as IP address.  Now I 
use in my Network 192.168.0.16.

Instead of return me my IP network, it returns the first one.  I check 
my IP config, all is well defined.

Any idea?

thanks

Ignace




More information about the asterisk-dev mailing list