Hi,<br><br>I'm getting and error when I configure STUN in OpenSIPs. As following documentation of OpenSIPs, I enabled stun as listed below;<br><br>listen=udp:<a href="http://198.65.166.165:5060">198.65.166.165:5060</a><br>
listen=udp:<a href="http://75.101.138.128:5060">75.101.138.128:5060</a><br>loadmodule "stun.so"<br><br># ---- Stun ----<br>modparam("stun","primary_ip","198.65.166.165")<br>modparam("stun","primary_port","5060")<br>
modparam("stun","alternate_ip","75.101.138.128")<br>modparam("stun","alternate_port","5060")<br><br><br>Where the IP of OpenSIPs which is hosted on public IP i.e. 11.22.33.44. And the error I'm getting after restarting the OpenSIPs is listed below;<br>
<br>May 17 05:37:13 newtest /usr/local/sbin/opensips[31199]: ERROR:core:udp_init: bind(5, 0x81b7374, 16) on <a href="http://77.66.16.35">77.66.16.35</a>: Cannot assign requested address<br><br>When I commented out the listen=udp:IP:5060 the error I'm getting is;<br>
<br>May 17 05:59:48 newtest /usr/local/sbin/opensips[31303]: DBG:core:grep_sock_info: checking if host==us: 11==9 && [77.66.16.35] == [127.0.0.1]<br>May 17 05:59:48 newtest /usr/local/sbin/opensips[31303]: DBG:core:grep_sock_info: checking if port 5060 matches port 5060<br>
May 17 05:59:48 newtest /usr/local/sbin/opensips[31303]: DBG:core:grep_sock_info: checking if host==us: 11==11 && [77.66.16.35] == [77.66.2.137]<br>May 17 05:59:48 newtest /usr/local/sbin/opensips[31303]: DBG:core:grep_sock_info: checking if port 5060 matches port 5060<br>
May 17 05:59:48 newtest /usr/local/sbin/opensips[31303]: DBG:stun:stun_mod_init: grep_sock_in()1 failed<br>May 17 05:59:48 newtest /usr/local/sbin/opensips[31303]: ERROR:core:init_mod: failed to initialize module stun<br>
May 17 05:59:48 newtest /usr/local/sbin/opensips[31303]: ERROR:core:main: error while initializing modules<br><br><br>Kindly assist me how can I resolve this problem.<br clear="all"><br>-- <br>Regards,<br><br>Ahmed Munir<br>
<br><br>