Have been using openser for a couple of months and i run into a problem.

Currently i'm using alias_db_lookup, location and t_relay to do the routing.

Since many clients have many numbers, i need to to rewrite the contact to the right client. It's doing it but only for a client with one number. Need for clients with more numbers.

This is what i want:

 
$client_n = 1234

alias_db_lookup("db_aliases"); -> client_number@provider.com

location("location"); -> client_number@client_ip

rewriteuser($client_n);

t_relay(); 

This is what i have:

alias_db_lookup("dbaliases"); 

lookup("location);

t_relay();

 

Anyone have this implemented? 


Nelson Silva
-----------------
email: nelson.silva@neuvex.com
website: http://www.neuvex.com