<div dir="ltr">Hi there,<br><br>I have been trying to execute one of the WeSIP examples this morning when I have been receiving an error message when I am trying to lanch OpenSIPS. The error message is the following:<br><br>
<div style="margin-left: 40px;">Oct 14 16:06:31 [20331] CRITICAL:core:yyerror: parse error in config file, line 195, column 19-20: syntax error<br>Oct 14 16:06:31 [20331] CRITICAL:core:yyerror: parse error in config file, line 195, column 19-20: <br>
Oct 14 16:06:31 [20331] ERROR:core:main: bad config file (2 errors)<br><br>This error refers to this line: <b>modparam("seas","listen_sockets","<a href="http://127.0.0.1:5080">127.0.0.1:5080</a>");<br>
<br></b></div>This is the first time I am using OpenSIPS, I am sorry not to be more concrete.<br><br>Thanks in advance,<br><div><br><br>I am using Ubuntu Intrepid 32 bits. <br><br>My opensips.cfg file is the following.<br>
<br>debug=3<br>log_stderror=no<br>log_facility=LOG_LOCAL0<br><br>fork=yes<br>children=4<br>port=5060<br><br>loadmodule "sl.so"<br>loadmodule "tm.so"<br>loadmodule "rr.so"<br>loadmodule "maxfwd.so"<br>
loadmodule "usrloc.so"<br>loadmodule "registrar.so"<br>loadmodule "textops.so"<br>loadmodule "mi_fifo.so"<br>loadmodule "uri_db.so"<br>loadmodule "uri.so"<br>loadmodule "xlog.so"<br>
loadmodule "acc.so"<br>loadmodule "seas.so"<br><br>modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")<br>modparam("rr", "enable_full_lr", 1)<br>modparam("rr", "append_fromtag", 0)<br>
modparam("registrar", "method_filtering", 1)<br><br>modparam("uri_db", "use_uri_table", 0)<br>modparam("uri_db", "db_url", "")<br>modparam("acc", "early_media", 1)<br>
modparam("acc", "report_ack", 1)<br>modparam("acc", "report_cancels", 1)<br>/* by default ww do not adjust the direct of the sequential requests.<br> if you enable this parameter, be sure the enable "append_fromtag"<br>
in "rr" module */<br>modparam("acc", "detect_direction", 0)<br>/* account triggers (flags) */<br>modparam("acc", "failed_transaction_flag", 3)<br>modparam("acc", "log_flag", 1)<br>
modparam("acc", "log_missed_flag", 2)<br>/* uncomment the following lines to enable DB accounting also */<br>modparam("acc", "db_flag", 1)<br>modparam("acc", "db_missed_flag", 2)<br>
<br><br>modparam("usrloc", "db_mode", 0)<br><b>modparam("seas","listen_sockets","<a href="http://127.0.0.1:5080">127.0.0.1:5080</a>");</b><br><br>route{<br> if(!as_relay_t("app_server_one")){<br>
t_reply("500","Application Server error");<br> }<br><br><br> if (!mf_process_maxfwd_header("10")) {<br> sl_send_reply("483","Too Many Hops");<br>
exit;<br> }<br><br> if (has_totag()) {<br> if (loose_route()) {<br> if (is_method("BYE")) {<br> setflag(1); # do accounting ...<br>
setflag(3); # ... even if the transaction fails<br> }<br> route(1);<br> } else {<br> if ( is_method("ACK") ) {<br>
if ( t_check_trans() ) {<br> # non loose-route, but stateful ACK; must be an ACK after a 487 or e.g. 404 from upstream server<br> t_relay();<br>
exit;<br> } else {<br> # ACK without matching transaction ... ignore and discard.\n");<br> exit;<br>
}<br> }<br> sl_send_reply("404","Not here");<br> }<br> exit;<br> }<br> # CANCEL processing<br>
if (is_method("CANCEL"))<br> {<br> if (t_check_trans())<br> t_relay();<br> exit;<br> }<br><br> t_check_trans();<br> # record routing<br>
if (!is_method("REGISTER|MESSAGE"))<br> record_route();<br><br> # account only INVITEs<br> if (is_method("INVITE")) {<br> setflag(1); # do accounting<br>
}<br> if (!uri==myself)<br> {<br> append_hf("P-hint: outbound\r\n");<br> route(1);<br> }<br><br> if (is_method("PUBLISH"))<br> {<br>
sl_send_reply("503", "Service Unavailable");<br> exit;<br> }<br> if (is_method("REGISTER"))<br> {<br> if (!save("location"))<br>
sl_reply_error();<br> exit;<br> }<br> if ($rU==NULL) {<br> # request with no Username in RURI<br> sl_send_reply("484","Address Incomplete");<br>
exit;<br> }<br> if (!lookup("location")) {<br> switch ($retcode) {<br> case -1:<br> case -3:<br> t_newtran();<br>
t_reply("404", "Not Found");<br> exit;<br> case -2:<br> sl_send_reply("405", "Method Not Allowed");<br>
exit;<br> }<br> }<br> # when routing via usrloc, log the missed calls also<br> setflag(2);<br> route(1);<br>}<br>route[1] {<br> # for INVITEs enable some additional helper routes<br>
if (is_method("INVITE")) {<br> t_on_branch("2");<br> t_on_reply("2");<br> t_on_failure("1");<br> }<br><br> if (!t_relay()) {<br>
sl_reply_error();<br> };<br> exit;<br>}<br><br><br><br><br><br><br><br><br><br><br><br><br clear="all"><br>-- <br>Personal webpage - www.jonbaraq.eu<br><br>Vocal de Redes y Linux de la Rama de Estudiantes del IEEE - UPM<br>
</div></div>