Changeset 13778

Show
Ignore:
Timestamp:
03/07/12 16:56:16 (1 year ago)
Author:
phwhite
Message:

Fixed #5648

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • contributed_modules/modules/texttospeech/README

    r13763 r13778  
    33############################################################################ 
    44 
    5 Original Author: _xo_ - Xavier Ourciere xourciere[at]propolys[dot]com 
    6 Original Release: 2006-07-06 
    7  
    8 Current Modder: JakFrost 
    9  
    10 Discussion Thread: http://www.freepbx.org/forum/freepbx/development/texttospeech-module-updated-need-a-little-help-and-advice 
    11  
    12 Original Ticket: http://www.freepbx.org/trac/ticket/1012 
    13  
    14 Contributed Modules: http://www.freepbx.org/support/documentation/module-documentation/third-party-unsupported-modules 
    15 Direct Mirror: http://mirror.freepbx.org/modules/release/contributed_modules/ 
     5Original Author: _xo_ - Xavier Ourciere (Orig Release: 2006-07-06) 
     6Previous Modder: JakFrost (Last Updated on 2009-11-25, v1.3.1.3) 
     7 
     8Current Maintainer: Paul White (phwhite <at> gmail <dot> com) 
     9 
     10Contributed Modules Documentation: 
     11    http://www.freepbx.org/support/documentation/module-documentation/third-party-unsupported-modules 
     12 
     13Contributed Modules Direct Mirror: 
     14    http://mirror.freepbx.org/modules/release/contributed_modules/ 
    1615 
    1716============================================================================ 
     
    387386 
    388387---------------------------------------------------------------------------- 
     3881.3.1.4 - 2012-03-02 - Paul White [phwhite <at> gmail <dot> com] 
     389---------------------------------------------------------------------------- 
     390 
     391- Fixed #5648: When using a Text-To-Speech destination in aother module such 
     392  as an IVR, FreePBX notices would be created complaining that the  
     393  destinations used were invalid. 
     394 
     395 
     396 
     397---------------------------------------------------------------------------- 
    3893981.3.1.3 - 2009-11-25 - JakFrost 
    390399---------------------------------------------------------------------------- 
  • contributed_modules/modules/texttospeech/functions.inc.php

    r13763 r13778  
    1212$debug = false; 
    1313 
     14// Asterisk Context Prefix 
     15$context_prefix = 'ext-texttospeech-'; 
     16 
    1417// Asterisk Lib Folder Get 
    1518$astvarlib_path = $asterisk_conf['astvarlibdir']; 
     
    3033// Destinations Array Return 
    3134function texttospeech_destinations() { 
    32  
    33     $context_prefix = 'ext-texttospeech-'; 
    34  
     35  global $context_prefix; 
    3536    foreach( texttospeech_list() as $row ){ 
    3637      $destinations[] = array( 'destination' => $context_prefix . $row['id'] . ',s,1', 'description' => $row['name'] ); 
     
    4344function texttospeech_get_config( $pbx ) { 
    4445 
     46  global $context_prefix; 
    4547  global $ext; 
    4648   
     
    5254 
    5355    case "asterisk": 
    54  
    55       $context_prefix = 'ext-texttospeech-'; 
    56  
    5756      foreach( texttospeech_list() as $entry ) { 
    5857       
     
    210209} 
    211210 
    212  
     211// Get Destination 
     212function texttospeech_getdest( $id ) { 
     213  global $context_prefix; 
     214 
     215  return array($context_prefix.$id.',s,1'); 
     216
     217 
     218// Get Destination Info 
     219function texttospeech_getdestinfo( $dest ) { 
     220  global $context_prefix; 
     221 
     222  if (substr(trim($dest),0,strlen($context_prefix)) == $context_prefix) { 
     223    $id = explode(',', $dest); 
     224    $id = substr($id[0], 17); 
     225 
     226    $thisid = texttospeech_get($id); 
     227    if (empty($thisid)) { 
     228      return array(); 
     229    } 
     230    else { 
     231      return array('description' => sprintf(_("TTS: %s"), $thisid['name']), 
     232        'edit_url' => 'config.php?display=texttospeech&type=setup&id='.urlencode($id)); 
     233    } 
     234  } 
     235  else { 
     236    return false; 
     237  } 
     238
    213239 
    214240// Get 
  • contributed_modules/modules/texttospeech/module.xml

    r13764 r13778  
    22  <rawname>texttospeech</rawname> 
    33  <name>Text To Speech</name> 
    4   <version>1.3.1.3</version> 
     4  <version>1.3.1.4</version> 
    55  <description> 
    66    <p>Text To Speech synthesis using Swift (Cepstral), Flite, Text2Wave (Festival) or eSpeak voice engines that are already installed on the system.  (All voice synthesis engine installation instructions in the README)</p> 
     
    1515    <texttospeech>Text To Speech</texttospeech> 
    1616  </menuitems> 
    17   <location>contributed_modules/release/texttospeech-1.3.1.3.tgz</location> 
    18   <info>http://www.freepbx.org/trac/ticket/1012</info> 
     17  <location>contributed_modules/release/texttospeech-1.3.1.4.tgz</location> 
     18  <info></info> 
    1919  <changelog> 
     20    *1.3.1.4 - 2012-03-02 - Paul White (phwhite [at] gmail [dot] com)* 
     21 
     22      - Fixed #5648: When using a Text-To-Speech destination in aother module such 
     23          as an IVR, FreePBX notices would be created complaining that the  
     24          destinations used were invalid. 
     25 
    2026    *1.3.1.3 - 2009-11-25 - JakFrost* 
    2127 
     
    120126      Limit:  Text stored doubly in text file and database record with 250-byte limit. 
    121127  </changelog> 
    122 <md5sum>d57233ff9719f0517de1208807bca50e</md5sum> 
     128 <md5sum>b86c820e5d0b67eaf134424e8b2178cc</md5sum> 
    123129</module>