Restriction for one IP address (Solved)

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
sadzas
Posts: 18
Joined: Mon Aug 04, 2008 8:12 am

Restriction for one IP address (Solved)

Post by sadzas »

1. Brekeke Product Name and version: Version 2.2.6.2 Evaluation

3. OS type and the version: Ubuntu 8.04

6. Your problem: There is something like this?

If "this dial" isn't come from 200.xx.xx.87 then go there...

Maching Patterns
$request=^INVITE
$addr=200\.xx\.xx\.87
To=sip:(6.+)@

Deply Patterns
To=sip:%1@192.168.2.1

I wanna make exactly otherwise, I mean if the address IS NOT 200.xx.xx.87, then go to 192.168.2.1

Is this possible?

thanks!
Last edited by sadzas on Tue Jan 20, 2009 7:28 am, edited 1 time in total.
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

Did you read the document?
There is the definition for "NOT" in the Matching Pattern.
sadzas
Posts: 18
Joined: Mon Aug 04, 2008 8:12 am

Post by sadzas »

Sorry, but I didn't find it...

I found how denied authentication, etc, but there is no authentication here, and there is no denied either... I just wanna ask for the inbound traffic, if this traffic doesn't come from that IP, so it must to go for there...
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

like
Maching Patterns
$request=^INVITE
$addr=!200\.xx\.xx\.87
To=sip:(6.+)@

Deply Patterns
To=sip:%1@192.168.2.1
sadzas
Posts: 18
Joined: Mon Aug 04, 2008 8:12 am

Post by sadzas »

Yes, that's correct...

I didn't find it in the documents...

thanks!
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

there is a table about regular expressions used in dial plan
at http://www.brekeke-sip.com/download/bss ... min_en.pdf
page 36
Post Reply