Author |
Message |
sadzas Brekeke Member
Joined: 04 Aug 2008 Posts: 18
|
Posted: Mon Jan 19, 2009 12:30 pm Post subject: Restriction for one IP address (Solved) |
|
|
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 |
|
Back to top |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 501
|
Posted: Mon Jan 19, 2009 12:54 pm Post subject: |
|
|
Did you read the document?
There is the definition for "NOT" in the Matching Pattern. |
|
Back to top |
|
sadzas Brekeke Member
Joined: 04 Aug 2008 Posts: 18
|
Posted: Mon Jan 19, 2009 1:06 pm Post subject: |
|
|
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... |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Mon Jan 19, 2009 1:42 pm Post subject: |
|
|
like
Maching Patterns
$request=^INVITE
$addr=!200\.xx\.xx\.87
To=sip:(6.+)@
Deply Patterns
To=sip:%1@192.168.2.1 |
|
Back to top |
|
sadzas Brekeke Member
Joined: 04 Aug 2008 Posts: 18
|
Posted: Tue Jan 20, 2009 7:29 am Post subject: |
|
|
Yes, that's correct...
I didn't find it in the documents...
thanks! |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
|
Back to top |
|
|