[Serusers] Get alias for user

Samuel Osorio Calvo samuel.osorio at nl.thalesgroup.com
Mon Oct 24 14:21:26 CEST 2005


When you process the incoming:

INVITE dsandras aT gnome.org

and reaches lookup("aliases");, the Req-URI will be AUTOMATICALLY rewritten to have:

INVITE 6001 aT gnome.org

Isn't this what you want???? You don't need rewriteuri for anything, lookup will do the job for you.

Samuel.


Unclassified.
>>> Damien Sandras <dsandras at gnomemeeting.net> 10/24/05 02:12PM >>>
Le lundi 24 octobre 2005 à 14:06 +0200, Samuel Osorio Calvo a écrit :
> lookup("aliases"); 
> 
> will do the job for you if aliases is the name of the table containing the alias bindings (by default it will be).
> 

I had understood this, but the problem here is that I need the reverse:
the original request uri contains the username and I need to rewrite it
into the user alias.

Example, SER receives INVITE dsandras @   gnomemeeting.net, and I want
to use rewriteuri to rewrite the INVITE into INVITE 600001 @
gnomemeeting.net.

Is that possible?
-- 
 _      Damien Sandras
(o-     GnomeMeeting: http://www.gnomemeeting.org/ 
//\     FOSDEM 2005 : http://www.fosdem.org 
v_/_    H.323 phone : callto:ils.seconix.com/dsandras at seconix.com 





More information about the sr-users mailing list