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