mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-19 15:24:16 +00:00
FS-7707: fix build error on centos7
This commit is contained in:
parent
6008cad2aa
commit
7963c4045e
@ -839,24 +839,23 @@ SWITCH_DECLARE(char *) CoreSession::getDigits(int maxdigits,
|
|||||||
int timeout,
|
int timeout,
|
||||||
int interdigit)
|
int interdigit)
|
||||||
{
|
{
|
||||||
switch_status_t status;
|
|
||||||
this_check((char *)"");
|
this_check((char *)"");
|
||||||
sanity_check((char *)"");
|
sanity_check((char *)"");
|
||||||
begin_allow_threads();
|
begin_allow_threads();
|
||||||
char terminator;
|
char terminator;
|
||||||
|
|
||||||
memset(dtmf_buf, 0, sizeof(dtmf_buf));
|
memset(dtmf_buf, 0, sizeof(dtmf_buf));
|
||||||
status = switch_ivr_collect_digits_count(session,
|
switch_ivr_collect_digits_count(session,
|
||||||
dtmf_buf,
|
dtmf_buf,
|
||||||
sizeof(dtmf_buf),
|
sizeof(dtmf_buf),
|
||||||
maxdigits,
|
maxdigits,
|
||||||
terminators,
|
terminators,
|
||||||
&terminator,
|
&terminator,
|
||||||
(uint32_t) timeout, (uint32_t)interdigit, 0);
|
(uint32_t) timeout, (uint32_t)interdigit, 0);
|
||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "getDigits dtmf_buf: %s\n", dtmf_buf);
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "getDigits dtmf_buf: %s\n", dtmf_buf);
|
||||||
end_allow_threads();
|
end_allow_threads();
|
||||||
return dtmf_buf;
|
return dtmf_buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCH_DECLARE(int) CoreSession::transfer(char *extension, char *dialplan, char *context)
|
SWITCH_DECLARE(int) CoreSession::transfer(char *extension, char *dialplan, char *context)
|
||||||
@ -913,25 +912,24 @@ SWITCH_DECLARE(char *) CoreSession::playAndGetDigits(int min_digits,
|
|||||||
int digit_timeout,
|
int digit_timeout,
|
||||||
const char *transfer_on_failure)
|
const char *transfer_on_failure)
|
||||||
{
|
{
|
||||||
switch_status_t status;
|
|
||||||
sanity_check((char *)"");
|
sanity_check((char *)"");
|
||||||
this_check((char *)"");
|
this_check((char *)"");
|
||||||
begin_allow_threads();
|
begin_allow_threads();
|
||||||
memset(dtmf_buf, 0, sizeof(dtmf_buf));
|
memset(dtmf_buf, 0, sizeof(dtmf_buf));
|
||||||
status = switch_play_and_get_digits( session,
|
switch_play_and_get_digits( session,
|
||||||
(uint32_t) min_digits,
|
(uint32_t) min_digits,
|
||||||
(uint32_t) max_digits,
|
(uint32_t) max_digits,
|
||||||
(uint32_t) max_tries,
|
(uint32_t) max_tries,
|
||||||
(uint32_t) timeout,
|
(uint32_t) timeout,
|
||||||
terminators,
|
terminators,
|
||||||
audio_files,
|
audio_files,
|
||||||
bad_input_audio_files,
|
bad_input_audio_files,
|
||||||
var_name,
|
var_name,
|
||||||
dtmf_buf,
|
dtmf_buf,
|
||||||
sizeof(dtmf_buf),
|
sizeof(dtmf_buf),
|
||||||
digits_regex,
|
digits_regex,
|
||||||
(uint32_t) digit_timeout,
|
(uint32_t) digit_timeout,
|
||||||
transfer_on_failure);
|
transfer_on_failure);
|
||||||
|
|
||||||
end_allow_threads();
|
end_allow_threads();
|
||||||
return dtmf_buf;
|
return dtmf_buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user