#!/usr/local/bin/php -q * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ $debug = FALSE; define("LCR_ROUTING_FILE", "/etc/asterisk/lcr/tsblcr.routing"); define("LCR_SIP_CONF", "/etc/asterisk/sip.conf"); define("OPTIONS_INCOMING", "t"); # t: Calltransfer define("OPTIONS_OUTGOING", "TW"); # T: Calltransfer, W: allow to record define("DIALTIMEOUT", "120"); define("CONFIGFILE_PATH", "/etc/asterisk/"); $CHANNELS["sip"] = "SIP"; $CHANNELS["iax"] = "IAX2"; $CHANNELS["capi"] = "CAPI"; $CHANNELS["isdn"] = "mISDN"; $CHANNELS["fx"] = "Zap"; $CHANNELS["sccp"] = "SCCP"; $CHANNELS["unistim"] = "USTM"; $CHANNELS["disa"] = "mISDN"; include("/var/lib/asterisk/config/main.php"); list ($VARS, $all_vars) = read_vars("/etc/config.d/asterisk"); writeConfig("Extensions"); writeConfig("Unistim"); writeConfig("Manager"); writeConfig("Skinny"); writeConfig("Misdn"); writeConfig("Misdn-init"); writeConfig("Iax"); writeConfig("Sip"); writeConfig("Rtp"); writeConfig("Capi"); include("/var/lib/asterisk/config/writePanel.php"); include("/var/lib/asterisk/config/phonebook.php"); ?>