|
Revision 6242, 0.7 kB
(checked in by seanmh, 2 years ago)
|
Modified core module code to be more efficient.
Removed disconnect call from post reload script.
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
/* |
|---|
| 3 |
*Name : post_reload.php |
|---|
| 4 |
*Author : Michael Yara |
|---|
| 5 |
*Created : June 27, 2008 |
|---|
| 6 |
*Last Updated : July 28, 2008 |
|---|
| 7 |
*History : 0.2 |
|---|
| 8 |
*Purpose : Script that is called once FreePBX dial plan reload has occurred to reload the iSymphony server. Called via the POST_RELOAD variable in amportal.conf. |
|---|
| 9 |
*Copyright : 2008 HEHE Enterprises, LLC |
|---|
| 10 |
*/ |
|---|
| 11 |
|
|---|
| 12 |
//Build include path for iSymphony library |
|---|
| 13 |
$inc_path = __FILE__; |
|---|
| 14 |
$pos = strrpos($inc_path, "/"); |
|---|
| 15 |
$inc_path = substr($inc_path, 0, $pos) . "/"; |
|---|
| 16 |
|
|---|
| 17 |
//Include iSymphony library |
|---|
| 18 |
require_once($inc_path . "/isymphony-php-library/isymphony.php"); |
|---|
| 19 |
|
|---|
| 20 |
//Connect to iSymphony server and submit a reload command |
|---|
| 21 |
if(iSymphonyConnect()) { |
|---|
| 22 |
reloadISymphonyServer(); |
|---|
| 23 |
} |
|---|
| 24 |
?> |
|---|