URI Replacement

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
semensato
Posts: 46
Joined: Fri Dec 26, 2008 1:22 pm

URI Replacement

Post by semensato »

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
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

semensato
Posts: 46
Joined: Fri Dec 26, 2008 1:22 pm

Post by semensato »

There are only few examples there and it's not clear to me.
semensato
Posts: 46
Joined: Fri Dec 26, 2008 1:22 pm

Post by 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
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by 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
Posts: 46
Joined: Fri Dec 26, 2008 1:22 pm

Post by semensato »

It did not work...
taitan
Posts: 237
Joined: Sat Mar 15, 2008 10:39 pm

Post by taitan »

Try this.

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

<Deploy Patterns>
From = sip:%1@masked.com
$replaceuri.from = true
$continue = true
==========================
semensato
Posts: 46
Joined: Fri Dec 26, 2008 1:22 pm

Post by semensato »

No it dod not work... BTW, command line $replaceuri.from became red so I guess it was invalid to system.
taitan
Posts: 237
Joined: Sat Mar 15, 2008 10:39 pm

Post by 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
Posts: 46
Joined: Fri Dec 26, 2008 1:22 pm

Post by semensato »

Not at all...
taitan
Posts: 237
Joined: Sat Mar 15, 2008 10:39 pm

Post by taitan »

Are you using Brekeke PBX?
semensato
Posts: 46
Joined: Fri Dec 26, 2008 1:22 pm

Post by semensato »

Yes, I am afraid so.
taitan
Posts: 237
Joined: Sat Mar 15, 2008 10:39 pm

Post by 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.
Post Reply