small changes for new CPD Unknown Action feature

git-svn-id: svn://192.168.202.10@2220 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2014-12-12 04:05:33 +00:00
parent addd00b4d3
commit 8212ddaac7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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/)
+2 -2
View File
@@ -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");