Yet another fix. PHP now doesnt crash :)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2639 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian Fertig 2006-09-11 12:06:27 +00:00
parent dd704bca72
commit 1688a62e6c
3 changed files with 12 additions and 12 deletions

View File

@ -8,12 +8,10 @@
*/ */
require("classFreeswitch.php"); require("classFreeswitch.php");
echo "uuid: $uuid\n"; $fs = new fs_class_api($uuid); // $uuid MUST be there for the class to work.
$fs = new fs_class_api();
$fs->fs_answer(); $fs->fs_answer();
$fs->fs_play_file("/ram/sr8k.wav"); //$fs->fs_play_file("/ram/sr8k.wav");
?> ?>

View File

@ -35,7 +35,7 @@ require("freeswitch.php"); // Required for freeswitch driver to be loaded
class fs_class_api { class fs_class_api {
Private $uuid; Private $uuid;
function fs_class_api() { function fs_class_api($uuid) {
$this->uuid = $uuid; $this->uuid = $uuid;
} }

View File

@ -241,9 +241,10 @@ static void php_function(switch_core_session_t *session, char *data)
// Clean up after PHP and such // Clean up after PHP and such
php_embed_shutdown(tsrm_ls); php_embed_shutdown(tsrm_ls);
// Return back to the Dialplan
return;
// Return back to the Dialplan
// Buh bye now! // Buh bye now!
} }
@ -288,18 +289,19 @@ void*** tsrm_ls = NULL;
} }
/* /*
Called when the system shuts down //Called when the system shuts down
SWITCH_MOD_DECLARE(switch_status) switch_module_shutdown(void) SWITCH_MOD_DECLARE(switch_status) switch_module_shutdown(void)
{ {
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
*/
/*
If it exists, this is called in it's own thread when the module-load completes
//If it exists, this is called in it's own thread when the module-load completes
SWITCH_MOD_DECLARE(switch_status) switch_module_shutdown(void) SWITCH_MOD_DECLARE(switch_status) switch_module_shutdown(void)
{ {
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
*/
*/