[OpenSIPS-Users] CRITICAL:core:yyerror: parse error in config file

M.Abdulaziz malduwais1 at ksu.edu.sa
Mon Nov 28 14:53:16 CET 2011


Hello Bodan,
 
 
I really appreciate your reply
 
here is my .cfg file could you plz help me in finding what is wrong?
 
Thanks in advance,

I notice a weired problem whenever I compile any .cfg file using

>opensips -c (cfg file)

I got the same error in the same line ?? very starnge behave
 
# ----------- global configuration parameters ------------------------
 
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes log_stderror=no # (cmd line: -E)
children=8
# Uncomment these lines to enter debugging mode
#fork=no
#log_stderror=yes
#
listen=udp:192.168.1.69:5061
auto_aliases=no log_name="opensips-1.5.1-log" log_facility=LOG_LOCAL0
 
# ------------------ module loading ---------------------------------- #
 
set module path mpath="/usr/local/lib64/opensips/modules/"
 
# Uncomment this if you want to use SQL database
 
loadmodule "db_mysql.so"
loadmodule "sl.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "tm.so"
 
# ----------------- setting module-specific parameters ---------------
 
# -- usrloc params --
 
modparam("usrloc", "db_url", "mysql://opensips:opensips@localhost/opensips")
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "hash_size", 12)
modparam("usrloc", "fetch_rows", 2500)
modparam("tm", "wt_timer", 2)
 
# ------------------------- request routing logic -------------------
 
# main routing logic //This is line number 54 that the error is referring to
 
route{
 
if(is_method("REGISTER")) {
 
set_time_stamp("before new ul save");
save("location");
diff_time_stamp(1,"after ul save");
exit;
 }
 
set_time_stamp("before new ul lookup");
 
if(lookup("location")) {
 
diff_time_stamp(1,"after ul lookup");
sl_send_reply("200", "ok");
 } else {
 diff_time_stamp(1,"after ul lookup");
 
sl_send_reply("404", "not found");
}
 
t_relay();
 
} 

--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CRITICAL-core-yyerror-parse-error-in-config-file-tp7037342p7038778.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list