Changeset 9651
- Timestamp:
- 05/19/10 01:18:29 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/recordings/includes/bootstrap.php
r7318 r9651 114 114 if ($fileCount>$SETTINGS_MAX_FILES) { 115 115 $_SESSION['ari_error'] 116 .= _("To many files in $msg_path Not all files processed") . "<br>";116 .= sprintf(_("Too many files in %s. Not all files processed"),$msg_path) . "<br>"; 117 117 return; 118 118 } … … 123 123 if ($dirCount>10) { 124 124 $_SESSION['ari_error'] 125 .= sprintf(_("To many directories in %sNot all files processed"),$msg_path) . "<br>";125 .= sprintf(_("Too many directories in %s. Not all files processed"),$msg_path) . "<br>"; 126 126 return; 127 127 } … … 309 309 setARIRoot(); 310 310 311 include_once("./includes/common.php"); 311 312 include_once("./includes/main.conf.php"); 312 313 include_once("./version.php"); freepbx/trunk/amp_conf/htdocs/recordings/includes/main.conf.php
r9474 r9651 15 15 $AMPORTAL_CONF_FILE = "/etc/amportal.conf"; 16 16 17 $amp_conf = parse_amportal_conf($AMPORTAL_CONF_FILE); 17 18 # 18 19 # Host for Asterisk Manager Interface … … 130 131 # voicemail config. 131 132 # 132 $ASTERISK_VOICEMAIL_CONF = "/etc/asterisk/voicemail.conf";133 $ASTERISK_VOICEMAIL_CONF = $amp_conf["ASTETCDIR"]."/voicemail.conf"; 133 134 134 135 # … … 142 143 # Use semi-colon for multiple paths 143 144 # 144 $ASTERISK_VOICEMAIL_PATH = "/var/spool/asterisk/voicemail"; 145 146 $ASTERISK_VOICEMAIL_PATH = $amp_conf["ASTSPOOLDIR"]."/voicemail"; 145 147 146 148 # … … 165 167 # Location of asterisk call monitor recordings on server 166 168 # 167 $ASTERISK_CALLMONITOR_PATH = "/var/spool/asterisk/monitor";169 $ASTERISK_CALLMONITOR_PATH = $amp_conf["ASTSPOOLDIR"]."/monitor"; 168 170 169 171 # … … 260 262 $ASTERISK_PROTOCOLS = array(); 261 263 $ASTERISK_PROTOCOLS['iax']['table'] = "iax"; 262 $ASTERISK_PROTOCOLS['iax']['config_files'] = "/etc/asterisk/iax.conf;/etc/asterisk/iax_additional.conf";264 $ASTERISK_PROTOCOLS['iax']['config_files'] = $amp_conf["ASTETCDIR"]."/iax.conf;".$amp_conf["ASTETCDIR"]."/iax_additional.conf"; 263 265 $ASTERISK_PROTOCOLS['sip']['table'] = "sip"; 264 $ASTERISK_PROTOCOLS['sip']['config_files'] = "/etc/asterisk/sip.conf;/etc/asterisk/sip_additional.conf";266 $ASTERISK_PROTOCOLS['sip']['config_files'] = $amp_conf["ASTETCDIR"]."/sip.conf;".$amp_conf["ASTETCDIR"]."/sip_additional.conf"; 265 267 $ASTERISK_PROTOCOLS['zap']['table'] = "zap"; 266 $ASTERISK_PROTOCOLS['zap']['config_files'] = "/etc/asterisk/zapata.conf;/etc/asterisk/zapata_additional.conf;/etc/asterisk/chan_dahdi.conf;/etc/asterisk/chan_dahdi_additional.conf"; 267 268 $ASTERISK_PROTOCOLS['zap']['config_files'] = $amp_conf["ASTETCDIR"]."/zapata.conf;".$amp_conf["ASTETCDIR"]."/zapata_additional.conf;".$amp_conf["ASTETCDIR"]."/chan_dahdi.conf;".$amp_conf["ASTETCDIR"]."/chan_dahdi_additional.conf"; 268 269 # Settings for Follow-Me Select Boxes in seconds 269 270 #
