Changeset 7713
- Timestamp:
- 05/08/09 12:38:29 (1 year ago)
- Files:
-
- modules/branches/2.6/core/agi-bin/dialparties.agi (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.6/core/agi-bin/dialparties.agi
r7647 r7713 30 30 require_once "phpagi-asmanager.php"; 31 31 32 $ext = array(); // Hash that will contain our list of extensions to call33 $ext_hunt = array(); // Hash that will contain our list of extensions to call used by huntgroup32 $ext = array(); // Hash that will contain our list of extensions to call 33 $ext_hunt = array(); // Hash that will contain our list of extensions to call used by huntgroup 34 34 $cidnum = ""; // Caller ID Number for this call 35 35 $cidname = ""; // Caller ID Name for this call 36 36 $timer = ""; // Call timer for Dial command 37 $dialopts = ""; // options for dialing37 $dialopts = ""; // Options for dialing 38 38 $rc = ""; // Catch return code 39 39 $priority = ""; // Next priority 40 40 $rgmethod = ""; // If Ring Group what ringing method was chosen 41 $screen = false; // initialize screen variable41 $screen = false; // Initialize screen variable 42 42 $dsarray = array(); // This will hold all the dial strings, used to check for duplicate extensions 43 43 … … 161 161 162 162 // Clear it now so subsequent transfers don't honor it any longer 163 // unless it's a ringallv2 in which case it is going to g ot though163 // unless it's a ringallv2 in which case it is going to get through 164 164 // another level of local channels 165 165 // … … 230 230 } 231 231 } else { 232 debug("extension not in group list, ring ging only during prering time",4);232 debug("extension not in group list, ringing only during prering time",4); 233 233 $fmgrp_realprering = $fmgrp_prering; 234 234 array_unshift($ext,$fmgrp); … … 246 246 if (strlen($screen_call)) { 247 247 if($screen_call == 'nomemory' && $cidnum != '') { // This can't go in the dialplan because macro-dial can get called multiple times 248 // Do a security check, we only numeric callerid numbers, otherwise code could be in cjected in a cidnum field248 // Do a security check, we only numeric callerid numbers, otherwise code could be injected in a cidnum field 249 249 // that could result in an arbitrary command being executed in this remove operation. 250 250 if (ctype_digit($cidnum)) { … … 260 260 } 261 261 } 262 // IF THE FIRST EXTENSION ISCALL FORWARD ENABLED (put in logic) then we don't do master mode262 // IF THE FIRST EXTENSION HAVE CALL FORWARD ENABLED (put in logic) then we don't do master mode 263 263 // which means we reset the flag here after detecting that and just say we are not in master 264 264 // mode and all is well. That means the loop below needs to be modified to detect the first … … 344 344 // 345 345 // if mastermode is set then the first extension will be examined and mastermode will be reset so that the others 346 // are left alone. If the remaining extensions are not to be tried, sk premaining will be set to 1 which will346 // are left alone. If the remaining extensions are not to be tried, skipremaining will be set to 1 which will 347 347 // result in dndprimary being set to 1 thus diabling the remaining list. 348 348 // … … 716 716 717 717 if (strpos($extnum,'#') != 0) { 718 // "#" used to identify external numbers in forwards and callg ourps718 // "#" used to identify external numbers in forwards and callgroups 719 719 // If using call confirmation, need to put the # back into the new dialstring 720 720 // we then place all external calls (denoted with a # at the end) through
