tweaks for windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10719 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e3fba6f719
commit
186c98b6d7
|
@ -1206,11 +1206,11 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
|
||||||
switch_set_string(expires_str, "0");
|
switch_set_string(expires_str, "0");
|
||||||
kill_handle = 1;
|
kill_handle = 1;
|
||||||
} else if (exptime > 0) {
|
} else if (exptime > 0) {
|
||||||
switch_snprintf(sstr, sizeof(sstr), "active;expires=%d", exptime);
|
switch_snprintf(sstr, sizeof(sstr), "active;expires=%u", (unsigned)exptime);
|
||||||
} else {
|
} else {
|
||||||
long delta = exptime * -1;
|
unsigned delta = (unsigned) (exptime * -1);
|
||||||
switch_snprintf(sstr, sizeof(sstr), "active;expires=%d", delta);
|
switch_snprintf(sstr, sizeof(sstr), "active;expires=%u", delta);
|
||||||
switch_snprintf(expires_str, sizeof(expires_str), "%d", delta);
|
switch_snprintf(expires_str, sizeof(expires_str), "%u", delta);
|
||||||
nua_dialog_usage_set_refresh_range(nh->nh_ds->ds_usage, delta, delta);
|
nua_dialog_usage_set_refresh_range(nh->nh_ds->ds_usage, delta, delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1326,11 +1326,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
||||||
ringback.fh = &ringback.fhb;
|
ringback.fh = &ringback.fhb;
|
||||||
|
|
||||||
} else if (!strncasecmp(ringback_data, "silence", 7)) {
|
} else if (!strncasecmp(ringback_data, "silence", 7)) {
|
||||||
const char *p = ringback_data + 7;
|
const char *c = ringback_data + 7;
|
||||||
if (*p == ':') {
|
if (*c == ':') {
|
||||||
p++;
|
c++;
|
||||||
if (p) {
|
if (c) {
|
||||||
ringback.silence = atoi(p);
|
ringback.silence = atoi(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ringback.silence <= 0) {
|
if (ringback.silence <= 0) {
|
||||||
|
|
Loading…
Reference in New Issue