Changeset 10684
- Timestamp:
- 12/09/10 17:38:47 (2 years ago)
- Files:
-
- modules/branches/bootstrap-2.9 (modified) (1 prop)
- modules/branches/bootstrap-2.9/checklog.sh (copied) (copied from modules/branches/2.9/checklog.sh)
- modules/branches/bootstrap-2.9/cidlookup/functions.inc.php (modified) (1 diff)
- modules/branches/bootstrap-2.9/conferences/module.xml (modified) (1 diff)
- modules/branches/bootstrap-2.9/core/functions.inc.php (modified) (8 diffs)
- modules/branches/bootstrap-2.9/queues/functions.inc.php (modified) (1 diff)
- modules/branches/bootstrap-2.9/queues/module.xml (modified) (3 diffs)
- modules/branches/bootstrap-2.9/ringgroups/functions.inc.php (modified) (1 diff)
- modules/branches/bootstrap-2.9/ringgroups/module.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/bootstrap-2.9
- Property svnmerge-integrated changed from /modules/branches/2.8:1-10509 /modules/branches/2.9:1-10644 to /modules/branches/2.9:1-10682 /modules/branches/2.8:1-10509
modules/branches/bootstrap-2.9/cidlookup/functions.inc.php
r9418 r10684 146 146 case "http": 147 147 if (!empty($item['http_username']) && !empty($item['http_password'])) 148 $auth = sprintf('%s:%s@', $item['http_username'], $item['http_password']);148 $auth = sprintf('%s:%s@', $item['http_username'], urlencode($item['http_password'])); 149 149 else 150 150 $auth = ''; modules/branches/bootstrap-2.9/conferences/module.xml
r10645 r10684 45 45 <conferences>Conferences</conferences> 46 46 </menuitems> 47 <location>release/2.8/conferences-2.8.0. 1.tgz</location>48 <md5sum> 6c7385cf933992501776e541f8d381a6</md5sum>47 <location>release/2.8/conferences-2.8.0.2.tgz</location> 48 <md5sum>261cf9c7f621998ad99759af1b001722</md5sum> 49 49 </module> modules/branches/bootstrap-2.9/core/functions.inc.php
r10645 r10684 1298 1298 $vm = ((($exten['voicemail'] == "novm") || ($exten['voicemail'] == "disabled") || ($exten['voicemail'] == "")) ? "novm" : $exten['extension']); 1299 1299 1300 if (isset($exten['ringtimer']) && $exten['ringtimer'] != 0) 1301 $ext->add('ext-local', $exten['extension'], '', new ext_setvar('__RINGTIMER',$exten['ringtimer'])); 1300 $ext->add('ext-local', $exten['extension'], '', new ext_execif('$[${DB(AMPUSER/'.$exten['extension'].'/ringtimer)} > 0]','Set','__RINGTIMER=${DB(AMPUSER/'.$exten['extension'].'/ringtimer)}')); 1302 1301 1303 1302 $dest_args = ','.($exten['noanswer_dest']==''?'0':'1').','.($exten['busy_dest']==''?'0':'1').','.($exten['chanunavail_dest']==''?'0':'1'); … … 2931 2930 $ext->add($mcontext,$exten,'', new ext_macro('user-callerid')); 2932 2931 $ext->add($mcontext,$exten,'', new ext_set("RingGroupMethod", 'none')); 2933 $ext->add($mcontext,$exten,'', new ext_set("VMBOX", '${ARG1}'));2934 2932 $ext->add($mcontext,$exten,'', new ext_set("__EXTTOCALL", '${ARG2}')); 2935 $ext->add($mcontext,$exten,'', new ext_set("CFUEXT", '${DB(CFU/${EXTTOCALL})}')); 2936 $ext->add($mcontext,$exten,'', new ext_set("CFBEXT", '${DB(CFB/${EXTTOCALL})}')); 2937 $ext->add($mcontext,$exten,'', new ext_set("RT", '${IF($[$["${VMBOX}"!="novm"] | $["${CFUEXT}"!=""]]?${RINGTIMER}:"")}')); 2933 $ext->add($mcontext,$exten,'', new ext_set("RT", '${IF($["${ARG1}"!="novm" | "${DB(CFU/${EXTTOCALL})}"!="" | "${DB(CFB/${EXTTOCALL})}"!=""]?${RINGTIMER}:"")}')); 2938 2934 $ext->add($mcontext,$exten,'checkrecord', new ext_macro('record-enable','${EXTTOCALL},IN')); 2939 2935 … … 2974 2970 $ext->add($mcontext,$exten,$macrodial, new ext_macro('dial','${RT},${DIAL_OPTIONS},${EXTTOCALL}')); 2975 2971 } 2976 $ext->add($mcontext,$exten,'',new ext_gotoif('$["${ VMBOX}"!="novm" & "${SCREEN}"!="" & "${DIALSTATUS}"="NOANSWER"]','exit'));2972 $ext->add($mcontext,$exten,'',new ext_gotoif('$["${ARG1}"!="novm" & "${SCREEN}"!="" & "${DIALSTATUS}"="NOANSWER"]','exit')); 2977 2973 $ext->add($mcontext,$exten,'', new ext_set("SV_DIALSTATUS", '${DIALSTATUS}')); 2978 $ext->add($mcontext,$exten,'calldocfu', new ext_gosubif('$["${SV_DIALSTATUS}"="NOANSWER" & "${CFUEXT}"!="" & "${SCREEN}"=""]','docfu,1')); 2979 $ext->add($mcontext,$exten,'calldocfb', new ext_gosubif('$["${SV_DIALSTATUS}"="BUSY" & "${CFBEXT}"!=""]','docfb,1')); 2974 2975 $ext->add($mcontext,$exten,'calldocfu', new ext_gosubif('$["${SV_DIALSTATUS}"="NOANSWER" & "${DB(CFU/${EXTTOCALL})}"!="" & "${SCREEN}"=""]','docfu,1')); 2976 $ext->add($mcontext,$exten,'calldocfb', new ext_gosubif('$["${SV_DIALSTATUS}"="BUSY" & "${DB(CFB/${EXTTOCALL})}"!=""]','docfb,1')); 2980 2977 $ext->add($mcontext,$exten,'', new ext_set("DIALSTATUS", '${SV_DIALSTATUS}')); 2981 2978 2982 2979 $ext->add($mcontext,$exten,'', new ext_execif('$[("${DIALSTATUS}"="NOANSWER"&${ARG3})|("${DIALSTATUS}"="BUSY"&${ARG4})|("${DIALSTATUS}"="CHANUNAVAIL"&${ARG5})]','MacroExit')); 2983 2980 2984 $ext->add($mcontext,$exten,'', new ext_noop('Voicemail is \'${ VMBOX}\''));2985 $ext->add($mcontext,$exten,'',new ext_gotoif('$["${ VMBOX}"="novm"]','s-${DIALSTATUS},1'));2981 $ext->add($mcontext,$exten,'', new ext_noop('Voicemail is \'${ARG1}\'')); 2982 $ext->add($mcontext,$exten,'',new ext_gotoif('$["${ARG1}"="novm"]','s-${DIALSTATUS},1')); 2986 2983 $ext->add($mcontext,$exten,'', new ext_noop('Sending to Voicemail box ${EXTTOCALL}')); 2987 $ext->add($mcontext,$exten,'', new ext_macro('vm','${ VMBOX},${DIALSTATUS},${IVR_RETVM}'));2984 $ext->add($mcontext,$exten,'', new ext_macro('vm','${ARG1},${DIALSTATUS},${IVR_RETVM}')); 2988 2985 2989 2986 $exten = 'docfu'; 2990 $ext->add($mcontext,$exten,'docfu', new ext_set("RTCFU", '${IF($["${ VMBOX}"!="novm"]?${RINGTIMER}:"")}'));2987 $ext->add($mcontext,$exten,'docfu', new ext_set("RTCFU", '${IF($["${ARG1}"!="novm"]?${RINGTIMER}:"")}')); 2991 2988 if ($amp_conf['DIVERSIONHEADER']) $ext->add($mcontext,$exten,'', new ext_set('__DIVERSION_REASON', 'unavailable')); 2992 $ext->add($mcontext,$exten,'', new ext_dial('Local/${ CFUEXT}@from-internal/n', '${RTCFU},${DIAL_OPTIONS}'));2989 $ext->add($mcontext,$exten,'', new ext_dial('Local/${DB(CFU/${EXTTOCALL})}@from-internal/n', '${RTCFU},${DIAL_OPTIONS}')); 2993 2990 if ($amp_conf['DIVERSIONHEADER']) $ext->add($mcontext,$exten,'', new ext_set('__DIVERSION_REASON', '')); 2994 2991 $ext->add($mcontext,$exten,'', new ext_return('')); 2995 2992 2996 2997 $ext->add($mcontext,$exten,'docfb', new ext_set("RTCFB", '${IF($["${ VMBOX}"!="novm"]?${RINGTIMER}:"")}'));2993 $exten = 'docfb'; 2994 $ext->add($mcontext,$exten,'docfb', new ext_set("RTCFB", '${IF($["${ARG1}"!="novm"]?${RINGTIMER}:"")}')); 2998 2995 if ($amp_conf['DIVERSIONHEADER']) $ext->add($mcontext,$exten,'', new ext_set('__DIVERSION_REASON', 'user-busy')); 2999 $ext->add($mcontext,$exten,'', new ext_dial('Local/${ CFBEXT}@from-internal/n', '${RTCFB},${DIAL_OPTIONS}'));2996 $ext->add($mcontext,$exten,'', new ext_dial('Local/${DB(CFB/${EXTTOCALL})}@from-internal/n', '${RTCFB},${DIAL_OPTIONS}')); 3000 2997 if ($amp_conf['DIVERSIONHEADER']) $ext->add($mcontext,$exten,'', new ext_set('__DIVERSION_REASON', '')); 3001 2998 $ext->add($mcontext,$exten,'', new ext_return('')); … … 4255 4252 $results = sql($sql,"getAll",DB_FETCHMODE_ASSOC); 4256 4253 4254 $display = ($amp_conf['AMPEXTENSIONS'] == "deviceanduser")?'users':'extensions'; 4257 4255 foreach ($results as $result) { 4258 4256 $thisexten = $result['extension']; 4259 4257 $extenlist[$thisexten]['description'] = _("User Extension: ").$result['name']; 4260 4258 $extenlist[$thisexten]['status'] = 'INUSE'; 4261 $display = ($amp_conf['AMPEXTENSIONS'] == "deviceanduser")?'users':'extensions';4262 4259 $extenlist[$thisexten]['edit_url'] = "config.php?type=setup&display=$display&extdisplay=".urlencode($thisexten)."&skip=0"; 4263 4260 } … … 4267 4264 function core_check_destinations($dest=true) { 4268 4265 global $active_modules; 4266 global $amp_conf; 4269 4267 4270 4268 $destlist = array(); … … 4272 4270 return $destlist; 4273 4271 } 4272 // Check Inbound Routes 4273 // 4274 4274 $sql = "SELECT extension, cidnum, description, destination FROM incoming "; 4275 4275 if ($dest !== true) { … … 4290 4290 ); 4291 4291 } 4292 4293 // Check Extension/User Destinations 4294 // 4295 $sql = "SELECT extension, name, busy_dest, noanswer_dest, chanunavail_dest FROM users "; 4296 if ($dest !== true) { 4297 $sql .= "WHERE (busy_dest in ('".implode("','",$dest)."')) OR (noanswer_dest in ('".implode("','",$dest)."')) OR (chanunavail_dest in ('".implode("','",$dest)."'))"; 4298 } 4299 $results = sql($sql,"getAll",DB_FETCHMODE_ASSOC); 4300 4301 $display = ($amp_conf['AMPEXTENSIONS'] == "deviceanduser")?'users':'extensions'; 4302 $label = ($amp_conf['AMPEXTENSIONS'] == "deviceanduser")?'User':'Exten'; 4303 foreach ($results as $result) { 4304 $thisdest = $result['busy_dest']; 4305 $thisid = $result['extension']; 4306 $description = sprintf(_("%s: %s (%s)"),$label,$result['name'],$thisid); 4307 $thisurl = 'config.php?display='.$display.'&extdisplay='.urlencode($thisid); 4308 if (($dest === true && $thisdest != '') || $dest = $thisdest) { 4309 $destlist[] = array( 4310 'dest' => $thisdest, 4311 'description' => $description, 4312 'edit_url' => $thisurl, 4313 ); 4314 } 4315 $thisdest = $result['noanswer_dest']; 4316 if (($dest === true && $thisdest != '') || $dest = $thisdest) { 4317 $destlist[] = array( 4318 'dest' => $thisdest, 4319 'description' => $description, 4320 'edit_url' => $thisurl, 4321 ); 4322 } 4323 $thisdest = $result['chanunavail_dest']; 4324 if (($dest === true && $thisdest != '') || $dest = $thisdest) { 4325 $destlist[] = array( 4326 'dest' => $thisdest, 4327 'description' => $description, 4328 'edit_url' => $thisurl, 4329 ); 4330 } 4331 } 4332 4292 4333 return $destlist; 4293 4334 } … … 4528 4569 $pinless=$astman->database_get("AMPUSER",$extension."/pinless"); 4529 4570 $results['pinless'] = (trim($pinless) == 'NOPASSWD') ? 'enabled' : 'disabled'; 4571 4572 $results['ringtimer'] = (int) $astman->database_get("AMPUSER",$extension."/ringtimer"); 4530 4573 } else { 4531 4574 die_freepbx("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]); modules/branches/bootstrap-2.9/queues/functions.inc.php
r10645 r10684 502 502 } 503 503 } 504 // We need to have a hangup here, if call is ended by the caller during Playback it will end in the 505 // h context and do a proper hangup and clean the BLKVM, see #4671 506 $ext->add('ext-queues', 'h', '', new ext_macro('hangupcall')); 504 507 // NODEST will be the queue that this came from, so we will vector though an entry to determine the context the 505 508 // agent should be delivered to. All queue calls come here, this decides if the should go direct to from-internal modules/branches/bootstrap-2.9/queues/module.xml
r10097 r10684 2 2 <rawname>queues</rawname> 3 3 <name>Queues</name> 4 <version>2.8.0. 3</version>4 <version>2.8.0.4</version> 5 5 <publisher>FreePBX</publisher> 6 6 <license>GPLv2+</license> … … 11 11 </description> 12 12 <changelog> 13 *2.8.0.4* #4671 13 14 *2.8.0.3* localization updates 14 15 *2.8.0.2* #4327 … … 65 66 <queues needsenginedb="yes">Queues</queues> 66 67 </menuitems> 67 <location>release/2.8/queues-2.8.0. 3.tgz</location>68 <md5sum> 28f889b3a8cc68050509038dc5190d31</md5sum>68 <location>release/2.8/queues-2.8.0.4.tgz</location> 69 <md5sum>9219bd5a354a33cf1442a26f0e73d748</md5sum> 69 70 </module> modules/branches/bootstrap-2.9/ringgroups/functions.inc.php
r10637 r10684 197 197 $ext->add($contextname, $grpnum, 'nodest', new ext_noop('SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST}')); 198 198 } 199 // We need to have a hangup here, if call is ended by the caller during Playback it will end in the 200 // h context and do a proper hangup and clean the BLKVM, see #4671 201 $ext->add($contextname, 'h', '', new ext_macro('hangupcall')); 199 202 /* 200 203 ASTDB Settings: modules/branches/bootstrap-2.9/ringgroups/module.xml
r10283 r10684 2 2 <rawname>ringgroups</rawname> 3 3 <name>Ring Groups</name> 4 <version>2.8.0. 2</version>4 <version>2.8.0.3</version> 5 5 <publisher>FreePBX</publisher> 6 6 <license>GPLv2+</license> … … 11 11 </description> 12 12 <changelog> 13 *2.8.0.3* #4671 13 14 *2.8.0.2* #4484 14 15 *2.8.0.1* #4422 … … 43 44 <ringgroups>Ring Groups</ringgroups> 44 45 </menuitems> 45 <location>release/2.8/ringgroups-2.8.0. 2.tgz</location>46 <md5sum> 283f79fa6c8810d38282dbb3477f6a86</md5sum>46 <location>release/2.8/ringgroups-2.8.0.3.tgz</location> 47 <md5sum>a4d209b370c71b47728ad50c9e29707b</md5sum> 47 48 </module>
