Skip to content

Commit

Permalink
Fixed how the agi script was hanging up
Browse files Browse the repository at this point in the history
  • Loading branch information
tm1000 committed Jul 30, 2011
1 parent aa9df3b commit a779fad
Show file tree
Hide file tree
Showing 3 changed files with 234 additions and 224 deletions.
8 changes: 8 additions & 0 deletions agi/bwlist.agi
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ foreach($list as $data) {
$db->query($sql);
break;
} else {
$agi->answer();
$agi->exec("WAIT 1"); //wait 1 second
$agi->exec("Zapteller"); //wait 1 second
$agi->stream_file('ss-noservice');
$agi->hangup();
break;
}
Expand All @@ -34,6 +38,10 @@ foreach($list as $data) {
}

if(!$matchfound) {
$agi->answer();
$agi->exec("WAIT 1"); //wait 1 second
$agi->exec("Zapteller()"); //wait 1 second
$agi->stream_file('ss-noservice');
$agi->hangup();
}

Expand Down
Loading

0 comments on commit a779fad

Please sign in to comment.