[Serusers] Routing multiple numbers to 1 account

Erik Versaevel erik at infopact.nl
Wed Aug 24 23:01:06 CEST 2005


So the invite still gets send to the contact uri sip_user registered in
ser ( in this case sip_user at, that's not what i want since
the end device won't know which number has been dialed in order to reach
it (it has no way to see that 5551234 has been dialed to get to it).
This looks like alias done by radius instead of the standard ser mysql

Kind regards and thanks for your help,


Chris St Denis wrote:

>Using the numbers from your example
>Call comes in to 5551234
>5551234 is looked up in registration table.
>5551234 is not found in registration table.
>5551234 is looked up via radius which returns sip_user
>Invite is rewritten to be for sip_user
>sip_user is looked up in the registration table and the usual lookup action
>is taken. 
>-----Original Message-----
>From: Erik Versaevel [mailto:erik at infopact.nl] 
>Sent: Wednesday, August 24, 2005 1:52 PM
>To: Chris St Denis
>Cc: 'SER Users'
>Subject: Re: [Serusers] Routing multiple numbers to 1 account 
>What exactly do you replace in this case? what i need to do is the
>user sip_user registers his contact in ser (ie sip_user at
>SER recieves invite for 5551234 at mysipserver.com, makes a lookup in a db
>table, finds that 5551234 at mysipserver.com belongs to sip_user and
>forwards the message to 5551234 at (not sip_user at
>    avp_pushto("$ruri/username", "s:callee_vdid");
>looks like you replace the username part of the request uri (in this
>case 5551234 at mysipserver.com) with something else (which is what i kinda
>want to do),
>Kind regards,
>Chris St Denis wrote:
>>I am doing this by pulling the translation out of a database using radius
>>AVP (could be done direct to database too) and sticking it as the
>>It looks like this
>>	  # Try to lookup the number directly registered.
>>       if(!lookup("ser_location")) {
>>		#Number isn't found, so try to do an avp translation on it
>>           avp_pushto("$ruri/username", "s:callee_vdid");
>>           if(!lookup("ser_location")) { #Look up the new value
>>			#Still can't find the user. Give up.
>>                   sl_send_reply("404", "I can't find 'em");
>>                   break;
>>           }
>>       }
>>-----Original Message-----
>>From: serusers-bounces at iptel.org [mailto:serusers-bounces at lists.iptel.org] On
>>Behalf Of Erik Versaevel
>>Sent: Wednesday, August 24, 2005 6:49 AM
>>To: SER Users
>>Subject: [Serusers] Routing multiple numbers to 1 account
>>Hello all,
>>At this moment i'm using the full e164 numbers as account's in ser, that
>>is for every number someone wants delivered to them they would have to
>>register it using the account details.
>>This however poses a problem with a 100 bock of numbers for example
>>while a device can only register a few of them so what i would like to
>>do is mimic the asterisk like dial(SIP/number at sipppeer) in SER. That way
>>the devices only has to register once and recieves the number dialed in
>>the incomming INVITE.  If i use aliases to alias numbers to 1 account
>>the account allways recieves it's own registered contact instead of the
>>number dialed, is there any way to support number blocks in this way?
>>For example:
>>Device registeres as device_1 at sipserver with contact
>device_1 at device_ip:port
>>SER gets invite for number in the block of device_1 and sends the invite
>>as dialed_number at device_ip:port instead of device_1 at device_ip:port
>>Kind reagards,
>>Erik Versaevel
>>Serusers mailing list
>>serusers at lists.iptel.org

InfoPact Netwerkdiensten B.V.

Emmastraat 11-13
3255 BD Oude Tonge
tel. +31 (0)187 64 77 11
mob. +31 (0)645 18 69 67
fax. +31 (0)187 64 77 99 

More information about the sr-users mailing list