Page 1 of 1

dead call detection

PostPosted: Thu Jul 12, 2012 3:42 pm
by Acidshock
Can someone explain the dead call detection to me? I went through the AST_timeonVDADdial.php file and found this snippet of code. Is the script looking for the callerid of the call in the list of active channels and if it doesnt see it it assumes the call is dead?

Code: Select all
if (eregi("INCALL",$Lstatus))
         {
         $stmtP="select count(*) from parked_channels where channel_group='$Acallerid[$i]';";
         $rsltP=mysql_query($stmtP,$link);
         $rowP=mysql_fetch_row($rsltP);
         $parked_channel = $rowP[0];

         if ($parked_channel > 0)
            {
            $Astatus[$i] =   'PARK';
            $Lstatus =      'PARK';
            $status =      ' PARK ';
            }
         else
            {
            if (!ereg("$Acallerid[$i]\|",$callerids))
               {
               $Acall_time[$i]=$Astate_change[$i];

               $Astatus[$i] =   'DEAD';
               $Lstatus =      'DEAD';
               $status =      ' DEAD ';
               }
            }

Re: dead call detection

PostPosted: Fri Jul 13, 2012 2:02 pm
by williamconley
dead call is when the agent is in a "live" call, but there is noone else in the conference room. this means that the "client" has hung up and the agent is now talking to themselves. while this may be necessary for a few seconds to complete a comment or fishing typing a name ... the agent is expected to push the hangup button within a few short seconds. during this period the call is "dead".