mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
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:
parent
dd704bca72
commit
1688a62e6c
@ -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");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user