<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have ser configured and workin fine with multiple
domains.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I assign an unique numeric alias for each user
not realted to the domain. So If I have an alias <A
href="mailto:0823384@domain1.com">0823384@domain1.com</A> can't
have <A href="mailto:0823384@domain2.com">0823384@domain2.com</A> link
to another user.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am not able to figure out how to modify
the ser.cfg to accomplish this. <BR>Could I rewrite the uri if I don't find
the alias and let them find again with the new domain?</FONT> </DIV>
<DIV><FONT face=Arial size=2>Something like this:</FONT></DIV>
<DIV><FONT face=Arial size=2>if (!lookup("alias")){</FONT></DIV>
<DIV><FONT face=Arial size=2> if
(uri=~"domain1,com")
{<BR>
rewritehost("domain2.com");</FONT></DIV>
<DIV><FONT face=Arial size=2>
lookup("alias");</FONT></DIV>
<DIV><FONT face=Arial
size=2>
# if it is not about the other domain it come back</FONT></DIV>
<DIV><FONT face=Arial
size=2>
<FONT face=Arial size=2>if (!lookup("alias")){</FONT></FONT></DIV>
<DIV><FONT face=Arial
size=2>
rewritehost("domain1.com");</FONT></DIV>
<DIV><FONT face=Arial
size=2>
}</FONT></DIV>
<DIV><FONT face=Arial size=2> } else
if (uri=~"domain2,com")
{<BR>
rewritehost("domain1.com");</DIV>
<DIV>
<DIV><FONT face=Arial size=2>
lookup("alias");</FONT></DIV>
<DIV>
# if it is not about the other domain it come back</DIV>
<DIV>
<FONT face=Arial size=2>if (!lookup("alias")){</FONT>
<DIV><FONT face=Arial
size=2>
rewritehost("domain2.com");</FONT></DIV>
<DIV><FONT face=Arial
size=2>
}</FONT></DIV></DIV>
<DIV> }</DIV>
<DIV> }</DIV>
<DIV> </DIV>
<DIV>Hope o receive some feedback.</DIV>
<DIV>Thanks</DIV>
<DIV> </DIV></DIV></FONT></BODY></HTML>