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

Freeswitch SVN anthm at freeswitch.org
Thu Sep 7 17:51:10 EDT 2006


Author: anthm
Date: Thu Sep  7 17:51:10 2006
New Revision: 2562

Modified:
   freeswitch/trunk/src/mod/languages/mod_php/mod_php.c

Log:
update

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	Thu Sep  7 17:51:10 2006
@@ -235,8 +235,6 @@
 
 static void freeswitch_request_ctor(switch_php_obj_t *request_context TSRMLS_DC)
 {
-/*	ast_register_string_constant("JELLO", "FISH"); */
-
 	zend_error_cb = freeswitch_error_handler;
 
 	SG(request_info).argc = request_context->argc;
@@ -278,8 +276,7 @@
 	uint32_t len = strlen((char *) data) + ulen + 2;
 	char *mydata = switch_core_session_alloc(session, len);
 
-	switch_copy_string(mydata, uuid, len);
-	snprintf(mydata + ulen, len - ulen, " %s", data);
+	snprintf(mydata, len, "-q %s %s", data, uuid);
 	
 	TSRMLS_FETCH();
 



More information about the Freeswitch-svn mailing list