allow chatplan apps to have null args

This commit is contained in:
Anthony Minessale
2011-09-24 09:53:28 -05:00
parent 23c981df68
commit 4feb26d3e8
2 changed files with 6 additions and 2 deletions

View File

@@ -706,6 +706,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_execute_chat_app(switch_event_t *mes
switch_goto_status(SWITCH_STATUS_FALSE, end);
}
if (data && !strcmp(data, "__undef")) {
data = NULL;
}
expanded = switch_event_expand_headers(message, data);
status = cai->chat_application_function(message, expanded);