[Serusers] multiple domains and aliases to link them

Klaus Darilion klaus.mailinglists at pernau.at
Sat Jun 25 21:44:16 CEST 2005


If use_domain parameter of registrar and userloc module is set to 0, the 
lookup function should only search for the userpart of the request URI. 
Try playing around with this parameter.

regards,
klaus

Rosario Pingaro wrote:
> I have ser configured and workin fine with multiple domains.
>  
> I assign an unique numeric alias for each user not realted to the 
> domain. So If I have an alias 0823384 at domain1.com 
> <mailto:0823384 at domain1.com> can't have 0823384 at domain2.com 
> <mailto:0823384 at domain2.com> link to another user.
>  
> Now I'd like to let the user of doamin1.com using the regular phone to 
> call the user of domain2.com trough SER (I am using 0.9.2);
>  
> I am not able to figure out how to modify the ser.cfg to accomplish this.
> Could I rewrite the uri if I don't find the alias and let them find 
> again with the new domain? 
> Something like this:
> if (!lookup("alias")){
>         if (uri=~"domain1,com") {
>                 rewritehost("domain2.com");
>                 lookup("alias");
>                 # if it is not about the other domain it come back
>                 if (!lookup("alias")){
>                     rewritehost("domain1.com");
>                 }
>         } else if  (uri=~"domain2,com") {
>                 rewritehost("domain1.com");
>                 lookup("alias");
>                  # if it is not about the other domain it come back
>                  if (!lookup("alias")){
>                     rewritehost("domain2.com");
>                 }
>         }
>   }
>  
> Hope o receive some feedback.
> Thanks
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list