mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 14:58:34 +00:00
fix msvc warnings. fix high priority on windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@695 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
d2ca6983ac
commit
4363c224f5
9 files changed
+18
-16
No files matched your search
@@ -78,7 +78,7 @@ static JSClass global_class = {
|
||||
struct dtmf_callback_state {
|
||||
struct js_session *session_state;
|
||||
char code_buffer[1024];
|
||||
int code_buffer_len;
|
||||
size_t code_buffer_len;
|
||||
char ret_buffer[1024];
|
||||
int ret_buffer_len;
|
||||
int digit_count;
|
||||
@@ -198,9 +198,9 @@ static switch_status js_dtmf_callback(switch_core_session *session, char *dtmf,
|
||||
|
||||
if (*ret == '+' || *ret == '-') {
|
||||
switch_codec *codec;
|
||||
codec = switch_core_session_get_read_codec(jss->session);
|
||||
unsigned int samps = 0;
|
||||
unsigned int pos = 0;
|
||||
codec = switch_core_session_get_read_codec(jss->session);
|
||||
if (*ret == '+') {
|
||||
ret++;
|
||||
samps = atoi(ret) * (codec->implementation->samples_per_second / 1000);
|
||||
|
||||
Reference in new issue
Block a user