Changeset 10684

Show
Ignore:
Timestamp:
12/09/10 17:38:47 (2 years ago)
Author:
mbrevda
Message:

re #4566 - merge forward

Files:

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  
    146146            case "http": 
    147147              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'])); 
    149149              else 
    150150                $auth = ''; 
  • modules/branches/bootstrap-2.9/conferences/module.xml

    r10645 r10684  
    4545    <conferences>Conferences</conferences> 
    4646  </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> 
    4949</module> 
  • modules/branches/bootstrap-2.9/core/functions.inc.php

    r10645 r10684  
    12981298          $vm = ((($exten['voicemail'] == "novm") || ($exten['voicemail'] == "disabled") || ($exten['voicemail'] == "")) ? "novm" : $exten['extension']); 
    12991299 
    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)}')); 
    13021301           
    13031302          $dest_args = ','.($exten['noanswer_dest']==''?'0':'1').','.($exten['busy_dest']==''?'0':'1').','.($exten['chanunavail_dest']==''?'0':'1'); 
     
    29312930      $ext->add($mcontext,$exten,'', new ext_macro('user-callerid')); 
    29322931      $ext->add($mcontext,$exten,'', new ext_set("RingGroupMethod", 'none')); 
    2933       $ext->add($mcontext,$exten,'', new ext_set("VMBOX", '${ARG1}')); 
    29342932      $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}:"")}')); 
    29382934      $ext->add($mcontext,$exten,'checkrecord', new ext_macro('record-enable','${EXTTOCALL},IN')); 
    29392935 
     
    29742970        $ext->add($mcontext,$exten,$macrodial, new ext_macro('dial','${RT},${DIAL_OPTIONS},${EXTTOCALL}')); 
    29752971      } 
    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')); 
    29772973      $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')); 
    29802977      $ext->add($mcontext,$exten,'', new ext_set("DIALSTATUS", '${SV_DIALSTATUS}')); 
    29812978 
    29822979      $ext->add($mcontext,$exten,'', new ext_execif('$[("${DIALSTATUS}"="NOANSWER"&${ARG3})|("${DIALSTATUS}"="BUSY"&${ARG4})|("${DIALSTATUS}"="CHANUNAVAIL"&${ARG5})]','MacroExit')); 
    29832980 
    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')); 
    29862983      $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}')); 
    29882985 
    29892986      $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}:"")}')); 
    29912988      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}')); 
    29932990      if ($amp_conf['DIVERSIONHEADER']) $ext->add($mcontext,$exten,'', new ext_set('__DIVERSION_REASON', '')); 
    29942991      $ext->add($mcontext,$exten,'', new ext_return('')); 
    29952992 
    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}:"")}')); 
    29982995      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}')); 
    30002997      if ($amp_conf['DIVERSIONHEADER']) $ext->add($mcontext,$exten,'', new ext_set('__DIVERSION_REASON', '')); 
    30012998      $ext->add($mcontext,$exten,'', new ext_return('')); 
     
    42554252  $results = sql($sql,"getAll",DB_FETCHMODE_ASSOC); 
    42564253 
     4254  $display = ($amp_conf['AMPEXTENSIONS'] == "deviceanduser")?'users':'extensions'; 
    42574255  foreach ($results as $result) { 
    42584256    $thisexten = $result['extension']; 
    42594257    $extenlist[$thisexten]['description'] = _("User Extension: ").$result['name']; 
    42604258    $extenlist[$thisexten]['status'] = 'INUSE'; 
    4261     $display = ($amp_conf['AMPEXTENSIONS'] == "deviceanduser")?'users':'extensions'; 
    42624259    $extenlist[$thisexten]['edit_url'] = "config.php?type=setup&display=$display&extdisplay=".urlencode($thisexten)."&skip=0"; 
    42634260  } 
     
    42674264function core_check_destinations($dest=true) { 
    42684265  global $active_modules; 
     4266  global $amp_conf; 
    42694267 
    42704268  $destlist = array(); 
     
    42724270    return $destlist; 
    42734271  } 
     4272  // Check Inbound Routes 
     4273  // 
    42744274  $sql = "SELECT extension, cidnum, description, destination FROM incoming "; 
    42754275  if ($dest !== true) { 
     
    42904290    ); 
    42914291  } 
     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 
    42924333  return $destlist; 
    42934334} 
     
    45284569    $pinless=$astman->database_get("AMPUSER",$extension."/pinless"); 
    45294570    $results['pinless'] = (trim($pinless) == 'NOPASSWD') ? 'enabled' : 'disabled'; 
     4571 
     4572    $results['ringtimer'] = (int) $astman->database_get("AMPUSER",$extension."/ringtimer"); 
    45304573  } else { 
    45314574    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  
    502502        } 
    503503      } 
     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'));       
    504507      // NODEST will be the queue that this came from, so we will vector though an entry to determine the context the 
    505508      // 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  
    22  <rawname>queues</rawname> 
    33  <name>Queues</name> 
    4   <version>2.8.0.3</version> 
     4  <version>2.8.0.4</version> 
    55  <publisher>FreePBX</publisher> 
    66  <license>GPLv2+</license> 
     
    1111  </description> 
    1212  <changelog> 
     13    *2.8.0.4* #4671 
    1314    *2.8.0.3* localization updates 
    1415    *2.8.0.2* #4327 
     
    6566    <queues needsenginedb="yes">Queues</queues> 
    6667  </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> 
    6970</module> 
  • modules/branches/bootstrap-2.9/ringgroups/functions.inc.php

    r10637 r10684  
    197197          $ext->add($contextname, $grpnum, 'nodest', new ext_noop('SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST}')); 
    198198        } 
     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')); 
    199202        /* 
    200203          ASTDB Settings: 
  • modules/branches/bootstrap-2.9/ringgroups/module.xml

    r10283 r10684  
    22  <rawname>ringgroups</rawname> 
    33  <name>Ring Groups</name> 
    4   <version>2.8.0.2</version> 
     4  <version>2.8.0.3</version> 
    55  <publisher>FreePBX</publisher> 
    66  <license>GPLv2+</license> 
     
    1111  </description> 
    1212  <changelog> 
     13    *2.8.0.3* #4671 
    1314    *2.8.0.2* #4484 
    1415    *2.8.0.1* #4422 
     
    4344    <ringgroups>Ring Groups</ringgroups> 
    4445  </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> 
    4748</module>