[OpenSIPS-Users] Stun Module - OpenSIPS won't start

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri May 7 09:56:00 CEST 2010


Hi,

you need to define the secondary IP and port params too.

Regards,
Bogdan

osiris123d wrote:
> I just compiled the STUN module on Debian 5.0.4 x64 and added the following
> stun parameters to my config
>
>
> port=5060                  
>
> /* uncomment and configure the following line if you want opensips to
>    bind on a specific interface/port/proto (default bind on all available)
> */
> listen=udp:173.*.*.134:5060  
>
>
> #**
> # ----- stun params -----
> modparam("stun","primary_ip","173.*.*.134")
> modparam("stun","primary_port","5060")
>
>
>
>
> When I try and start OpenSIPS it fails and I see the following errors in
> syslog.  Any idea whats up?
>
>
>
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]: DBG:core:init_mod:
> initializing module stun
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:core:grep_sock_info: checking if host==us: 14==14 &&  [173.*.*.134] 
> == [173.*.*.134]
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:core:grep_sock_info: checking if port 5060 matches port 5060
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:core:grep_sock_info: checking if host==us: 14==14 &&  [173.*.*.134] 
> == [173.*.*.134]
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:core:grep_sock_info: checking if port 5060 matches port 3478
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:stun:stun_mod_init: socketfd2 not found
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:core:grep_sock_info: checking if host==us: 13==14 &&  [192.168.2.143] =
> = [173.*.*.134]
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:core:grep_sock_info: checking if port 5060 matches port 5060
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:stun:stun_mod_init: socketfd3 not found
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:core:grep_sock_info: checking if host==us: 13==14 &&  [192.168.2.143] =
> = [173.*.*.134]
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:core:grep_sock_info: checking if port 5060 matches port 3478
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:stun:stun_mod_init: socketfd4 not found
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> DBG:stun:stun_mod_init: stun init failed
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]:
> ERROR:core:init_mod: failed to initialize module stun
> May  6 22:53:38 Proxy01 /usr/local/sbin/opensips[11212]: ERROR:core:main:
> error while initializing modules
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list