]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 7 Sep 2006 21:51:10 +0000 (21:51 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 7 Sep 2006 21:51:10 +0000 (21:51 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2562 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_php/mod_php.c

index 5e0f473d67dbffd346a04915f6a07474ad94099b..1f12ca64afc0c2466fdbd1e31d568976a0e4a7be 100644 (file)
@@ -235,8 +235,6 @@ void freeswitch_error_handler(int type, const char *error_filename, const uint e
 
 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 @@ static void php_function(switch_core_session_t *session, char *data)
        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();