Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Maching IP addres instead DID - SOLVED
Author Message
sadzas
Brekeke Member


Joined: 04 Aug 2008
Posts: 18

PostPosted: Wed Jan 07, 2009 7:36 am    Post subject: Maching IP addres instead DID - SOLVED Reply with quote

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


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Wed Jan 07, 2009 12:31 pm    Post subject: Reply with quote

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


Joined: 04 Aug 2008
Posts: 18

PostPosted: Wed Jan 07, 2009 12:50 pm    Post subject: Reply with quote

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


Joined: 20 Jul 2005
Posts: 110

PostPosted: Fri Jan 09, 2009 11:48 am    Post subject: Reply with quote

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