Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Getting registered client's IP
Author Message
caronte506
Brekeke Junior Member


Joined: 03 Jan 2012
Posts: 5

PostPosted: Mon Jan 23, 2012 9:10 am    Post subject: Getting registered client's IP Reply with quote

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


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Jan 23, 2012 10:52 am    Post subject: Reply with quote

$regaddr can return the contact IP of the registered user
Page 59 from SIP server administrator's guide http://www.brekeke.com/download/download_sip_doc_en.php
Back to top
View user's profile
caronte506
Brekeke Junior Member


Joined: 03 Jan 2012
Posts: 5

PostPosted: Mon Jan 23, 2012 12:43 pm    Post subject: Reply with quote

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
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