mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-21 18:54:14 +00:00
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:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user