Author |
Message |
semensato Brekeke Addict
Joined: 26 Dec 2008 Posts: 46
|
Posted: Tue Mar 31, 2009 3:29 pm Post subject: URI Replacement |
|
|
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 |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
|
Back to top |
|
semensato Brekeke Addict
Joined: 26 Dec 2008 Posts: 46
|
Posted: Wed Apr 01, 2009 1:42 pm Post subject: |
|
|
There are only few examples there and it's not clear to me. |
|
Back to top |
|
semensato Brekeke Addict
Joined: 26 Dec 2008 Posts: 46
|
Posted: Wed Apr 01, 2009 2:25 pm Post subject: |
|
|
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 |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Wed Apr 01, 2009 5:59 pm Post subject: |
|
|
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 |
|
semensato Brekeke Addict
Joined: 26 Dec 2008 Posts: 46
|
Posted: Thu Apr 02, 2009 5:40 pm Post subject: |
|
|
It did not work... |
|
Back to top |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Mon Apr 06, 2009 10:12 am Post subject: |
|
|
Try this.
==========================
<Matching Patterns>
$request = ^INVITE
From = sip:(.+)@
<Deploy Patterns>
From = sip:%1@masked.com
$replaceuri.from = true
$continue = true
========================== |
|
Back to top |
|
semensato Brekeke Addict
Joined: 26 Dec 2008 Posts: 46
|
Posted: Wed Apr 08, 2009 2:52 am Post subject: |
|
|
No it dod not work... BTW, command line $replaceuri.from became red so I guess it was invalid to system. |
|
Back to top |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Wed Apr 08, 2009 10:06 am Post subject: |
|
|
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 |
|
semensato Brekeke Addict
Joined: 26 Dec 2008 Posts: 46
|
Posted: Wed Apr 08, 2009 12:06 pm Post subject: |
|
|
Not at all... |
|
Back to top |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Wed Apr 08, 2009 12:28 pm Post subject: |
|
|
Are you using Brekeke PBX? |
|
Back to top |
|
semensato Brekeke Addict
Joined: 26 Dec 2008 Posts: 46
|
Posted: Thu Apr 09, 2009 3:08 am Post subject: |
|
|
Yes, I am afraid so. |
|
Back to top |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Thu Apr 09, 2009 10:53 am Post subject: |
|
|
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 |
|
|