Show
Ignore:
Timestamp:
04/19/06 03:34:51 (7 years ago)
Author:
qldrob
Message:

DND wasn't working. Fixed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/agi-bin/dialparties.agi

    r1671 r1672  
    104104} 
    105105 
     106// Hacky. 
     107$count = 0; 
    106108// Now check for DND 
    107109foreach ( $ext as $k ) 
     
    116118    { 
    117119      debug("Extension $k has do not disturb enabled", 1); 
    118       unset($k); 
     120      unset($ext[$count]); 
    119121      //PERL: delete $ext{$k}; 
    120122    }  
     
    124126    } 
    125127  } 
     128  $count++; 
    126129} 
    127130 
     
    226229      $dsarray[$realext] = 1;  // could be dial string i suppose but currently only using for duplicate check 
    227230      $extds = get_dial_string( $AGI, $extnum); 
    228       // Only add if there actually is a dial paramater 
    229       if (strlen($extds)) 
    230          $ds .= $extds . '&'; 
     231      if (strlen($extds)) $ds .= $extds . '&'; 
    231232     
    232233      // Update Caller ID for calltrace application 
     
    301302if (!strlen($ds))  
    302303{ 
    303   $AGI->noop('No dial string!'); 
     304  $AGI->noop(''); 
    304305} else { 
    305306  if (($rgmethod == "hunt") || ($rgmethod == "memoryhunt"))