[OpenSIPS-Users] Load Balance & get_dialog_info("callee", "$var(x)", "caller", "$fu")
Ross Beer
beer.ross at googlemail.com
Wed Sep 1 00:33:13 CEST 2010
Hi,
I've been trying to use the
get_dialog_info("callee","$var(x)","caller","$fu") to make calls go
back to the same gateway as they are already active on. However when
setting a '$dlg_val(caller)' variable after load balancing stops the
load balance and just selects the first gateway.
For example, I am using something like:
if(get_dialog_info("server","$var(x)","user","$fu"))
{
# Dialogue Exists
$du = $var(x);
$dlg_val(server) = $du;
$dlg_val(user) = $fu;
route(1)
exit;
}
else
{
# New Call
if(load_balance("1","pstn"))
{
$dlg_val(server) = $du;
$dlg_val(user) = $fu;
}
}
More information about the Users
mailing list