Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Route all calls from an IP address to a different IP
Author Message
thompsonre
Brekeke Newbie


Joined: 07 Jan 2008
Posts: 2

PostPosted: Mon Oct 12, 2009 2:52 pm    Post subject: Route all calls from an IP address to a different IP Reply with quote

1. Brekeke Product Name and version: 2.3.8.2 Standard

2. Java version:

3. OS type and the version: Windows 2003

4. UA (phone), gateway or other hardware/software involved:

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :

6. Your problem:
I'm trying to set up a rule that will take all calls that come from a single IP address and automatically route them to a different specific IP address.
Back to top
View user's profile
Andrey
Brekeke Addict


Joined: 21 Apr 2008
Posts: 29

PostPosted: Mon Oct 12, 2009 3:23 pm    Post subject: Reply with quote

Code:
[Matching Patterns]
$request = ^INVITE
$addr = <Sender's IP address>
To = sip:(.+)@

[Deploy Patterns]
To = sip:%1@<destination's IP address>
Back to top
View user's profile
thompsonre
Brekeke Newbie


Joined: 07 Jan 2008
Posts: 2

PostPosted: Mon Oct 12, 2009 3:28 pm    Post subject: Reply with quote

Sweet!

Works perfectly. Thanks so much.
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