[Serusers] phone hunt
Greg Fausak
lgfausak at august.net
Wed Feb 4 18:05:01 CET 2004
Srbo,
if your script contains:
if(lookup("location"))
{
t_onfailure("1");
t_relay();
}
you can then create a 'function':
failure_route[1] {
# us this line to just forward to another phone.
rewriteuri("sip:nextphone at domain.com");
#
# or, more complicated, use this recursively:
# use alias table to contain next phone to hunt to:
# your could even create another table, like alias, called
# huntgroup.
#
if(lookup("alias"))
{
t_on_failure("1");
append_branch();
t_relay();
break;
};
t_reply("486", "busy here");
}
you can even create another table in the database, say called huntgroup,
and do a lookup("huntgroup");
---greg
>
>Hello,
>
>Does any of you have any experience with setting up the phone hunt
>system? I am trying to set it up but no luck so far. What I would like
>to happen is this: call comes in, first phone rings. After so many
>seconds it's being redirected to another phone and so on and so forth.
>After the fourth phone i want to redirect the call to my voicemail.
>I tried looking through archieves but I couldn't find anything. Do you
>guys have any suggestions?
>
>thanks,
>
> Srbo Cvetkovic | CityNet, Inc.
> srbo at city-net.com | Pittsburgh, PA
> voice: 412.481.5406 | fax: 412.431.1315
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
More information about the sr-users
mailing list