Forums Read-only archive

Route all calls from an IP address to a different IP

3 posts · Brekeke SIP Server Forum

thompsonre Original post
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/ ... terns.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.
Andrey

Code:

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

[Deploy Patterns]
To = sip:%1@<destination's IP address>
thompsonre
Sweet!

Works perfectly. Thanks so much.