Author |
Message |
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Sat Jan 09, 2010 3:19 am Post subject: Replace URI |
|
|
1. Brekeke Product Name and version: Brekeke PBX, Version 2.2.6.2
2. Java version: 1.5.0_14
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/networkpatterns.html : 9
6. Your problem: need to mask original URI before forwarding calls to another network. Already tried suggestions posted at this forum but no success. Any help deeply apreciated. |
|
Back to top |
|
voipwell.com Partner PBX
Joined: 20 Sep 2005 Posts: 528
Location: Tannersville, Pennsylvania
|
Posted: Sat Jan 09, 2010 4:42 pm Post subject: |
|
|
Hi!
Please give more specific detail of what you are trying to do and I'll do my best to help you out. Glad to see you are now on Windows. |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Sun Jan 10, 2010 4:52 am Post subject: |
|
|
We are sending DID calls forward and would like to mask origin using a domain like 'example.com' at the URI that arrives destination. |
|
Back to top |
|
voipwell.com Partner PBX
Joined: 20 Sep 2005 Posts: 528
Location: Tannersville, Pennsylvania
|
Posted: Tue Jan 12, 2010 1:13 am Post subject: |
|
|
Damatta,
you need to replace the deploy pattern "from" field for the route in the ARS.
For example:
"Damatta" <sip:1234567890@1.2.3.4>
It must be in this format and notice the space before the <sip:
The Damatta would show up as the caller id name, the 12344567890 would show up as the caller's number and if you wanted to spoof the ip address you put in 1.2.3.4 like above.
I assume you are forwarding the call using the PBX correct, not the sip server.
I hope this helps. |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Tue Jan 12, 2010 4:03 am Post subject: |
|
|
We want to 'spoof' just the origin IP address and keep the correct CLI. How can I achieve this? |
|
Back to top |
|
voipwell.com Partner PBX
Joined: 20 Sep 2005 Posts: 528
Location: Tannersville, Pennsylvania
|
Posted: Tue Jan 12, 2010 1:12 pm Post subject: |
|
|
Oh, OK.
Matching Patterns
sip:(.+)@
Deploy
"$1"<sip:$1@1.2.3.4>
Where 1.2.3.4 is the spoofed ip address. |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Tue Jan 12, 2010 1:31 pm Post subject: |
|
|
It did not work. Instead of appear origin's CLI it shows '$1' |
|
Back to top |
|
voipwell.com Partner PBX
Joined: 20 Sep 2005 Posts: 528
Location: Tannersville, Pennsylvania
|
Posted: Tue Jan 12, 2010 1:40 pm Post subject: |
|
|
Post what it looks like before you make the change. what does the original uri look like? It appears that there is no value in the sip:(.+). I posted the patterns above right out of a test ars i did for you. You must not be receiving the caller id.
Make sure you are putting sip:(.+)@ in the FROM matching pattern.
Also, maybe copying and pasting the string lost the space before the <. Make sure there is a space before the <. |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Tue Jan 12, 2010 1:58 pm Post subject: |
|
|
You are right, I forgot that info. Works perfectly now Many thanks. |
|
Back to top |
|
voipwell.com Partner PBX
Joined: 20 Sep 2005 Posts: 528
Location: Tannersville, Pennsylvania
|
Posted: Tue Jan 12, 2010 2:01 pm Post subject: |
|
|
Great. forgot what info. what was the problem? |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Tue Jan 12, 2010 2:12 pm Post subject: |
|
|
Forgot putting sip:(.+)@ in the FROM matching pattern. |
|
Back to top |
|
|