Author |
Message |
noiptel Brekeke Talented
Joined: 22 Feb 2010 Posts: 68
Location: USA
|
Posted: Fri Jan 06, 2012 4:50 pm Post subject: Skipping a set of rules |
|
|
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/networkpatterns.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. |
|
Back to top |
|
Harold Brekeke Master Guru
Joined: 21 Sep 2008 Posts: 289
Location: Japan
|
Posted: Fri Jan 06, 2012 6:37 pm Post subject: |
|
|
Do you want to execute only the rule #40 after rule #30?
Or do you want to execute rules #41 and #42 too? |
|
Back to top |
|
noiptel Brekeke Talented
Joined: 22 Feb 2010 Posts: 68
Location: USA
|
Posted: Fri Jan 06, 2012 7:34 pm Post subject: |
|
|
execute rule #40, #41, #42....... |
|
Back to top |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Thu Jan 19, 2012 11:14 am Post subject: |
|
|
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. |
|
Back to top |
|
|