On 07/07/2008 16:27, Filippo Zangheri wrote: > On 07/07/2008 16:09, Benny Prijono wrote: >> ... >> >> Thanks for the info, I've added the NULL check in the SVN. > > I'm happy to contribute to this great project! > > >> Yeah I think it's probaby better to report this to the "authority" (not sure >> whom that will be). :) > > Sure, but I'd be glad to know that I'm not the only one who experiences this > behaviour. Anyway I'm going to report it as soon as possible. > > Further investigating, I've written a very simple program that lists network > interfaces: > ... Benny, I've reached desired behaviour (I guess that's desired behaviour!) by adding the NULL check already mentioned and commenting out the loopback address check a few lines below: if (it->ifa_flags & IFF_LOOPBACK) { Doing this, I get (with ppp connection running): $ ./stateful_proxy-i686-pc-linux-gnu 16:37:08.113 os_core_unix.c pjlib 0.9.0-release for POSIX initialized 16:37:08.114 pjlib select() I/O Queue created (0xb7b9d098) 16:37:08.114 sip_endpoint.c Module "mod-msg-print" registered 16:37:08.114 sip_endpoint.c Module "mod-tsx-layer" registered 16:37:08.114 sip_endpoint.c Module "mod-stateful-util" registered 16:37:08.280 udp0x80a2b60 SIP UDP transport started, published address is 82.59.213.185:5060 16:37:08.280 sip_endpoint.c Module "mod-msg-logger" registered 16:37:08.300 stateful_proxy Proxy started, listening on port 5060 16:37:08.300 stateful_proxy Local host aliases: 16:37:08.300 stateful_proxy 82.59.213.185:5060 16:37:08.300 stateful_proxy 127.0.0.1:5060 16:37:08.300 stateful_proxy 192.168.2.20:5060 16:37:08.300 stateful_proxy asus-laptop:5060 16:37:08.300 stateful_proxy localhost:5060 16:37:08.300 sip_endpoint.c Module "mod-stateful-proxy" registered 16:37:08.300 sip_endpoint.c Module "mod-transaction-user" registered Menu: q quit d dump status dd dump detailed status q 16:37:12.138 sip_endpoint.c Module "mod-transaction-user" unregistered 16:37:12.138 sip_endpoint.c Module "mod-stateful-util" unregistered 16:37:12.138 sip_endpoint.c Module "mod-stateful-proxy" unregistered 16:37:12.138 sip_transactio Stopping transaction layer module 16:37:12.139 sip_transactio Transaction layer module destroyed 16:37:12.139 sip_endpoint.c Module "mod-tsx-layer" unregistered 16:37:12.139 sip_endpoint.c Module "mod-msg-print" unregistered 16:37:12.139 sip_endpoint.c Module "mod-msg-logger" unregistered 16:37:12.142 sip_endpoint.c Endpoint 0x808b584 destroyed Loopback interface is added in if_enum_by_af(), according to the comment in proxy.h:276, /* No need to add this, this should have been added above. */ /* global.name[global.name_cnt].host = pj_str("127.0.0.1"); * global.name[global.name_cnt].port = global.port; * global.name_cnt++; */ What do you think about it? Best regards. -- Filippo Zangheri GPG key ID: 0x6C1F2F2F -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080707/be4de2a9/attachment.bin