Forums Read-only archive

URI Replacement

13 posts · Brekeke SIP Server Forum

semensato Original post
1. Brekeke Product Name and version: Brekeke SIP Server 2.2.6.2

2. Java version: 1.6.0_12

3. OS type and the version: Windows 2003

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

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

6. Your problem: need to replace 'from-uri' value when forwarding a call to another destination in order to 'mask' origin of the call.
hope
semensato
There are only few examples there and it's not clear to me.
semensato
This is my Dial Plan:

<Matching Patterns>

^INVITE
$geturi(From)=@example.com
To=(.*)

<Deploy Patterns>

$target=beyond.net
To=sip:%1@beyond.net
From=@masked.com
$replaceuri=true
hope
try
<Matching Patterns>
$request=^INVITE
$geturi(From)=sip:(.+)@example.com
To=sip:(.*)@

<Deploy Patterns>
From=sip:%1@masked.com
To=sip:%2@beyond.net
$replaceuri=true
semensato
It did not work...
taitan
Try this.

==========================
<Matching Patterns>
$request = ^INVITE
From = sip:(.+)@

<Deploy Patterns>
From = sip:%1@masked.com
$replaceuri.from = true
$continue = true
==========================
semensato
No it dod not work... BTW, command line $replaceuri.from became red so I guess it was invalid to system.
taitan
In my environment, it works.

Try this.
==========================
<Matching Patterns>
$request = ^INVITE
From = sip:(.+)@

<Deploy Patterns>
From = "%1" <sip:%1@masked.com>
$replaceuri = true
$continue = true
==========================

And check the priority of this rule.
it should be the first rule in the rule list!
semensato
Not at all...
taitan
Are you using Brekeke PBX?
semensato
Yes, I am afraid so.
taitan
That's why the above DialPlan rules don't work!!

You need to add the following lines to "From PBX REG" and "From PBX" rules.

In Matching Patterns:
From = sip:(.+)@

In Deploy Patterns:
From = "%1" <sip:%1@masked.com>
$replaceuri = true

If you can not understand it, ask Brekeke's support team to provide hands-on support.