Changeset 5727

Show
Ignore:
Timestamp:
03/10/08 20:03:28 (4 years ago)
Author:
p_lindheimer
Message:

#2731 fix press 0 for operator in directory

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.4/infoservices/functions.inc.php

    r4610 r5727  
    3333  global $db; 
    3434 
     35  $oxtn = $db->getOne("SELECT value from globals where variable='OPERATOR_XTN'"); //this needs to be here! 
     36 
    3537  $id = "app-directory"; // The context to be included. This must be unique. 
    3638 
     
    4042  $ext->add($id, $c, '', new ext_answer('')); 
    4143  $ext->add($id, $c, '', new ext_wait('1')); // $cmd,1,Wait(1) 
    42   $ext->add($id, $c, '', new ext_agi('directory,${DIR-CONTEXT},from-did-direct,${DIRECTORY:0:1}${DIRECTORY_OPTS}'.(!empty($oxtn) ? 'o' : '') )); // AGI 
     44  $ext->add($id, $c, '', new ext_agi('directory,${DIR-CONTEXT},from-did-direct,${DIRECTORY:0:1}${DIRECTORY_OPTS}'.($oxtn != '' ? 'o' : '') )); 
    4345  $ext->add($id, $c, '', new ext_playback('vm-goodbye')); // $cmd,n,Playback(vm-goodbye) 
    4446  $ext->add($id, $c, '', new ext_hangup('')); // hangup 
    45   $oxtn = $db->getOne("SELECT value from globals where variable='OPERATOR_XTN'"); 
    4647  if ($oxtn != '') { 
    4748    $ext->add($id, 'o', '', new ext_goto('from-internal,${OPERATOR_XTN},1'));  
  • modules/branches/2.4/infoservices/module.xml

    r5411 r5727  
    22  <rawname>infoservices</rawname> 
    33  <name>Info Services</name> 
    4   <version>2.4.0</version> 
     4  <version>2.4.0.1</version> 
    55  <candisable>no</candisable> 
    66  <canuninstall>no</canuninstall> 
     
    99  <description>Provides a number of applications accessable by feature codes: company directory, call trace (last call information), echo test, speaking clock, and speak current extension number.</description> 
    1010  <changelog> 
     11    *2.4.0.1* #2731 fix press 0 for operator in directory 
    1112    *2.4.0* bumped for 2.4 
    1213    *1.3.5.2* changed categories