Ticket #20084: asterisknow.macport.paths.diff
File asterisknow.macport.paths.diff, 6.9 KB (added by stefan.van.der.eijk@…, 15 years ago) |
---|
-
scripts/detectdahdi.sh
old new 2 2 3 3 # script to detect whether zaptel/dahdi was installed & generate an include file for GUI 4 4 5 OUTPUTFILE="/ etc/asterisk/dahdi_guiread.conf"5 OUTPUTFILE="/opt/local/etc/asterisk/dahdi_guiread.conf" 6 6 7 7 echo "" > ${OUTPUTFILE} 8 8 echo "[general]" >> ${OUTPUTFILE} -
scripts/dldsoundpack
old new 7 7 SOUNDS_EXTRA_VERSION=1.4.7 8 8 SOUNDS_LANGUAGE="en" 9 9 SOUND_FORMATS="ulaw alaw gsm g722 g729" 10 SOUND_BASE="/ var/lib/asterisk/sounds"10 SOUND_BASE="/opt/local/var/lib/asterisk/sounds" 11 11 SOUND_LOC="$SOUND_BASE" 12 12 DO_EXTRA="yes" 13 13 … … 82 82 echo "=${SOUNDS_EXTRA_VERSION}" >>${SOUND_LOC}/cf-version.txt 83 83 84 84 85 echo "DoneDoneDone" >> / var/lib/asterisk/static-http/config/sysinfo_output.html85 echo "DoneDoneDone" >> /opt/local/var/lib/asterisk/static-http/config/sysinfo_output.html 86 86 sync; sync; sync 87 87 -
scripts/editzap.sh
old new 8 8 # Quick script for applying zaptel settings from the GUI. 9 9 10 10 if [ -e /dev/zap ]; then 11 ZAPCONF="/ etc/zaptel.conf"11 ZAPCONF="/opt/local/etc/zaptel.conf" 12 12 fi 13 13 14 14 if [ -e /dev/dahdi ]; then 15 ZAPCONF="/ etc/dahdi/system.conf"15 ZAPCONF="/opt/local/etc/dahdi/system.conf" 16 16 fi 17 17 18 FILENAME="/ etc/asterisk/applyzap.conf"18 FILENAME="/opt/local/etc/asterisk/applyzap.conf" 19 19 grep -v '\;' ${FILENAME} | sed 's/\[general\]//g' > ${ZAPCONF} 20 20 -
scripts/listfiles
old new 1 1 #!/bin/sh 2 SYSINFO_OUTPUT="/ var/lib/asterisk/static-http/config/sysinfo_output.html"2 SYSINFO_OUTPUT="/opt/local/var/lib/asterisk/static-http/config/sysinfo_output.html" 3 3 4 4 #/bin/echo "<div id=list_files>" > $SYSINFO_OUTPUT 5 5 /bin/mkdir -p $1 -
scripts/mastercsvexists
old new 1 1 #!/bin/bash 2 2 3 MASTERCSV="/ var/log/asterisk/cdr-csv/Master.csv"4 STATICHTTP="/ var/lib/asterisk/static-http/"3 MASTERCSV="/opt/local/var/log/asterisk/cdr-csv/Master.csv" 4 STATICHTTP="/opt/local/var/lib/asterisk/static-http/" 5 5 6 6 if [ `whoami` != "root" ]; then 7 7 echo "Error: You must be root to run this script." 8 8 exit 1 9 9 fi 10 10 11 if [ -f / var/log/asterisk/cdr-csv/Master.csv ]; then11 if [ -f /opt/local/var/log/asterisk/cdr-csv/Master.csv ]; then 12 12 if [ ! -f $STATICHTTP`basename $MASTERCSV` ]; then 13 ln -s $MASTERCSV / var/lib/asterisk/static-http/config/`basename $MASTERCSV`13 ln -s $MASTERCSV /opt/local/var/lib/asterisk/static-http/config/`basename $MASTERCSV` 14 14 fi 15 15 fi 16 16 -
scripts/registerg729.sh
old new 6 6 #################################################################### 7 7 8 8 # script for generating regtool compatible tab delimited file from a gui config file. 9 INPUTFILE="/ etc/asterisk/g729reginfo.conf"10 OUTPUTFILE="/ etc/asterisk/g729reginfo_tabs.conf"9 INPUTFILE="/opt/local/etc/asterisk/g729reginfo.conf" 10 OUTPUTFILE="/opt/local/etc/asterisk/g729reginfo_tabs.conf" 11 11 rm ${OUTPUTFILE} 12 12 13 13 TABBEDVALUES=`grep -v '\;' ${INPUTFILE} | sed 's/\[general\]//g' | sed 's/ = /\\t/g'` -
scripts/takebackup
old new 1 1 #!/bin/sh 2 / bin/tar -cf $1/etc/asterisk /etc/localtime2 /usr/bin/tar -cf $1 /opt/local/etc/asterisk /etc/localtime 3 3 if [ "$2" = "YES" ]; then 4 4 SF=`echo "$1" | cut -d '.' -f 1` 5 / bin/tar -cf "${SF}"_sounds.tar /var/lib/asterisk/sounds/voicemail/var/lib/asterisk/sounds/record5 /usr/bin/tar -cf "${SF}"_sounds.tar /opt/local/var/lib/asterisk/sounds/voicemail /opt/local/var/lib/asterisk/sounds/record 6 6 fi -
config/js/index.js
old new 151 151 pu = true; 152 152 } 153 153 if( !http_conf.post_mappings.hasOwnProperty('uploads') ){ 154 u.new_action('append', 'post_mappings' , 'uploads', '/ var/lib/asterisk/sounds/imageupdate' ) ;154 u.new_action('append', 'post_mappings' , 'uploads', '/opt/local/var/lib/asterisk/sounds/imageupdate' ) ; 155 155 pu = true; 156 156 } 157 157 if( !http_conf.post_mappings.hasOwnProperty('backups') ){ … … 251 251 // onLogInFunctions.setGUI_Paths() 252 252 var ASTERISK_CONF = context2json({ filename:'asterisk.conf' , context : 'directories' , usf:1 }); 253 253 if( ASTERISK_CONF === null ){ ASTERISK_CONF = new ASTGUI.customObject ; } // if context 'directories' not found in asterisk.conf 254 sessionData.directories.asteriskConfig = ASTERISK_CONF.getProperty('astetcdir') || '/ etc/asterisk/' ;255 sessionData.directories.astvarlibdir = ASTERISK_CONF.getProperty('astvarlibdir') || '/ var/lib/asterisk/' ;256 sessionData.directories.AGIBIN = ASTERISK_CONF.getProperty('astagidir') || '/ var/lib/asterisk/agi-bin/' ;257 sessionData.directories.astspooldir = ASTERISK_CONF.getProperty('astspooldir') || '/ var/spool/asterisk/' ;254 sessionData.directories.asteriskConfig = ASTERISK_CONF.getProperty('astetcdir') || '/opt/local/etc/asterisk/' ; 255 sessionData.directories.astvarlibdir = ASTERISK_CONF.getProperty('astvarlibdir') || '/opt/local/var/lib/asterisk/' ; 256 sessionData.directories.AGIBIN = ASTERISK_CONF.getProperty('astagidir') || '/opt/local/var/lib/asterisk/agi-bin/' ; 257 sessionData.directories.astspooldir = ASTERISK_CONF.getProperty('astspooldir') || '/opt/local/var/spool/asterisk/' ; 258 258 259 259 if( !sessionData.directories.asteriskConfig.endsWith('/') ){ sessionData.directories.asteriskConfig = sessionData.directories.asteriskConfig + '/' ; } 260 260 if( !sessionData.directories.astvarlibdir.endsWith('/') ){ sessionData.directories.astvarlibdir = sessionData.directories.astvarlibdir + '/' ; } … … 283 283 sessionData.directories.script_detectdahdi = 'sh ' + sessionData.directories.scripts + 'detectdahdi.sh'; 284 284 285 285 sessionData.directories.app_DahdiScan = 'dahdi_scan > ' + sessionData.directories.asteriskConfig + ASTGUI.globals.dahdiScanOutput ; 286 sessionData.directories.app_dahdi_genconf = 'dahdi_genconf'; // generates new / etc/dahdi/system.conf286 sessionData.directories.app_dahdi_genconf = 'dahdi_genconf'; // generates new /opt/local/etc/dahdi/system.conf 287 287 sessionData.directories.app_mISDNscan = 'misdn-init scan' ; 288 288 sessionData.directories.app_flashupdate = 'flashupdate' ; 289 289 }, -
scripts/editmisdn.sh
old new 7 7 8 8 # Quick script for applying misdn settings from the GUI. 9 9 10 MISDNCONF="/ etc/misdn-init.conf"11 MISDNFILE="/ etc/asterisk/applymisdn.conf"10 MISDNCONF="/opt/local/etc/misdn-init.conf" 11 MISDNFILE="/opt/local/etc/asterisk/applymisdn.conf" 12 12 grep -v "\[general\]" ${MISDNFILE} | grep -v "\;" | sed 's/ = /=/g' > ${MISDNCONF}