Would it be possible to use a avp_write to store the username part of the original r-uri temporarily, do a lookup and replace the username of the r-uri with the username stored in the avp at that point?
IE INVITE with r-uri 5551234@mysipserver.com
avp_write($ruri\username, s:1) #stores 5551234 in s:1 if (lookup(alias)) { /#alias resolved r-uri in sip_user@mysipserver.com/ if(lookup(location)) { /#r-uri now is sip_user@1.2.3.4:5060/ avp_pushto($ruri\username, s:1) /#overwrite the username part of the ruri with the number from the original r-uri/ t_relay() } }
Igor Balk wrote:
The idea is not to query any tables as they are at different server but use radius to provision aliases and then use lookup("aliases") I believe there was a patch a way back for 8.12 but seems it did not found it way to CVS
-----Original Message----- From: Chris St Denis [mailto:chris@aebc.com] Sent: Wednesday, August 24, 2005 3:44 PM To: Igor Balk; serusers@lists.iptel.org Subject: RE: [Serusers] Routing multiple numbers to 1 account
This is basically the same as aliases.
Query the registration table. If its not found there push the AVP alias into the ruri/username and lookup based on that. All aliases are is a static registration table anyway I believe.
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Igor Balk Sent: Wednesday, August 24, 2005 11:59 AM To: serusers@lists.iptel.org Subject: RE: [Serusers] Routing multiple numbers to 1 account
Guys, do any of you know if there is a way in SER to dynamically set up aliases using radius? I'm trying to achieve similar results but with aliases.
Thank you.
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Chris St Denis Sent: Wednesday, August 24, 2005 1:26 PM To: 'Erik Versaevel'; 'SER Users' Subject: RE: [Serusers] Routing multiple numbers to 1 account
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 destination.
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@iptel.org [mailto:serusers-bounces@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@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@sipserver with contact device_1@device_ip:port SER gets invite for number in the block of device_1 and sends the invite as dialed_number@device_ip:port instead of device_1@device_ip:port
Kind reagards,
Erik Versaevel
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers