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  
    22
    33# script to detect whether zaptel/dahdi was installed & generate an include file for GUI
    44
    5 OUTPUTFILE="/etc/asterisk/dahdi_guiread.conf"
     5OUTPUTFILE="/opt/local/etc/asterisk/dahdi_guiread.conf"
    66
    77echo "" > ${OUTPUTFILE}
    88echo "[general]" >> ${OUTPUTFILE}
  • scripts/dldsoundpack

    old new  
    77SOUNDS_EXTRA_VERSION=1.4.7
    88SOUNDS_LANGUAGE="en"
    99SOUND_FORMATS="ulaw alaw gsm g722 g729"
    10 SOUND_BASE="/var/lib/asterisk/sounds"
     10SOUND_BASE="/opt/local/var/lib/asterisk/sounds"
    1111SOUND_LOC="$SOUND_BASE"
    1212DO_EXTRA="yes"
    1313
     
    8282echo "=${SOUNDS_EXTRA_VERSION}" >>${SOUND_LOC}/cf-version.txt
    8383
    8484
    85 echo "DoneDoneDone" >> /var/lib/asterisk/static-http/config/sysinfo_output.html
     85echo "DoneDoneDone" >> /opt/local/var/lib/asterisk/static-http/config/sysinfo_output.html
    8686sync; sync; sync
    8787
  • scripts/editzap.sh

    old new  
    88# Quick script for applying zaptel settings from the GUI.
    99
    1010if [ -e /dev/zap ]; then
    11         ZAPCONF="/etc/zaptel.conf"
     11        ZAPCONF="/opt/local/etc/zaptel.conf"
    1212fi
    1313
    1414if [ -e /dev/dahdi ]; then
    15         ZAPCONF="/etc/dahdi/system.conf"
     15        ZAPCONF="/opt/local/etc/dahdi/system.conf"
    1616fi
    1717
    18 FILENAME="/etc/asterisk/applyzap.conf"
     18FILENAME="/opt/local/etc/asterisk/applyzap.conf"
    1919grep -v '\;' ${FILENAME} | sed 's/\[general\]//g' > ${ZAPCONF}
    2020
  • scripts/listfiles

    old new  
    11#!/bin/sh
    2 SYSINFO_OUTPUT="/var/lib/asterisk/static-http/config/sysinfo_output.html"
     2SYSINFO_OUTPUT="/opt/local/var/lib/asterisk/static-http/config/sysinfo_output.html"
    33
    44#/bin/echo "<div id=list_files>" > $SYSINFO_OUTPUT
    55/bin/mkdir -p $1
  • scripts/mastercsvexists

    old new  
    11#!/bin/bash
    22
    3 MASTERCSV="/var/log/asterisk/cdr-csv/Master.csv"
    4 STATICHTTP="/var/lib/asterisk/static-http/"
     3MASTERCSV="/opt/local/var/log/asterisk/cdr-csv/Master.csv"
     4STATICHTTP="/opt/local/var/lib/asterisk/static-http/"
    55
    66if [ `whoami` != "root" ]; then
    77        echo "Error: You must be root to run this script."
    88        exit 1
    99fi
    1010
    11 if [ -f /var/log/asterisk/cdr-csv/Master.csv ]; then
     11if [ -f /opt/local/var/log/asterisk/cdr-csv/Master.csv ]; then
    1212        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`
    1414        fi
    1515fi
    1616
  • scripts/registerg729.sh

    old new  
    66####################################################################
    77
    88# 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"
     9INPUTFILE="/opt/local/etc/asterisk/g729reginfo.conf"
     10OUTPUTFILE="/opt/local/etc/asterisk/g729reginfo_tabs.conf"
    1111rm ${OUTPUTFILE}
    1212
    1313TABBEDVALUES=`grep -v '\;' ${INPUTFILE} | sed 's/\[general\]//g' | sed 's/ = /\\t/g'`
  • scripts/takebackup

    old new  
    11#!/bin/sh
    2 /bin/tar -cf $1 /etc/asterisk /etc/localtime
     2/usr/bin/tar -cf $1 /opt/local/etc/asterisk /etc/localtime
    33if [ "$2" = "YES" ]; then
    44        SF=`echo "$1" | cut -d '.' -f 1`
    5         /bin/tar -cf "${SF}"_sounds.tar /var/lib/asterisk/sounds/voicemail /var/lib/asterisk/sounds/record
     5        /usr/bin/tar -cf "${SF}"_sounds.tar /opt/local/var/lib/asterisk/sounds/voicemail /opt/local/var/lib/asterisk/sounds/record
    66fi
  • config/js/index.js

    old new  
    151151                                pu = true;
    152152                        }
    153153                        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' ) ;
    155155                                pu = true;
    156156                        }
    157157                        if( !http_conf.post_mappings.hasOwnProperty('backups') ){
     
    251251                // onLogInFunctions.setGUI_Paths()
    252252                var ASTERISK_CONF = context2json({ filename:'asterisk.conf' , context : 'directories' , usf:1 });
    253253                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/' ;
    258258
    259259                if( !sessionData.directories.asteriskConfig.endsWith('/') ){ sessionData.directories.asteriskConfig = sessionData.directories.asteriskConfig + '/' ; }
    260260                if( !sessionData.directories.astvarlibdir.endsWith('/') ){ sessionData.directories.astvarlibdir = sessionData.directories.astvarlibdir + '/' ; }
     
    283283                sessionData.directories.script_detectdahdi = 'sh ' + sessionData.directories.scripts + 'detectdahdi.sh';
    284284
    285285                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.conf
     286                sessionData.directories.app_dahdi_genconf = 'dahdi_genconf'; // generates new /opt/local/etc/dahdi/system.conf
    287287                sessionData.directories.app_mISDNscan = 'misdn-init scan' ;
    288288                sessionData.directories.app_flashupdate = 'flashupdate' ;
    289289        },
  • scripts/editmisdn.sh

    old new  
    77
    88# Quick script for applying misdn settings from the GUI.
    99
    10 MISDNCONF="/etc/misdn-init.conf"
    11 MISDNFILE="/etc/asterisk/applymisdn.conf"
     10MISDNCONF="/opt/local/etc/misdn-init.conf"
     11MISDNFILE="/opt/local/etc/asterisk/applymisdn.conf"
    1212grep -v "\[general\]" ${MISDNFILE} | grep -v "\;" | sed 's/ = /=/g' > ${MISDNCONF}