[Freeswitch-svn] [commit] r2639 - freeswitch/trunk/src/mod/languages/mod_php

Freeswitch SVN docelmo at freeswitch.org
Mon Sep 11 08:06:28 EDT 2006


Author: docelmo
Date: Mon Sep 11 08:06:27 2006
New Revision: 2639

Modified:
   freeswitch/trunk/src/mod/languages/mod_php/apptest.php
   freeswitch/trunk/src/mod/languages/mod_php/classFreeswitch.php
   freeswitch/trunk/src/mod/languages/mod_php/mod_php.c

Log:
Yet another fix. PHP now doesnt crash :)

Modified: freeswitch/trunk/src/mod/languages/mod_php/apptest.php
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_php/apptest.php	(original)
+++ freeswitch/trunk/src/mod/languages/mod_php/apptest.php	Mon Sep 11 08:06:27 2006
@@ -8,12 +8,10 @@
 */
 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_play_file("/ram/sr8k.wav");
+//$fs->fs_play_file("/ram/sr8k.wav");
 
 ?>

Modified: freeswitch/trunk/src/mod/languages/mod_php/classFreeswitch.php
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_php/classFreeswitch.php	(original)
+++ freeswitch/trunk/src/mod/languages/mod_php/classFreeswitch.php	Mon Sep 11 08:06:27 2006
@@ -35,7 +35,7 @@
 class fs_class_api {
 	Private $uuid;
 
-    	function fs_class_api() {
+    	function fs_class_api($uuid) {
 		$this->uuid = $uuid;
 	
 	}

Modified: freeswitch/trunk/src/mod/languages/mod_php/mod_php.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_php/mod_php.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_php/mod_php.c	Mon Sep 11 08:06:27 2006
@@ -241,9 +241,10 @@
 	// Clean up after PHP and such
         php_embed_shutdown(tsrm_ls);
 
-	// Return back to the Dialplan
-        return;
 
+
+	// Return back to the Dialplan
+        
 // Buh bye now!
 }
 
@@ -288,18 +289,19 @@
 }
 
 /*
-  Called when the system shuts down
+  //Called when the system shuts down
   SWITCH_MOD_DECLARE(switch_status) switch_module_shutdown(void)
   {
   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)
   {
   return SWITCH_STATUS_SUCCESS;
   }
-*/
 
+
+*/



More information about the Freeswitch-svn mailing list