fix windows build errors (MODAPP-212, FSBUILD-116, FSBUILD-117)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11883 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b7f69f7ec1
commit
cc93b40d2b
|
@ -403,8 +403,8 @@ void process_fax(switch_core_session_t *session, const char *data, application_m
|
|||
switch_frame_t *read_frame = { 0 };
|
||||
switch_frame_t write_frame = { 0 };
|
||||
switch_codec_implementation_t read_impl = {0};
|
||||
switch_core_session_get_read_impl(session, &read_impl);
|
||||
int16_t *buf = NULL;
|
||||
switch_core_session_get_read_impl(session, &read_impl);
|
||||
|
||||
/* make sure we have a valid channel when starting the FAX application */
|
||||
channel = switch_core_session_get_channel(session);
|
||||
|
|
|
@ -242,8 +242,8 @@ static switch_bool_t set_db_random()
|
|||
static switch_bool_t test_lcr_sql(const char *sql)
|
||||
{
|
||||
char * tsql;
|
||||
tsql = switch_mprintf(sql, "5555551212");
|
||||
switch_bool_t retval = SWITCH_FALSE;
|
||||
tsql = switch_mprintf(sql, "5555551212");
|
||||
|
||||
if (globals.odbc_dsn) {
|
||||
if(switch_odbc_handle_exec(globals.master_odbc, tsql, NULL)
|
||||
|
@ -839,6 +839,7 @@ SWITCH_STANDARD_API(dialplan_lcr_admin_function)
|
|||
if(argc < 2) {
|
||||
goto usage;
|
||||
}
|
||||
switch_assert(argv[0]);
|
||||
if(!strcasecmp(argv[0], "show") && !strcasecmp(argv[1], "profiles")) {
|
||||
for (hi = switch_hash_first(NULL, globals.profile_hash); hi; hi = switch_hash_next(hi)) {
|
||||
switch_hash_this(hi, NULL, NULL, &val);
|
||||
|
|
|
@ -185,8 +185,9 @@ SWITCH_STANDARD_APP(rss_function)
|
|||
const char *vcf = NULL;
|
||||
char *chanvars = switch_channel_build_param_string(channel, NULL, NULL);
|
||||
switch_codec_implementation_t read_impl = {0};
|
||||
uint32_t rate, interval;
|
||||
switch_core_session_get_read_impl(session, &read_impl);
|
||||
uint32_t rate, interval = read_impl.microseconds_per_packet / 1000;
|
||||
interval = read_impl.microseconds_per_packet / 1000;
|
||||
|
||||
if ((vcf = switch_channel_get_variable(channel, "rss_alt_config"))) {
|
||||
cf = vcf;
|
||||
|
|
Loading…
Reference in New Issue