Author |
Message |
caronte506 Brekeke Junior Member
Joined: 03 Jan 2012 Posts: 5
|
Posted: Mon Jan 23, 2012 9:10 am Post subject: Getting registered client's IP |
|
|
1. Brekeke Product Name and version: Brekeke SIP Server , Version 2.4.8.6 Standard
2. Java version: 1.6.0_01
3. OS type and the version: Linux 2.6.18-4-686
4. UA (phone), gateway or other hardware/software involved:
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :
6. Your problem:
I want to route a block of numbers to a registered client, keeping the dialed numbers. I just need the client's IP in order to do something like this:
Route 10 numbers to a registered customer:
Matching Patterns | $request = ^INVITE To = sip:(5555555.)@
|
?? get <customer A ip> ???
Deploy Patterns | $target = <customer A ip>
|
Thanks in advanced. |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
|
Back to top |
|
caronte506 Brekeke Junior Member
Joined: 03 Jan 2012 Posts: 5
|
Posted: Mon Jan 23, 2012 12:43 pm Post subject: |
|
|
It worked like that:
Route 10 numbers to a registered customer:
Matching Patterns | $request = ^INVITE To = sip:5555555.@ $regaddr("mycustomer") = (.+)
| Deploy Patterns | $target = %1
|
Thanks |
|
Back to top |
|
|