I Jan, I tryied your solution( creating a reversealiases table and do lookup() function before rewrite host, but it didn't success.
I have no idea on how to acomplish that!!! it seems to be easy but, remains kicking me hard, and I'm stopped at this point, for several weeks. I just want to forward incoming calls that are for users not On-line to asterisk by replacing TO header for his/her alias.
INVITE sip:pnovell@domain.com ---> SER ( USER NOT ONLINE ) | | lookup("aliases") pnovell=17940 | ----> FORWARD sip:17940@IP_OF_ASTERISK Any help?
-- Pol Novell UPF- Universitat Pompeu Fabra.
On 10/24/05, Jan Janak jan@iptel.org wrote:
On 24-10-2005 14:12, Damien Sandras wrote:
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.nethttp://gnomemeeting.net,
and I want
to use rewriteuri to rewrite the INVITE into INVITE 600001 @ gnomemeeting.net http://gnomemeeting.net.
Is that possible?
Just setup reverse aliases. You can either use aliases table or create your own, let's say revaliases.
Revaliases should have exactly same structure as aliases table and you should als add a row in version table for it. revaliases could contain usernames and map them to numbers. That is username would be dsandras and contact sip:600001@gnomemeeting.net. You can then call lookup("realiases") in the script.
Jan.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Mensaje analizado y protegido, tecnologia antivirus www.trendmicro.eshttp://www.trendmicro.es