From cbd94aac29d9cf73ab354b5b0a7ab6df627c5056 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Sun, 22 Mar 2015 14:40:25 -0400 Subject: [PATCH] FS-7300 [mod_rayo] set iq type to error when prompt component forwards input/output error back to rayo client. --- src/mod/event_handlers/mod_rayo/rayo_prompt_component.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c b/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c index 33042ed19d..8936618e92 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c +++ b/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c @@ -1,6 +1,6 @@ /* * mod_rayo for FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application - * Copyright (C) 2013-2014, Grasshopper + * Copyright (C) 2013-2015, Grasshopper * * Version: MPL 1.1 * @@ -283,6 +283,7 @@ static iks *prompt_component_handle_input_error(struct rayo_actor *prompt, struc iq = PROMPT_COMPONENT(prompt)->iq; iks_insert_attrib(iq, "from", RAYO_JID(prompt->parent)); iks_insert_attrib(iq, "to", RAYO_COMPONENT(prompt)->client_jid); + iks_insert_attrib(iq, "type", "error"); iks_insert_node(iq, iks_copy_within(error, iks_stack(iq))); RAYO_SEND_REPLY(prompt, RAYO_COMPONENT(prompt)->client_jid, iq); @@ -311,6 +312,7 @@ static iks *prompt_component_handle_input_error(struct rayo_actor *prompt, struc iq = PROMPT_COMPONENT(prompt)->iq; iks_insert_attrib(iq, "from", RAYO_JID(prompt->parent)); iks_insert_attrib(iq, "to", RAYO_COMPONENT(prompt)->client_jid); + iks_insert_attrib(iq, "type", "error"); iks_insert_node(iq, iks_copy_within(error, iks_stack(iq))); PROMPT_COMPONENT(prompt)->complete = iks_copy(iq); @@ -352,6 +354,7 @@ static iks *prompt_component_handle_output_error(struct rayo_actor *prompt, stru iq = PROMPT_COMPONENT(prompt)->iq; iks_insert_attrib(iq, "from", RAYO_JID(prompt->parent)); iks_insert_attrib(iq, "to", RAYO_COMPONENT(prompt)->client_jid); + iks_insert_attrib(iq, "type", "error"); iks_insert_node(iq, iks_copy_within(error, iks_stack(iq))); RAYO_SEND_REPLY(prompt, RAYO_COMPONENT(prompt)->client_jid, iq);