FS-4709 this is the right way to do this part
This commit is contained in:
parent
32806de57c
commit
50e7a09eca
|
@ -552,7 +552,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_dtmf_unlock(switch_channel_t *cha
|
||||||
\param dtmf digit
|
\param dtmf digit
|
||||||
\return SWITCH_STATUS_SUCCESS if successful
|
\return SWITCH_STATUS_SUCCESS if successful
|
||||||
*/
|
*/
|
||||||
SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf(_In_ switch_channel_t *channel, _In_ switch_dtmf_t *dtmf);
|
SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf(_In_ switch_channel_t *channel, _In_ const switch_dtmf_t *dtmf);
|
||||||
SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf_string(_In_ switch_channel_t *channel, _In_ const char *dtmf_string);
|
SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf_string(_In_ switch_channel_t *channel, _In_ const char *dtmf_string);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
@ -389,7 +389,7 @@ SWITCH_DECLARE(switch_size_t) switch_channel_has_dtmf(switch_channel_t *channel)
|
||||||
return has;
|
return has;
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf(switch_channel_t *channel, switch_dtmf_t *dtmf)
|
SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf(switch_channel_t *channel, const switch_dtmf_t *dtmf)
|
||||||
{
|
{
|
||||||
switch_status_t status;
|
switch_status_t status;
|
||||||
void *pop;
|
void *pop;
|
||||||
|
@ -398,13 +398,13 @@ SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf(switch_channel_t *chan
|
||||||
|
|
||||||
switch_assert(dtmf);
|
switch_assert(dtmf);
|
||||||
|
|
||||||
if (sensitive) {
|
|
||||||
switch_set_flag(dtmf, DTMF_FLAG_SENSITIVE);
|
|
||||||
}
|
|
||||||
|
|
||||||
switch_mutex_lock(channel->dtmf_mutex);
|
switch_mutex_lock(channel->dtmf_mutex);
|
||||||
new_dtmf = *dtmf;
|
new_dtmf = *dtmf;
|
||||||
|
|
||||||
|
if (sensitive) {
|
||||||
|
switch_set_flag((&new_dtmf), DTMF_FLAG_SENSITIVE);
|
||||||
|
}
|
||||||
|
|
||||||
if ((status = switch_core_session_recv_dtmf(channel->session, dtmf) != SWITCH_STATUS_SUCCESS)) {
|
if ((status = switch_core_session_recv_dtmf(channel->session, dtmf) != SWITCH_STATUS_SUCCESS)) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue