Modified: freeswitch/trunk/src/switch_ivr.c (15969 => 15970)
--- freeswitch/trunk/src/switch_ivr.c 2009-12-15 18:37:58 UTC (rev 15969)
+++ freeswitch/trunk/src/switch_ivr.c 2009-12-15 18:45:29 UTC (rev 15970)
@@ -503,10 +503,15 @@
if (cmd_hash == CMD_EXECUTE) {
char *app_name = switch_event_get_header(event, "execute-app-name");
char *app_arg = switch_event_get_header(event, "execute-app-arg");
+ char *content_type = switch_event_get_header(event, "content-type");
char *loop_h = switch_event_get_header(event, "loops");
char *hold_bleg = switch_event_get_header(event, "hold-bleg");
int loops = 1;
+ if (zstr(app_arg) && !zstr(content_type) && !strcasecmp(content_type, "text/plain")) {
+ app_arg = switch_event_get_body(event);
+ }
+
if (loop_h) {
loops = atoi(loop_h);
}