<?
/**
 * VoiceOne frontend configuration file
 * @package voiceone
 * @subpackage  globals
 */

/** 
 * Username for voiceone_webservices
 * 
 * $soapUserName and $soapPassword should match $htaccessUsername and $htaccessPassword  in "/voiceone_webservices/config/cfg.php" file
 * @see $htaccessUsername
 * @see $htaccessPassword
 * @see $soapWsdl
 * @global string $soapUserName 
 */
$soapUserName = "root";

/** 
 * Password for voiceone_webservices
 *
 * $soapUserName and $soapPassword should match $htaccessUsername and $htaccessPassword  in /voiceone_webservices/config/cfg.php file
 * @see $soapWsdl
 * @global string $soapPassword
 */
$soapPassword = "voiceone";

/** 
 * Hostname for voiceone_webservices
 *
 * Hostname for voiceone_webservices
 * @see $soapWsdl
 * @global string $soapHostname
 */
$soapHostname = "localhost";

/** 
 * Relative path of voiceone_webservices
 *
 * Used in $soapWsdl
 * Example: "/voiceone_webservices/"
 * @see $soapWsdl
 * @global string $soapAddress
 */
$soapAddress  = "/voiceone_webservices/";

/** 
 * URL of voiceone_webservices
 *
 * URL to access voiceone_webservices
 * @global string $soapWsdl
 */
$soapWsdl = "http://$soapUserName:$soapPassword@$soapHostname".$soapAddress."server.php?wsdl";

/** 
 * Default Language
 *
 * Check available languages in  "/voiceone/admin/public/lang/"
 * Currently supported languages: "de","en","it". Visit the documentation on the website to see how to translate voiceone into your own language
 * @link http://www.voiceone.it 
 * @global string $cwLanguage
 */
$cwLanguage="en"; 

/** 
 * VoiceOne Software Version
 *
 * @global string $cw_version
 */
$cw_version="0.4.0pre4";

/** 
 * VoiceOne Plugin Version
 *
 * Plugin version number matches the voiceone software version when changes have been made to the plugin system
 * Plugin version only changes, if the plugin structure changes. 
 * So if changes are made to the plugin structure, then the plugin version should match the voiceone version of that release
 * The plugin version number is stored in the plugin, together with the Voiceone Version the plugin was build with
 * This allows to ensure which plugins work with which version of voiceone.
 * 
 * @global string $cw_plugin_version
 */
$cw_plugin_version="0.4pre3";

/** 
 * Physical path to the admin/ folder for voiceone
 *
 * Example: "/var/www/html/voiceone/admin/"
 * @global string $absBasePath
 */
$absBasePath=substr(dirname(__FILE__),0,strlen(dirname(__FILE__))-6);

/** 
 * Relative path to the admin/ folder for voiceone: 
 *
 * Example: "/voiceone/admin/"
 * @global string $relBasePath
 */
$relBasePath="/".basename(substr(dirname(__FILE__),0,strlen(dirname(__FILE__))-12))."/admin/";

/** 
 * Enable soapWrapper for voiceone_webservice
 * 
 * This permit the best performance. If this is set, also $webserviceAbsPath must be set.
 * @see webserviceAbsPath
 * @global string $soapWrapper
 */
$soapWrapper=true;

/** 
 * Foldername of voiceone
 *
 * Example: "voiceone"
 * @global string $voiceoneDirName
 */
$voiceoneDirName="voiceone";

/** 
 * Foldername of voiceone_webservices
 *
 * Example: "voiceone_webservices"
 * @global string $voiceoneWSDirName
 */
$voiceoneWSDirName="voiceone_webservices";

/** 
 * Physical path of voiceone_webservices
 *
 * Example: "/var/www/html/voiceone_webservices/" or realpath($absBasePath."../../".$voiceoneWSDirName."/")."/"
 * Need to be set, if $soapWrapper=true
 * @see $soapWrapper
 * @global string $webserviceAbsPath
 */
$webserviceAbsPath=realpath($absBasePath."../../".$voiceoneWSDirName."/")."/";

/** 
 * IVR upload path
 * @global string $ivrPath
 */
$ivrPath = $absBasePath."../sandbox/";

/** 
 * IVR Prefix 
 * @global string $ivrPrefix
 */
$ivrPrefix = "cwivr_";

/** 
 * Plugin package absolute path
 * @global string $pluginPath
 * @todo find a way to get access to the URL for download of plugins based on $absPluginPath
 * @see writePluginPackage() in functions.php
 */
$absPluginPath = $absBasePath."../sandbox/plugins/";

/** 
 * Path to script that converts and moves recordings via IVR menu
 *
 * The script referenced must be added to /etc/sudoers
 * @global string $ivrMoveFile
 */
$ivrMoveFile = "sudo ".$absBasePath."public/script/convert_and_move.sh";

?>
