Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
URI Replacement
Author Message
semensato
Brekeke Addict


Joined: 26 Dec 2008
Posts: 46

PostPosted: Tue Mar 31, 2009 3:29 pm    Post subject: URI Replacement Reply with quote

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/networkpatterns.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.
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Wed Apr 01, 2009 10:15 am    Post subject: Reply with quote

editing SIP header section at
http://www.brekeke-sip.com/download/bss/bss_tutorial_dialplan_en.pdf
Back to top
View user's profile
semensato
Brekeke Addict


Joined: 26 Dec 2008
Posts: 46

PostPosted: Wed Apr 01, 2009 1:42 pm    Post subject: Reply with quote

There are only few examples there and it's not clear to me.
Back to top
View user's profile
semensato
Brekeke Addict


Joined: 26 Dec 2008
Posts: 46

PostPosted: Wed Apr 01, 2009 2:25 pm    Post subject: Reply with quote

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
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Wed Apr 01, 2009 5:59 pm    Post subject: Reply with quote

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
Back to top
View user's profile
semensato
Brekeke Addict


Joined: 26 Dec 2008
Posts: 46

PostPosted: Thu Apr 02, 2009 5:40 pm    Post subject: Reply with quote

It did not work...
Back to top
View user's profile
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Mon Apr 06, 2009 10:12 am    Post subject: Reply with quote

Try this.

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

<Deploy Patterns>
From = sip:%1@masked.com
$replaceuri.from = true
$continue = true
==========================
Back to top
View user's profile
semensato
Brekeke Addict


Joined: 26 Dec 2008
Posts: 46

PostPosted: Wed Apr 08, 2009 2:52 am    Post subject: Reply with quote

No it dod not work... BTW, command line $replaceuri.from became red so I guess it was invalid to system.
Back to top
View user's profile
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Wed Apr 08, 2009 10:06 am    Post subject: Reply with quote

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!
Back to top
View user's profile
semensato
Brekeke Addict


Joined: 26 Dec 2008
Posts: 46

PostPosted: Wed Apr 08, 2009 12:06 pm    Post subject: Reply with quote

Not at all...
Back to top
View user's profile
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Wed Apr 08, 2009 12:28 pm    Post subject: Reply with quote

Are you using Brekeke PBX?
Back to top
View user's profile
semensato
Brekeke Addict


Joined: 26 Dec 2008
Posts: 46

PostPosted: Thu Apr 09, 2009 3:08 am    Post subject: Reply with quote

Yes, I am afraid so.
Back to top
View user's profile
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Thu Apr 09, 2009 10:53 am    Post subject: Reply with quote

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.

Matching Patterns
From = sip:(.+)@
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.
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