fixed small bug in calltime AGI script
git-svn-id: svn://192.168.202.10@1451 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -432,14 +432,7 @@ if ( ($hm < $ct_default_start) || ($hm > $ct_default_stop) )
|
||||
$dbhB->disconnect();
|
||||
}
|
||||
|
||||
if ($after_hours_action =~ /HANGUP/)
|
||||
{
|
||||
### insert a NEW record to the vicidial_manager table to hangup the channel
|
||||
$stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$VARserver_ip','','Hangup','$VHqueryCID','Channel: $channel','','','','','','','','','')";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
if ($AGILOG) {$agi_string = "-- VDCL call_hungup after hours: |$VHqueryCID|$VDADconf_exten|$channel|insert to vicidial_manager"; &agi_output;}
|
||||
}
|
||||
if ($after_hours_action =~ /MESSAGE/)
|
||||
if ($after_hours_action =~ /MESSAGE|HANGUP/)
|
||||
{
|
||||
$AGI->stream_file('sip-silence');
|
||||
$AGI->stream_file('sip-silence');
|
||||
|
||||
Reference in New Issue
Block a user