It appears as though you might have multiple syntax errors in the script -- such as not opening or not closing certain tags.

The best way to troubleshoot this (or at least the way I like best) is to go back to your last known good config and make the changes one at a time.

--fred

Wingsravi R <wingsravi777@gmail.com> wrote:

Dear Salman,

thank you for the reply.

i did change as you suggested and then ran the kamailio, but it agian logged  some errors:

$ sudo /etc/init.d/kamailio start
Not starting Kamailio: invalid configuration file!
-e
 0(5744) INFO: tls [tls_init.c:385]: init_tls_compression(): tls: init_tls: disabling compression...
 0(5744) : <core> [cfg.y:3570]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 815, column 1: syntax error
 0(5744) : <core> [cfg.y:3570]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 815, column 1: invalid  route  statement
 0(5744) : <core> [cfg.y:3567]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 817, column 1-5:
ERROR: bad config file (3 errors)

Regrards
Ravi


On Sat, Oct 19, 2013 at 1:03 PM, Salman Zafar <msalman212@gmail.com> wrote:
check these lines:

route[REQINIT] {
#!ifdef WITH_ANTIFLOOD

.....
.....
....
}
#!endif



it should be


#!endif
}



On Sat, Oct 19, 2013 at 12:11 PM, Wingsravi R <wingsravi777@gmail.com> wrote:
Dear kamailio'ns

I am running kamailio 4.0.3 on ubuntu 12.04 and installed kamailio from its repository. I had changed the default kamailio config file, and inserted xmpp and presence related script. But after all when i tried to start my kamailio server I am getting the following errors:

$ sudo /etc/init.d/kamailio start
Not starting Kamailio: invalid configuration file!
-e
 0(5502) INFO: tls [tls_init.c:385]: init_tls_compression(): tls: init_tls: disabling compression...
 0(5502) : <core> [cfg.y:3570]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 816, column 6: syntax error
 0(5502) : <core> [cfg.y:3570]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 816, column 6: missing '(' or ')' ?
 0(5502) : <core> [cfg.y:3570]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 816, column 6: bad command: missing ';'?
 0(5502) : <core> [cfg.y:3570]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 816, column 15: '('')' expected (function call)
 0(5502) : <core> [cfg.y:3570]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 816, column 15: bad command: missing ';'?
 0(5502) : <core> [cfg.y:3570]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 816, column 17: bad command
ERROR: bad config file (6 errors)

All of the above errors are pointing at route[Presence] block in the script.
What could be the reason for the errors and is there any fault in my config file (please find the attachment for the same).

Thanks in advance.

Regards.
Ravi


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




--
Regards

M. Salman Zafar
VoIP Professional


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users