FSCORE-514
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15970 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
26793b552d
commit
f4e1b97ccd
|
@ -503,10 +503,15 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
|
||||||
if (cmd_hash == CMD_EXECUTE) {
|
if (cmd_hash == CMD_EXECUTE) {
|
||||||
char *app_name = switch_event_get_header(event, "execute-app-name");
|
char *app_name = switch_event_get_header(event, "execute-app-name");
|
||||||
char *app_arg = switch_event_get_header(event, "execute-app-arg");
|
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 *loop_h = switch_event_get_header(event, "loops");
|
||||||
char *hold_bleg = switch_event_get_header(event, "hold-bleg");
|
char *hold_bleg = switch_event_get_header(event, "hold-bleg");
|
||||||
int loops = 1;
|
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) {
|
if (loop_h) {
|
||||||
loops = atoi(loop_h);
|
loops = atoi(loop_h);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue