Changeset 1672 for freepbx/trunk/amp_conf/agi-bin
- Timestamp:
- 04/19/06 03:34:51 (7 years ago)
- Files:
-
- freepbx/trunk/amp_conf/agi-bin/dialparties.agi (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/agi-bin/dialparties.agi
r1671 r1672 104 104 } 105 105 106 // Hacky. 107 $count = 0; 106 108 // Now check for DND 107 109 foreach ( $ext as $k ) … … 116 118 { 117 119 debug("Extension $k has do not disturb enabled", 1); 118 unset($ k);120 unset($ext[$count]); 119 121 //PERL: delete $ext{$k}; 120 122 } … … 124 126 } 125 127 } 128 $count++; 126 129 } 127 130 … … 226 229 $dsarray[$realext] = 1; // could be dial string i suppose but currently only using for duplicate check 227 230 $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 . '&'; 231 232 232 233 // Update Caller ID for calltrace application … … 301 302 if (!strlen($ds)) 302 303 { 303 $AGI->noop(' No dial string!');304 $AGI->noop(''); 304 305 } else { 305 306 if (($rgmethod == "hunt") || ($rgmethod == "memoryhunt"))
