Hello,
On 04/17/07 20:42, Jayesh Nambiar wrote:
Hi,
I am using dispatcher module in my openser 1.2.
I am using ds_select_domain function in the script. What I wanted to
know is, is there a way that I can prefix some digits to the ruri
before sending to the selected domain.
My scenario is:
I have got two Gateway IPs in the dispatcher module. Each Gateway
needs a different prefix before the ruri to process the calls properly.
I am using the round robin algo in dispatcher. Now the question is how
will I know what IP is being selected and how will I attach
appropriate prefix?
selected IP will be in domain part of R-URI ($rd) -- then you
can use it
to load the prefix from a database. If you look for some least cost
routing solution, lcr module might be the one.
Cheers,
Daniel
Is there a way to do the same in the dispatcher module.
My configuration snippet:
route[4] { #--Dispatcher route--
ds_select_domain("1", "4");
$avp(i:25) = 3;
$avp(i:30) = $rd;
route(1);
exit;
}
thanks in advance.
w/regards,
Jayesh
------------------------------------------------------------------------
Check out what you're missing if you're not on Yahoo! Messenger
<http://us.rd.yahoo.com/mail/in/ymessenger/*http://in.messenger.yahoo.com/>
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users