FS-11807 [mod_commands] uuid_recv_dtmf changed to report OK when well formed request is consumed by dmachine or dtmf hook

This commit is contained in:
Chris Rienzo authored and Andrey Volk committed 2019-07-17 23:00:44 +04:00
1 parent e7dda1b027
commit 8aa07b677d
2 files changed
+11 -8

No files matched your search

@@ -6347,11 +6347,10 @@ SWITCH_STANDARD_API(uuid_recv_dtmf_function)
return SWITCH_STATUS_SUCCESS;
}
if (switch_channel_queue_dtmf_string(switch_core_session_get_channel(psession), dtmf_data) == SWITCH_STATUS_SUCCESS) {
stream->write_function(stream, "+OK %s received DTMF %s.\n", uuid, dtmf_data);
} else {
stream->write_function(stream, "-ERR Operation failed\n");
if (switch_channel_queue_dtmf_string(switch_core_session_get_channel(psession), dtmf_data) == SWITCH_STATUS_GENERR) {
goto usage;
}
stream->write_function(stream, "+OK %s received DTMF %s.\n", uuid, dtmf_data);
goto done;