Author |
Message |
sadzas Brekeke Member
Joined: 04 Aug 2008 Posts: 18
|
Posted: Wed Jan 07, 2009 7:36 am Post subject: Maching IP addres instead DID - SOLVED |
|
|
1. Brekeke Product Name and version: 2.2.6.2 Academic
2. Java version: java version "1.6.0_07"
3. OS type and the version: Ubuntu 8.04
6. Your problem:
It is possible to define an IP address in Maching patterns? and forward everything to another IP address?
I mean,
THIS -->
MACHING PATTERNS
$request=^INVITE
To=sip:(0115353044.+)@190\.xxx\.xxx\.162$
Deploy Patterns | To = sip:%1@192.168.2.1
|
instead this-->
$request=^INVITE
To=sip:(0115254.+)@
To=sip:%1@192.168.2.1
Thanks in advance!
Last edited by sadzas on Thu Jan 08, 2009 8:36 am; edited 1 time in total |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Wed Jan 07, 2009 12:31 pm Post subject: |
|
|
Which IP address are you talking about?
Is it sender's IP address?
If you mean the sender's IP address, you can use $addr variable. |
|
Back to top |
|
sadzas Brekeke Member
Joined: 04 Aug 2008 Posts: 18
|
Posted: Wed Jan 07, 2009 12:50 pm Post subject: |
|
|
VoIP provider ------ Brekeke -------- PBX
190.x.x.162 200.x.x.162 192.168.2.1
All traffic from 190.x.x.162 must go to 192.168.2.1
All traffic from 192.168.2.1 must go to 190.x.x.162
That is what I want.
I already try it with $addr, but without results....
How can I define that?
thanks! |
|
Back to top |
|
peng Brekeke Guru
Joined: 20 Jul 2005 Posts: 110
|
Posted: Fri Jan 09, 2009 11:48 am Post subject: |
|
|
>All traffic from 190.x.x.162 must go to 192.168.2.1
You may want to configure like this.
[Maching patterns]
$addr=^190\..{1,3}\..{1,3}\.162
Deploy Patterns | $target = 192.168.2.1
|
|
|
Back to top |
|
|