[Serusers] multiple domains and aliases to link them

Rosario Pingaro rpingar at italycom.it
Sun Jun 26 09:49:55 CEST 2005


If I set registrar and userloc to 0 I can't manage two different domain!

I'd like to have two separate domain but using unique aliases I have to link 
them in some way

Thanks

Rosario

----- Original Message ----- 
From: "Klaus Darilion" <klaus.mailinglists at pernau.at>
To: "Rosario Pingaro" <rpingar at italycom.it>
Cc: <serusers at lists.iptel.org>
Sent: Saturday, June 25, 2005 3:44 PM
Subject: Re: [Serusers] multiple domains and aliases to link them


> 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