[Serusers] sequential hunting
Steve Blair
blairs at isc.upenn.edu
Thu Feb 1 01:34:16 CET 2007
Greger:
So something like the following:
# hunting (serial forking)
if (avp_db_load("$ruri/username", "s:allow_hunt")) {
if (avp_check("s:allow_hunt", "eq/y/i")) {
avp_delete("s:allow_hunt");
avp_db_load("$ruri/username", "s:huntlist/sam");
t_on_failure("6");
t_relay();
break;
};
};
# Iterate through extension list for subscribers with call hunting
enabled
failure_route[6] {
if (avp_pushto("$ruri/username", "s:huntlist"))
{
append_branch();
avp_delete("s:huntlist");
t_on_failure("6");
t_relay();
};
}
Greger Viken Teigre wrote:
>Don't use the g flag in avp_pushto, with it you push all values. Then use avp_delete on the list so that you use the next for the next hunt.
>g-)
>
>------- Original message -------
>From: Steve Blair <blairs at isc.upenn.edu>
>Sent: 31.1.'07, 15:16
>
>
>
>
More information about the sr-users
mailing list