Hi All,
I'm still not getting anywhere with this. SER
and Asterisk on the same box listening on 5060/5065 respectively. Invites for
pbx.nexusmgmt.com go to the asterisk and call is connected. The ser registered
phone can hang up but the asterisk registered phone can't.
I have reduced my ser.cfg to the simplest
form. Could somebody please tell me what I'm missing?
Thanks,
Bart...
fork=yes
log_stderror=no
mhomed=1
listen=65.126.236.148
listen=192.168.163.120
listen=127.0.0.1
children=4
fifo="/tmp/ser_fifo"
fifo_db_url="mysql://ser:heslo@localhost/ser"
loadmodule
"/usr/lib/ser/modules/mysql.so"
loadmodule
"/usr/lib/ser/modules/sl.so"
loadmodule
"/usr/lib/ser/modules/tm.so"
loadmodule
"/usr/lib/ser/modules/rr.so"
loadmodule
"/usr/lib/ser/modules/maxfwd.so"
loadmodule
"/usr/lib/ser/modules/usrloc.so"
loadmodule
"/usr/lib/ser/modules/registrar.so"
loadmodule
"/usr/lib/ser/modules/auth.so"
loadmodule
"/usr/lib/ser/modules/auth_db.so"
loadmodule
"/usr/lib/ser/modules/uri.so"
loadmodule
"/usr/lib/ser/modules/uri_db.so"
loadmodule
"/usr/lib/ser/modules/textops.so"
modparam("auth_db|uri_db|usrloc",
"db_url", "mysql://ser:heslo@localhost/ser")
modparam("auth_db",
"calculate_ha1", 1)
modparam("auth_db",
"password_column", "password")
modparam("usrloc",
"db_mode", 2)
modparam("rr",
"enable_full_lr", 1)
alias="65.126.236.148"
alias="192.168.163.120"
alias="nexphone"
alias="nexphone.nexusmgmt.com"
route {
if
(!mf_process_maxfwd_header("10")) {sl_send_reply("483",
"Too Many Hops"); break; };
if (msg:len
> max_len) {sl_send_reply("513", "Message Overflow");
break; };
if
(method!="REGISTER") { record_route(); };
if
(loose_route()) { route(1); break; };
if
(method=="INVITE") {
if (uri=~"^sip:*@pbx\.nexusmgmt\.com$") {
forward(localhost,5065);
break;
};
};
if
(uri!=myself) { route(1); break; };
if
(method=="REGISTER") { route(2); break; };
lookup("aliases");
if
(uri!=myself) { route(1); break; };
if
(!lookup("location")) {
sl_send_reply("404",
"User Not Found");
break;
};
route(1);
}
route[1] {
if
(!t_relay()) { sl_reply_error(); };
}
route[2] {
sl_send_reply("100",
"Trying");
if
(!www_authorize("","subscriber")) {
www_challenge("","0");
break;
};
if
(!check_to()) {
sl_send_reply("401",
"Unauthorized");
break;
};
if
(!save("location")) { sl_reply_error(); };
}