Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Skipping a set of rules
Author Message
noiptel
Brekeke Talented


Joined: 22 Feb 2010
Posts: 68
Location: USA

PostPosted: Fri Jan 06, 2012 4:50 pm    Post subject: Skipping a set of rules Reply with quote

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
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 289
Location: Japan

PostPosted: Fri Jan 06, 2012 6:37 pm    Post subject: Reply with quote

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
View user's profile
noiptel
Brekeke Talented


Joined: 22 Feb 2010
Posts: 68
Location: USA

PostPosted: Fri Jan 06, 2012 7:34 pm    Post subject: Reply with quote

execute rule #40, #41, #42.......
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Thu Jan 19, 2012 11:14 am    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1