"You need to look into the script that causes the error".. could you pls explain elobarately what you meant.. i use openser server and i get this error. iam pasting the confgiguration file . this file is being read and the errors must be coming from this .The command i use is "kamailio start" in linux.
Thanks in advance.
mpath="/usr/local//lib/kamailio/modules/"
loadmodule "db_mysql.so"
loadmodule "textops.so"
loadmodule "sl.so"
loadmodule "maxfwd.so"
loadmodule "imc.so"
loadmodule "tm.so"
loadmodule "xlog.so"
loadmodule "registrar.so"
loadmodule "usrloc.so"
loadmodule "mi_fifo.so"
# ----------------- setting module-specific parameters ---------------
# -- mi_fifo params --
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
# -- usrloc params --
modparam("usrloc", "db_mode", 2)
# -- registrar params --
modparam("registrar", "default_expires", 120)
# -- registrar params --
modparam("usrloc", "db_mode", 0)
# -- imc params --
modparam("imc", "imc_cmd_start_char", "#")
modparam("imc|usrloc", "db_url", "mysql://openser
penserrw@192.168.64.75/openser")
# -- tm params --
modparam("tm", "fr_timer", 10 )
modparam("tm", "fr_inv_timer", 15 )
modparam("tm", "wt_timer", 10 )
route{
if ( !mf_process_maxfwd_header("10") )
{
sl_send_reply("483","To Many Hops");
drop();
};
# registrations -
if(is_method("REGISTER")) {
save("location");
exit;
}
#imc##if(uri=~"sip:q.*@")
if(uri=~"sip:chatroom000@192.168.64.75")
{
# IMC - message
##imc## xdbg("script: message from [$fu] r-uri [$ru] msg [$rb]\n");
xdbg("script: message from [$fu] chatroom000 [$ru] msg [$rb]\n");
if(is_method("MESSAGE"))
{
log("MESSAGE received -> processing with imc\n");
sl_send_reply("200", "ok");
imc_manager();
exit;
} else {
sl_send_reply("404", "not found");
exit;
};
} else {
##edited as below for imc xdbg("script: message not for room, from [$fu] r-uri [$ru] msg [$rb]\n");
xdbg("script: message not for room, from [$fu] chatroom000 [$ru] msg [$rb]\n");
if(!lookup("location"))
{
sl_send_reply("404", "not found");
exit;
}
t_relay();
#sl_send_reply("200", "ok");
exit();
};
}