mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 19:52:35 +00:00
FS-7707: fix build error on centos7
This commit is contained in:
parent
6008cad2aa
commit
7963c4045e
@ -839,14 +839,13 @@ 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,
|
||||||
@ -913,12 +912,11 @@ 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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user