]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_rayo: Punchblock now supports content-type on input matches
authorBen Langfeld <ben@langfeld.me>
Fri, 21 Jun 2013 17:46:47 +0000 (13:46 -0400)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Sat, 22 Jun 2013 18:27:28 +0000 (14:27 -0400)
Fix applied to Punchblock here: https://github.com/adhearsion/punchblock/commit/cef5198e80b60e19fc949b21f6e0dc438cecc5df

src/mod/event_handlers/mod_rayo/mod_rayo.h
src/mod/event_handlers/mod_rayo/rayo_input_component.c

index fb197ef915a72fe08e4079e7dbb649a395c15f40..ec50b78b698cafc91637bed9f43b81a704b20418 100644 (file)
@@ -45,7 +45,6 @@
 
 /* these are support punchblock.. undefine once punchblock is fixed */
 #define RAYO_UUID_IN_REF_URI
-#define RAYO_INPUT_COMPLETE_WITHOUT_CONTENT_TYPE
 
 struct rayo_actor;
 struct rayo_call;
index acf2ce4a2f2fe2bc2162db03623a38f1868d4e05..16e3859ed651c034e30b38af7e26bb7e1e0787b3 100644 (file)
@@ -169,15 +169,11 @@ static int digit_mask_set_from_digits(int digit_mask, const char *digits)
  */
 static void send_match_event(struct rayo_component *component, iks *result)
 {
-#ifdef RAYO_INPUT_COMPLETE_WITHOUT_CONTENT_TYPE
-       rayo_component_send_complete_with_metadata(RAYO_COMPONENT(component), INPUT_MATCH, result, 0);
-#else
        iks *event = rayo_component_create_complete_event(RAYO_COMPONENT(component), INPUT_MATCH);
        iks *match = iks_find(iks_find(event, "complete"), INPUT_MATCH_TAG);
        iks_insert_attrib(match, "content-type", "application/nlsml+xml");
        iks_insert_cdata(match, iks_string(iks_stack(result), result), 0);
        rayo_component_send_complete_event(component, event);
-#endif
 }
 
 /**