Re: [Sofia-sip-devel] nua: initializing SIP stack failed
In data Wednesday 2010-07-07 17:51:00 +0300, Pekka Pessi ha scritto: 2010/6/30 Stefano Sabatini ssabat...@reilabs.com: Hi all, I'm running this simple code in Windows Vista: nta: master transport created tport(00F27958) to */*:*/sip tport(00F27958): calling tport_listen for udp tport(00F27958): new primary tport 00F28128 tport(00F27958): bind(pf=2 udp/[192.168.0.1]): No such file or directory nta: bind(*:*;transport=*): No such file or directory nua: initializing SIP stack failed Can you suggest what the problem may be? For some reason binding a socket to IP address 192.168.0.1 fails. Where the address comes from? Does you Vista box try to share internet connection? If you can compile and run localinfo command, see what it prints? You can also modify NUTAG_URL(sip:stef...@*:*) so it explicitly mentions the IP address, e.g., NUTAG_URL(sip:stef...@*:*;maddr=10.2.3.4) Hi Pekka, yes that looked like a configuration issue, we fixed the problem by hardcoding the address of the interface to be used, using something like this: NUTAG_URL(sip:X.Y.Z.W:*); and *disabling* all the other interfaces. Sorry that I have no time to investigate more on this... Thanks, regards. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Re: [Sofia-sip-devel] nua: initializing SIP stack failed
2010/6/30 Stefano Sabatini ssabat...@reilabs.com: Hi all, I'm running this simple code in Windows Vista: nta: master transport created tport(00F27958) to */*:*/sip tport(00F27958): calling tport_listen for udp tport(00F27958): new primary tport 00F28128 tport(00F27958): bind(pf=2 udp/[192.168.0.1]): No such file or directory nta: bind(*:*;transport=*): No such file or directory nua: initializing SIP stack failed Can you suggest what the problem may be? For some reason binding a socket to IP address 192.168.0.1 fails. Where the address comes from? Does you Vista box try to share internet connection? If you can compile and run localinfo command, see what it prints? You can also modify NUTAG_URL(sip:stef...@*:*) so it explicitly mentions the IP address, e.g., NUTAG_URL(sip:stef...@*:*;maddr=10.2.3.4) -- Pekka.Pessi mail at nokia.com -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
[Sofia-sip-devel] nua: initializing SIP stack failed
Hi all, I'm running this simple code in Windows Vista: --8-- root = su_root_create(NULL); su_root_release(root); if (!root) { fprintf(stderr, Impossible to create a root thread, aborting.); exit(1); } nua = nua_create(root, event_callback, /* Callback for processing events */ NULL, /* Additional data to pass to callback */ NUTAG_URL(sip:stef...@*:*), /* try to bind to all the host interfaces */ TAG_END()); --8-- And I'm getting this trace: su_socket_port_init(00F23320, 101E62F8) called su_pthread_port_init(00F23320, 101E62F8) called su_socket_port_init(00F25428, 101E62F8) called su_pthread_port_init(00F25428, 101E62F8) called soa_create(default, 00F25D70, 00F25E80) called soa_set_params(static::00F26400, ...) called soa_set_params(static::00F26400, ...) called nta_agent_create: initialized hash tables nta_agent_create: initialized transports nta_agent_create: initialized random identifiers nta_agent_create: initialized timer Adding nameserver: 10.xx.x.254 nta_agent_create: initialized resolver tport_create(): 00F27958 nta: master transport created tport(00F27958) to */*:*/sip tport(00F27958): calling tport_listen for udp tport(00F27958): new primary tport 00F28128 tport(00F27958): bind(pf=2 udp/[192.168.0.1]): No such file or directory nta: bind(*:*;transport=*): No such file or directory nua: initializing SIP stack failed sres_sofia_update(00F27648, -1, -1) sres_sofia_update(, -1, -1) tport(00F27958) su_wsevent_port_deinit(00F25428) called Can you suggest what the problem may be? The same code runs fine on Linux and on other Windows Machine (namely Windows XP, but it may be unrelated to the OS used). Regards. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel