From aa353fd57bc5d467761f78d7473302a0f224ca2b Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 12 Dec 2014 04:05:33 +0000 Subject: [PATCH] small changes for new CPD Unknown Action feature git-svn-id: svn://192.168.202.10@2220 3d104415-ff17-0410-8863-d5cf3c621b8a --- agi/VD_amd.agi | 2 +- agi/agi-VDAD_ALL_outbound.agi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agi/VD_amd.agi b/agi/VD_amd.agi index 231a9964..d510b178 100644 --- a/agi/VD_amd.agi +++ b/agi/VD_amd.agi @@ -814,7 +814,7 @@ else } } - if ($cpd_amd_action =~ /CALLMENU|INGROUP/) + if ( ($AMDCAUSE !~ /^Unknown|\?\?\?/i) && ($cpd_amd_action =~ /CALLMENU|INGROUP/) ) { $DROPexten=''; if ($cpd_amd_action =~ /CALLMENU/) diff --git a/agi/agi-VDAD_ALL_outbound.agi b/agi/agi-VDAD_ALL_outbound.agi index c924a0de..79495c20 100644 --- a/agi/agi-VDAD_ALL_outbound.agi +++ b/agi/agi-VDAD_ALL_outbound.agi @@ -3815,7 +3815,7 @@ sub cpd_end_call $drop_seconds = $DROP_TIME; } - if ( ($cpd_amd_action =~ /MESSAGE|CALLMENU|INGROUP/) && ($cpd_result !~ /Fax/i) ) + if ( ($cpd_amd_action =~ /MESSAGE|CALLMENU|INGROUP/) && ($cpd_result !~ /Fax|^Unknown|\?\?\?/i) ) { $DROPexten = "8320"; $AMDSTATUS_set = $AGI->set_variable('AMDSTATUS', "CPDMACHINE"); @@ -3823,7 +3823,7 @@ sub cpd_end_call } else { - if ( ($cpd_unknown_action =~ /MESSAGE|CALLMENU|INGROUP/) && ($cpd_result !~ /Fax/i) ) + if ( ($cpd_unknown_action =~ /MESSAGE|CALLMENU|INGROUP/) && ($cpd_result =~ /^Unknown|\?\?\?/i) ) { $DROPexten = "8320"; $AMDSTATUS_set = $AGI->set_variable('AMDSTATUS', "CPDMACHINE");