diff --git a/agi/agi-VDAD_inbound_calltime_check.agi b/agi/agi-VDAD_inbound_calltime_check.agi index 6aeee1ba..7a787375 100644 --- a/agi/agi-VDAD_inbound_calltime_check.agi +++ b/agi/agi-VDAD_inbound_calltime_check.agi @@ -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');