[SR-Users] syntax error?

Skyler skchopperguy at gmail.com
Sun May 22 05:20:35 CEST 2011


Found it.will google more from now on. Sorry.

 

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: Skyler [mailto:skchopperguy at gmail.com] 
Sent: Saturday, May 21, 2011 7:40 PM
To: 'sr-users at lists.sip-router.org'
Subject: syntax error?

 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110521/5f1db346/attachment.htm>


More information about the sr-users mailing list