mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 05:08:26 +00:00
add missing begin/end allow threads to read and play_and_get_digits methods
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12958 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
946e0c4f7a
commit
5195d3118c
@ -755,7 +755,10 @@ SWITCH_DECLARE(char *) CoreSession::read(int min_digits,
|
|||||||
timeout = 1;
|
timeout = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
begin_allow_threads();
|
||||||
switch_ivr_read(session, min_digits, max_digits, prompt_audio_file, NULL, dtmf_buf, sizeof(dtmf_buf), timeout, valid_terminators);
|
switch_ivr_read(session, min_digits, max_digits, prompt_audio_file, NULL, dtmf_buf, sizeof(dtmf_buf), timeout, valid_terminators);
|
||||||
|
end_allow_threads();
|
||||||
|
|
||||||
return dtmf_buf;
|
return dtmf_buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -774,6 +777,7 @@ SWITCH_DECLARE(char *) CoreSession::playAndGetDigits(int min_digits,
|
|||||||
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));
|
||||||
|
begin_allow_threads();
|
||||||
status = switch_play_and_get_digits( session,
|
status = switch_play_and_get_digits( session,
|
||||||
(uint32_t) min_digits,
|
(uint32_t) min_digits,
|
||||||
(uint32_t) max_digits,
|
(uint32_t) max_digits,
|
||||||
@ -786,6 +790,7 @@ SWITCH_DECLARE(char *) CoreSession::playAndGetDigits(int min_digits,
|
|||||||
dtmf_buf,
|
dtmf_buf,
|
||||||
sizeof(dtmf_buf),
|
sizeof(dtmf_buf),
|
||||||
digits_regex);
|
digits_regex);
|
||||||
|
end_allow_threads();
|
||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "playAndGetDigits dtmf_buf: %s\n", dtmf_buf);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "playAndGetDigits dtmf_buf: %s\n", dtmf_buf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user