Thanks. Just looked at RFC 3489 and didn't know STUN had to have a second IP. Makes sense why it needs one now.
<br />
<br />On May 7, 2010 2:56am, "Bogdan-Andrei Iancu [via OpenSIPS (Open SIP Server)]" <<a href="/user/SendEmail.jtp?type=node&node=5019690&i=0" target="_top" rel="nofollow">[hidden email]</a>> wrote:
<div class='shrinkable-quote'><br />>
<br />>
<br />>
<br />>
<br />> Hi,
<br />>
<br />>
<br />>
<br />> you need to define the secondary IP and port params too.
<br />>
<br />>
<br />>
<br />> Regards,
<br />>
<br />>
<br />> Bogdan
<br />>
<br />>
<br />>
<br />> osiris123d wrote:
<br />>
<br />>
<br />> > I just compiled the STUN module on Debian 5.0.4 x64 and added the following
<br />>
<br />>
<br />> > stun parameters to my config
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> > port=5060
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> > /* uncomment and configure the following line if you want opensips to
<br />>
<br />>
<br />> > bind on a specific interface/port/proto (default bind on all available)
<br />>
<br />>
<br />> > */
<br />>
<br />>
<br />> > listen=udp:173.*.*.134:5060
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> > #**
<br />>
<br />>
<br />> > # ----- stun params -----
<br />>
<br />>
<br />> > modparam("stun","primary_ip","173.*.*.134")
<br />>
<br />>
<br />> > modparam("stun","primary_port","5060")
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> > When I try and start OpenSIPS it fails and I see the following errors in
<br />>
<br />>
<br />> > syslog. Any idea whats up?
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]: DBG:core:init_mod:
<br />>
<br />>
<br />> > initializing module stun
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:core:grep_sock_info: checking if host==us: 14==14 && [173.*.*.134]
<br />>
<br />>
<br />> > == [173.*.*.134]
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:core:grep_sock_info: checking if port 5060 matches port 5060
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:core:grep_sock_info: checking if host==us: 14==14 && [173.*.*.134]
<br />>
<br />>
<br />> > == [173.*.*.134]
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:core:grep_sock_info: checking if port 5060 matches port 3478
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:stun:stun_mod_init: socketfd2 not found
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:core:grep_sock_info: checking if host==us: 13==14 && [192.168.2.143] =
<br />>
<br />>
<br />> > = [173.*.*.134]
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:core:grep_sock_info: checking if port 5060 matches port 5060
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:stun:stun_mod_init: socketfd3 not found
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:core:grep_sock_info: checking if host==us: 13==14 && [192.168.2.143] =
<br />>
<br />>
<br />> > = [173.*.*.134]
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:core:grep_sock_info: checking if port 5060 matches port 3478
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:stun:stun_mod_init: socketfd4 not found
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > DBG:stun:stun_mod_init: stun init failed
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
<br />>
<br />>
<br />> > ERROR:core:init_mod: failed to initialize module stun
<br />>
<br />>
<br />> > May 6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]: ERROR:core:main:
<br />>
<br />>
<br />> > error while initializing modules
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />>
<br />>
<br />> --
<br />>
<br />>
<br />> Bogdan-Andrei Iancu
<br />>
<br />>
<br />> www.voice-system.ro
<br />>
<br />>
<br />>
<br />>
<br />> _______________________________________________
<br />>
<br />>
<br />> Users mailing list
<br />>
<br />>
<br />> [hidden email]
<br />>
<br />>
<br />> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />> View message @ http://opensips-open-sip-server.1449251.n2.nabble.com/Stun-Module-OpenSIPS-won-t-start-tp5017728p5018216.html
<br />>
<br />>
<br />>
<br />>
<br />> To unsubscribe from Stun Module - OpenSIPS won't start, click here.
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />></div>
<br><hr align="left" width="300">
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Stun-Module-OpenSIPS-won-t-start-tp5017728p5019690.html">Re: Re: Stun Module - OpenSIPS won't start</a><br>
Sent from the <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html">OpenSIPS - Users mailing list archive</a> at Nabble.com.<br>