[Serusers] aliases with trigger problem

Zeus Ng zeus.ng at isquare.com.au
Fri Feb 25 12:19:30 CET 2005


SER does not read from db with the lookup() function. It has a memory
version and read from there. The db version will only be loaded upon
startup. Even though you can do db trigger, it won't be read until next time
SER restart.

Zeus

> -----Original Message-----
> From: serusers-bounces at lists.iptel.org 
> [mailto:serusers-bounces at lists.iptel.org] On Behalf Of braincrew.com
> Sent: Friday, 25 February 2005 9:48 PM
> To: serusers at lists.iptel.org
> Subject: [Serusers] aliases with trigger problem
> 
> 
> Hi guys,
>  
> I tried to make aliases w/ trigger but something goes wrong. 
> Trigger is made on insert in the database. If user logins with 
> username 123 alias 0123 is created. But if I call 0123 I get 
> "404 Not found" any idea? 
>  
> P.S. in ser.cfg I have :
>  
>         if (uri==myself) {
>                 if (method=="REGISTER") {
>                         if (!www_authorize("193.193.162.71", 
> "subscriber")) {
>                                 www_challenge("193.193.162.71", "0");
>                                 break;
>                         };
>                         save("location");
>                         lookup("aliases");
>  
>  
> Thanks!
> 




More information about the sr-users mailing list