Getting registered client's IP

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
caronte506
Posts: 5
Joined: Tue Jan 03, 2012 12:33 pm

Getting registered client's IP

Post by caronte506 »

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/ ... terns.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.
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

$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
caronte506
Posts: 5
Joined: Tue Jan 03, 2012 12:33 pm

Post by caronte506 »

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