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;
}
}
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users