On 06/21/06 13:14, Shenen Shenen wrote:
I've removed the listen parameters....fork was alway set like fork=yes....with openser command I've this; [root@asterisk12 ~]# openser 0(3357) WARNING: fix_socket_list: could not rev. resolve 192.168.251.12 http://192.168.251.12 0(3357) WARNING: fix_socket_list: could not rev. resolve 192.168.251.200 http://192.168.251.200 0(3357) WARNING: fix_socket_list: could not rev. resolve 192.168.251.12 http://192.168.251.12 0(3357) WARNING: fix_socket_list: could not rev. resolve 192.168.251.200 http://192.168.251.200 Listening on udp: 127.0.0.1 http://127.0.0.1 [127.0.0.1 http://127.0.0.1]:5070 udp: 192.168.251.12 http://192.168.251.12 [ 192.168.251.12 http://192.168.251.12]:5070 udp: 192.168.251.200 http://192.168.251.200 [192.168.251.200 http://192.168.251.200]:5070 tcp: 127.0.0.1 http://127.0.0.1 [ 127.0.0.1 http://127.0.0.1]:5070 tcp: 192.168.251.12 http://192.168.251.12 [192.168.251.12 http://192.168.251.12]:5070 tcp: 192.168.251.200 http://192.168.251.200 [192.168.251.200 http://192.168.251.200]:5070 Aliases: tcp: localhost:5070 udp: localhost:5070
stateless - initializing 0(0) Maxfwd module- initializing 0(0) AUTH module - initializing 0(0) AUTH_DB module - initializing [root@asterisk12 ~]# 0(0) INFO: udp_init: SO_RCVBUF is initially 110592 0(0) INFO: udp_init: SO_RCVBUF is finally 221184 0(0) INFO: udp_init: SO_RCVBUF is initially 110592 0(0) INFO: udp_init: SO_RCVBUF is finally 221184 0(0) INFO: udp_init: SO_RCVBUF is initially 110592 0(0) INFO: udp_init: SO_RCVBUF is finally 221184 0(0) ERROR: tcp_init: bind(7, 0x811b12c, 16) on 127.0.0.1:5070 http://127.0.0.1:5070 : Address already in use
........so, where could be the problem now?
as you can see from the list of ip addresses found by openser, you have no network interface configured with 192.168.251.11. It is why you got errors highlighted in the previous messages. Now, it seems that there is another process using port 5070. Check if it is openser already running.
Do "netstat -alut" and see if some application is running on port 5070.
Cheers, Daniel
On 6/21/06, *Daniel-Constantin Mierla* <daniel@voice-system.ro mailto:daniel@voice-system.ro> wrote:
On 06/21/06 12:44, Shenen Shenen wrote: > No,this isn't the problem;I've changed the port on my openser like > 5070, and asterisk is set like 5060 in sip.conf, but I've always the > same error; > > Jun 21 03:33:43 asterisk12 openser[19037]: ERROR: udp_init: bind(6, > > 0x8119a1c, 16) on 192.168.251.11 <http://192.168.251.11> <http://192.168.251.11/> < > http://192.168.251.11/>: Cannot assign > requested address > > .....what could be? > do you have a network interface configured with the IP 192.168.251.11 <http://192.168.251.11>? Do 'ifconfig' to check it out. You can remove the 'listen' parameters from your config file and openser will bind to available interfaces -- do not forget to set fork=yes, otherwise openser will listen to the first interface it founds, and that is usually 127.0.0.1 <http://127.0.0.1>. Daniel > > > > > On 6/21/06, *Daniel-Constantin Mierla* <daniel@voice-system.ro <mailto:daniel@voice-system.ro> > <mailto:daniel@voice-system.ro <mailto:daniel@voice-system.ro>>> wrote: > > You can safely ignore reverse resolve DNS messages, they are warnings > meaning no hostname was found set for those IP addresses - openser > tries > to get them in the aliases list. The problem comes from line: > > Jun 21 03:33:43 asterisk12 openser[19037]: ERROR: udp_init: bind(6, > 0x8119a1c, 16) on 192.168.251.11 <http://192.168.251.11> <http://192.168.251.11 <http://192.168.251.11>> < > http://192.168.251.11/>: Cannot assign > requested address > > This means that you do not have the IP 192.168.251.11 <http://192.168.251.11> > <http://192.168.251.11> configured on the > system. Do you have asterisk and openser listening on the same port > (5060)? You must use different ports. > > Cheers, > Daniel > > > On 06/21/06 10:55, Shenen Shenen wrote: > > Hi!This my openser.cfg;I've 2 asteriskathome with openser > installed;I > > want to copy the authentificated sip registration from one box to > > another and have always the same Sip registered in all 2 box, so if > > one box falls down the other can run without reinitialized all the > > sips (like Phoner..cubix...and also IP phones...)....I'm using > > vrrpd...12 is the master, 11 is the slave, 200 is the virtual > IP(this > > point to the master in the first case..and all Sip proxies like the > > phoner or cubix points to the master..(I can set only 1 proxy.. > > 192.168.251.200 <http://192.168.251.200> <http://192.168.251.200> > <http://192.168.251.200/> ..in x-lite I can set more > > proxies and I'vent problems..)(for this I must use openser..) > > > > > > This is the openser on the "slave" 192.168.251.11 <http://192.168.251.11> > <http://192.168.251.11> <http://192.168.251.11/> > > > > > > # SCRIPT PER COPIARE LO STATO DELLE REGISTRAZIONI DEI SIP DAL > .11 al .12 > > > > # ----------- global configuration parameters > ------------------------ > > > > debug=3 # debug level (cmd line: -dddddddddd) > > fork=no > > log_stderror=no # (cmd line: -E) > > listen= 192.168.251.12 <http://192.168.251.12> <http://192.168.251.12> > <http://192.168.251.12/> > > listen=192.168.251.11 <http://192.168.251.11> <http://192.168.251.11> < > http://192.168.251.11/> > > listen=192.1668.251.200 > > port=5060 > > children=5 > > dns=no > > rev_dns=no > > # ------------------ module loading > ---------------------------------- > > > > loadmodule "modules/mysql/mysql.so" > > loadmodule "modules/sl/sl.so" > > loadmodule "modules/tm/tm.so" > > loadmodule "modules/maxfwd/maxfwd.so" > > loadmodule "modules/usrloc/usrloc.so" > > loadmodule "modules/registrar/registrar.so" > > loadmodule "modules/auth/auth.so" > > loadmodule "modules/auth_db/auth_db.so" > > > > # ----------------- setting module-specific parameters > --------------- > > > > # digest generation secret; use the same in backup server; > > # also, make sure that the backup server has sync'ed time > > modparam("auth", "secret", "alsdkhglaksdhfkloiwr") > > > > # ------------------------- request routing logic > ------------------- > > > > # main routing logic > > > > route{ > > > > # initial sanity checks -- messages with > > # max_forwars==0, or excessively long requests > > if (!mf_process_maxfwd_header("10")) { > > sl_send_reply("483","Too Many Hops"); > > return; > > }; > > if (len_gt( max_len )) { > > sl_send_reply("513", "Message too big"); > > return; > > }; > > > > # if the request is for other domain use UsrLoc > > # (in case, it does not work, use the following command > > # with proper names and addresses in it) > > if (uri==myself) { > > > > if (method=="REGISTER") { > > > > # verify credentials > > if (!www_authorize("", "subscriber")) { > > www_challenge("", "0"); > > return; > > }; > > > > # if ok, update contacts and ... > > save("location"); > > # ... if this REGISTER is not a replica from our > > # peer server, replicate to the peer server > > if (!src_ip== 192.168.251.12 <http://192.168.251.12> <http://192.168.251.12> > < http://192.168.251.12/>) { > > t_replicate("192.168.251.12 <http://192.168.251.12> <http://192.168.251.12> > <http://192.168.251.12/>", "5060"); > > }; > > return; > > }; > > # do whatever else appropriate for your domain > > log("non-REGISTER\n"); > > }; > > } > > > > > > > > This is the openser on the "master" 192.168.251.12 <http://192.168.251.12> > <http://192.168.251.12> > > <http://192.168.251.12/ > > > > > > > > > > > > > # SCRIPT PER COPIARE LO STATO DELLE REGISTRAZIONI DEI SIP DAL > .12 al .11 > > > > # ----------- global configuration parameters > ------------------------ > > > > debug=3 # debug level (cmd line: -dddddddddd) > > fork=no > > log_stderror=yes # (cmd line: -E) > > listen= 192.168.251.12 <http://192.168.251.12> <http://192.168.251.12> < > http://192.168.251.12/> > > listen= 192.168.251.11 <http://192.168.251.11> <http://192.168.251.11> > <http://192.168.251.11/> > > listen=192.1668.251.200 > > port=5060 > > children=5 > > dns=no > > rev_dns=no > > > > # ------------------ module loading > ---------------------------------- > > > > loadmodule "modules/mysql/mysql.so" > > loadmodule "modules/sl/sl.so" > > loadmodule "modules/tm/tm.so" > > loadmodule "modules/maxfwd/maxfwd.so" > > loadmodule "modules/usrloc/usrloc.so" > > loadmodule "modules/registrar/registrar.so" > > loadmodule "modules/auth/auth.so" > > loadmodule "modules/auth_db/auth_db.so" > > > > # ----------------- setting module-specific parameters > --------------- > > > > # digest generation secret; use the same in backup server; > > # also, make sure that the backup server has sync'ed time > > modparam("auth", "secret", "alsdkhglaksdhfkloiwr") > > > > # ------------------------- request routing logic > ------------------- > > > > # main routing logic > > > > route{ > > > > # initial sanity checks -- messages with > > # max_forwars==0, or excessively long requests > > if (!mf_process_maxfwd_header("10")) { > > sl_send_reply("483","Too Many Hops"); > > return; > > }; > > if (len_gt( max_len )) { > > sl_send_reply("513", "Message too big"); > > return; > > }; > > > > # if the request is for other domain use UsrLoc > > # (in case, it does not work, use the following command > > # with proper names and addresses in it) > > if (uri==myself) { > > > > if (method=="REGISTER") { > > > > # verify credentials > > if (!www_authorize("", "subscriber")) { > > www_challenge("", "0"); > > return; > > }; > > > > # if ok, update contacts and ... > > save("location"); > > # ... if this REGISTER is not a replica from our > > # peer server, replicate to the peer server > > if (!src_ip== 192.168.251.11 <http://192.168.251.11> <http://192.168.251.11> > < http://192.168.251.11/>) { > > t_replicate("192.168.251.11 <http://192.168.251.11> <http://192.168.251.11> > <http://192.168.251.11/>", "5060"); > > }; > > return; > > }; > > # do whatever else appropriate for your domain > > log("non-REGISTER\n"); > > }; > > } > > > > If I run the following command... I've problems with resolution > of IP > > addresses... how can I resolve this problem?????????? > > > > 100000000000000000000000000000000000000000000000000000 > > thanks.....................help me please!!!!!I'm becoming crazy... > > > > > > [ root@asterisk12 ~]# tail -f /var/log/messages > > Jun 21 03:33:43 asterisk12 openser: WARNING: fix_socket_list: could > > not rev. resolve 192.168.251.11 <http://192.168.251.11> < http://192.168.251.11> > <http://192.168.251.11/> > > Jun 21 03:33:43 asterisk12 openser: WARNING: fix_socket_list: could > > not rev. resolve 192.168.251.200 <http://192.168.251.200> <http://192.168.251.200> > <http://192.168.251.200/> > > Jun 21 03:33:43 asterisk12 openser[19037]: Maxfwd module- > initializing > > Jun 21 03:33:43 asterisk12 openser[19037]: AUTH module - > initializing > > Jun 21 03:33:43 asterisk12 openser[19037]: AUTH_DB module - > initializing > > Jun 21 03:33:43 asterisk12 openser[19037]: INFO: udp_init: > SO_RCVBUF > > is initially 110592 > > Jun 21 03:33:43 asterisk12 openser[19037]: INFO: udp_init: SO_RCVBUF > > is finally 221184 > > Jun 21 03:33:43 asterisk12 openser[19037]: INFO: udp_init: SO_RCVBUF > > is initially 110592 > > Jun 21 03:33:43 asterisk12 openser[19037]: INFO: udp_init: SO_RCVBUF > > is finally 221184 > > Jun 21 03:33:43 asterisk12 openser[19037]: ERROR: udp_init: bind(6, > > 0x8119a1c, 16) on 192.168.251.11 <http://192.168.251.11> < http://192.168.251.11> > <http://192.168.251.11/>: Cannot > > assign requested address > > Jun 21 03:34:01 asterisk12 crond(pam_unix)[19040]: session > opened for > > user root by (uid=0) > > Jun 21 03:34:01 asterisk12 crond(pam_unix)[19040]: session > closed for > > user root > > > >