Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Restriction for one IP address (Solved)
Author Message
sadzas
Brekeke Member


Joined: 04 Aug 2008
Posts: 18

PostPosted: Mon Jan 19, 2009 12:30 pm    Post subject: Restriction for one IP address (Solved) Reply with quote

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


Joined: 10 Dec 2007
Posts: 501

PostPosted: Mon Jan 19, 2009 12:54 pm    Post subject: Reply with quote

Did you read the document?
There is the definition for "NOT" in the Matching Pattern.
Back to top
View user's profile
sadzas
Brekeke Member


Joined: 04 Aug 2008
Posts: 18

PostPosted: Mon Jan 19, 2009 1:06 pm    Post subject: Reply with quote

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


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Jan 19, 2009 1:42 pm    Post subject: Reply with quote

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
View user's profile
sadzas
Brekeke Member


Joined: 04 Aug 2008
Posts: 18

PostPosted: Tue Jan 20, 2009 7:29 am    Post subject: Reply with quote

Yes, that's correct...

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

thanks!
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Tue Jan 20, 2009 11:10 am    Post subject: Reply with quote

there is a table about regular expressions used in dial plan
at http://www.brekeke-sip.com/download/bss/v2_1/sip_admin_en.pdf
page 36
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