Forums Read-only archive

Restriction for one IP address (Solved)

6 posts · Brekeke SIP Server Forum

sadzas Original post
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!
james
Did you read the document?
There is the definition for "NOT" in the Matching Pattern.
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
like
Maching Patterns
$request=^INVITE
$addr=!200\.xx\.xx\.87
To=sip:(6.+)@

Deply Patterns
To=sip:%1@192.168.2.1
sadzas
Yes, that's correct...

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

thanks!
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