#!/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; $lcrRoutingFile = "/etc/asterisk/lcr/tsblcr.routing"; $lcrSipConf = "/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/"); 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("Capi"); writeConfig("Iax"); writeConfig("Sip"); writeConfig("Rtp"); include("/var/lib/asterisk/config/phonebook.php"); ?>