The errors were:

 

Not starting : invalid configuration file!

 

 0(4264) : <core> [cfg.y:3412]: parse error in config file //etc/kamailio/kamailio.cfg, line 453, column 50: unknown command, missing loadmodule?

 

 0(4264) : <core> [cfg.y:3412]: parse error in config file //etc/kamailio/kamailio.cfg, line 453, column 67: syntax error

 0(4264) : <core> [cfg.y:3412]: parse error in config file //etc/kamailio/kamailio.cfg, line 453, column 82: bad expression

 0(4264) : <core> [cfg.y:3412]: parse error in config file //etc/kamailio/kamailio.cfg, line 453, column 82: bad command

 0(4264) : <core> [cfg.y:3412]: parse error in config file //etc/kamailio/kamailio.cfg, line 454, column 2: bad command

 0(4264) : <core> [cfg.y:3412]: parse error in config file //etc/kamailio/kamailio.cfg, line 461, column 7: syntax error

 0(4264) : <core> [cfg.y:3412]: parse error in config file //etc/kamailio/kamailio.cfg, line 461, column 7: invalid  route  statement

 0(4264) : <core> [cfg.y:3409]: parse error in config file //etc/kamailio/kamailio.cfg, line 461, column 8-11:

ERROR: bad config file (8 errors)

 

After modifying as below, there were no errors and kamailio.log is now showing the xlog event. Checking now into pcap to 100% verify the 200, ok

 

if ( is_method("NOTIFY") && uri==myself

        && $hdr(Event) =~ "keep-alive" )

        {

                sl_send_reply("200", "OK - keepalive");

                xlog("L_INFO", "$hdr(Event) detected - ok sent\n");

                exit;

        }

 

 

From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov
Sent: Saturday, May 21, 2011 8:09 PM
To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -Users Mailing List
Subject: Re: [SR-Users] syntax error?

 

What is the exact syntax error you are being given?

--

Alex Balashov - Principal

Evariste Systems LLC

260 Peachtree Street NW

Suite 2200

Atlanta, GA 30303

Tel: +1-678-954-0670

Fax: +1-404-961-1892

Web: http://www.evaristesys.com/


On May 21, 2011, at 10:40 PM, "Skyler" <skchopperguy@gmail.com> wrote:

Hi all,

 

 I am attempting to handle NOTIFY within my script but there is a definite error in my syntax. I believe it has to do with $hdr(Event).

 

Anyone know how I should re-write this?

 

 

if (is_method("NOTIFY") && is_domain_local("$rd") && $hdr(Event) =~ "keep-alive" )

{

                                sl_send_reply("200", "OK - keep-alive");

                                exit;

                }

 

TIA

_______________________________________________
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


No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3652 - Release Date: 05/21/11