From: Chris Rienzo Date: Wed, 19 Sep 2018 19:36:03 +0000 (-0400) Subject: FS-11397 [mod_rayo] add xmlns to exec to make adhearsion's life easier. X-Git-Tag: v1.8.2~1^2~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d9d763d2a8e8d832a4979522a238081f8666b5fb;p=thirdparty%2Ffreeswitch.git FS-11397 [mod_rayo] add xmlns to exec to make adhearsion's life easier. --- diff --git a/src/mod/event_handlers/mod_rayo/mod_rayo.c b/src/mod/event_handlers/mod_rayo/mod_rayo.c index d1bdd77896..92699ca843 100644 --- a/src/mod/event_handlers/mod_rayo/mod_rayo.c +++ b/src/mod/event_handlers/mod_rayo/mod_rayo.c @@ -2989,6 +2989,7 @@ static void *SWITCH_THREAD_FUNC rayo_exec_thread(switch_thread_t *thread, void * switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "BGAPI EXEC RESULT: %s\n", (char *)stream.data); response = iks_new_iq_result(etdata->node); api_result = iks_insert(response, "response"); + iks_insert_attrib(api_result, "xmlns", RAYO_NS); iks_insert_attrib(api_result, "response", zstr((char *)stream.data) ? "" : (char *)stream.data); }