From fe181dc321cb27e99244081c4319bbf52227e04e Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 9 Dec 2008 08:00:40 +0000 Subject: FreeSWITCH add global config to recording_js --- packages/freeswitch/freeswitch.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc index d9d6b998..c0b9ee29 100644 --- a/packages/freeswitch/freeswitch.inc +++ b/packages/freeswitch/freeswitch.inc @@ -142,8 +142,7 @@ function event_socket_request($fp, $cmd) function event_socket_request_cmd($cmd) { - global $config; - + global $config; $password = $config['installedpackages']['freeswitchsettings']['config'][0]['event_socket_password']; $port = $config['installedpackages']['freeswitchsettings']['config'][0]['event_socket_port']; $host = $config['interfaces']['lan']['ipaddr']; @@ -159,7 +158,8 @@ function event_socket_request_cmd($cmd) function recording_js() { - + + global $config; $admin_pin = $config['installedpackages']['freeswitchsettings']['config'][0]['admin_pin']; $fout = fopen("/usr/local/freeswitch/scripts/recordings.js","w"); -- cgit v1.2.3