Skipping a set of rules

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
noiptel
Posts: 68
Joined: Mon Feb 22, 2010 9:24 pm
Location: USA

Skipping a set of rules

Post by noiptel »

1. Brekeke Product Name and version:Advance Version

2. Java version:

3. OS type and the version:

4. UA (phone), gateway or other hardware/software involved:

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :

6. Your problem: I would like to be able to jump from, rule #30 to rule #40

for example:

Rule #30
Matching:
$request=^INVITE
$geturi(to)=sip:1234(.+)@(.+)

Deploy:
go to rule #40

Please confirm Deploy rule script.
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Do you want to execute only the rule #40 after rule #30?
Or do you want to execute rules #41 and #42 too?
noiptel
Posts: 68
Joined: Mon Feb 22, 2010 9:24 pm
Location: USA

Post by noiptel »

execute rule #40, #41, #42.......
ambrosio
Posts: 215
Joined: Thu Mar 27, 2008 12:20 pm

Post by ambrosio »

if you use a flag, you can make it.


[Rule #29]
------------------------------------
Matching:
$request = ^INVITE

Deploy:
&flag = false
------------------------------------


[Rule #30]
------------------------------------
Matching:
$request = ^INVITE
$geturi(to) = sip:1234(.+)@(.+)

Deploy:
&flag = true
------------------------------------


[Rule #31 - Rule #39]
------------------------------------
Matching:
&flag = false
:
------------------------------------


The rule 29 sets &flag=false and the rule 30 sets &flag=true.
Since rule 31,32..39 check the &flag=false, they will not be executed if the rule 30 has been executed.
Post Reply