I Jan, I tryied your solution( creating a reversealiases table and do
lookup() function before rewrite host, but it didn't success.<br>
<br>
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.<br>
I just want to forward incoming calls that are for users not On-line to asterisk by replacing TO header for his/her alias.<br>
<br>
<br>
INVITE <a href="mailto:sip:pnovell@domain.com">sip:pnovell@domain.com</a> ---> SER ( USER NOT ONLINE ) <br>
|<br>
| lookup("aliases") pnovell=17940<br>
|<br>
----> FORWARD sip:17940@IP_OF_ASTERISK<br>
Any help?<br>
<br>
--<br>
Pol Novell<br>
UPF- Universitat Pompeu Fabra.<br>
<br><br><div><span class="gmail_quote">On 10/24/05, <b class="gmail_sendername">Jan Janak</b> <<a href="mailto:jan@iptel.org">jan@iptel.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On 24-10-2005 14:12, Damien Sandras wrote:<br>> Le lundi 24 octobre 2005 ? 14:06 +0200, Samuel Osorio Calvo a écrit :<br>> > lookup("aliases");<br>> ><br>> > will do the job for you if aliases is the name of the table containing the alias bindings (by default it will be).
<br>> ><br>><br>> I had understood this, but the problem here is that I need the reverse:<br>> the original request uri contains the username and I need to rewrite it<br>> into the user alias.<br>><br>
> Example, SER receives INVITE dsandras @ <a href="http://gnomemeeting.net">gnomemeeting.net</a>, and I want<br>> to use rewriteuri to rewrite the INVITE into INVITE 600001 @<br>> <a href="http://gnomemeeting.net">
gnomemeeting.net</a>.<br>><br>> Is that possible?<br><br> Just setup reverse aliases. You can either use aliases table or create<br> your own, let's say revaliases.<br><br> Revaliases should have exactly same structure as aliases table and you
<br> should als add a row in version table for it. revaliases could contain<br> usernames and map them to numbers. That is username would be dsandras<br> and contact <a href="mailto:sip:600001@gnomemeeting.net">sip:600001@gnomemeeting.net
</a>. You can then call<br> lookup("realiases") in the script.<br><br> Jan.<br><br>_______________________________________________<br>Serusers mailing list<br><a href="mailto:Serusers@iptel.org">serusers@lists.iptel.org
</a><br><a href="http://lists.iptel.org/mailman/listinfo/serusers">http://mail.iptel.org/mailman/listinfo/serusers</a><br><br>_____________________________________________________________________<br>Mensaje analizado y protegido, tecnologia antivirus
<a href="http://www.trendmicro.es">www.trendmicro.es</a><br></blockquote></div><br>