You've got another process bind to the local address. To find out which one, use lsof or netstat together with grep in order to find out which process is using the port 5060. Depending on the services file, instead of 5060 you may see sip instead of the numeric value.
#netstat -a | grep localhost
or
#netstat -a | grep 127.0.0.1
or
#lsof | grep localhost
or
#lsof # grep 127.0.0.1
After that, stop the process and restart SER.
Hope it helps,
Samuel.
I've this error with openser;[root@asterisk11 ~]# openser
0(3176) WARNING: fix_socket_list: could not rev. resolve 192.168.251.11
0(3176) WARNING: fix_socket_list: could not rev. resolve 192.168.251.11
Listening on
udp: 127.0.0.1 [ 127.0.0.1]:5060
udp: 192.168.251.11 [ 192.168.251.11]:5060
tcp: 127.0.0.1 [ 127.0.0.1]:5060
tcp: 192.168.251.11 [ 192.168.251.11]:5060
Aliases:
tcp: asterisk11.local:5060
udp: asterisk11.local:5060stateless - initializing
[root@asterisk11 ~]# 0(0) Maxfwd module- initializing
0(0) AUTH module - initializing
0(0) AUTH_DB module - initializing
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(6, 0x811b0a4, 16) on 127.0.0.1:5060 : Address already in useand this is my openser.cfg;# 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
listen= 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) {
t_replicate(" 192.168.251.12", "5060");
};
return;
};
# do whatever else appropriate for your domain
log("non-REGISTER\n");
};
}I'm using openser on asteriskAtHome, I've changed the port on asterisk like 5065...but I've this problems....I've also make this:
export SIP_DOMAIN="192.168.251.12" and the others...with and without the " "
I've warmings and 1 error....the IP are all up and works...so what could be?
0(0) ERROR: tcp_init: bind(6, 0x811b0a4, 16) on 127.0.0.1:5060 : Address already in use
100000000000000000000000000000000000000000000000000000000000 thanks
_______________________________________________
Serusers mailing list
Serusers@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers