Displaying 1 result from an estimated 1 matches for "callfwd_loop_check".
2006 Jan 26
0
Local Channel Call Looping
...value before it tried to assign one. If the variable had a value, it was
safe to assume that it had already been processed in the call chain
somewhere and therefore the system would be looping the call if it
continued.
Here are some sanitized Perl based AGI excerpts that accomplish this:
sub callfwd_loop_check
{
my %v;
($v{callednum},$v{cfnum}) = @_;
$v{num} = $AGI->get_variable($v{cfnum});
if ($v{num})
{
debug(" Call Loop Anaylsis for ".$v{callednum}." =
LOOPING");
return(1);
}
else
{...