mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
FS-11785 [mod_commands] fix dead assignments
This commit is contained in:
parent
7e1df77421
commit
d77034a304
@ -1512,8 +1512,6 @@ SWITCH_STANDARD_API(stun_function)
|
|||||||
if (iport > 0 && iport < 0xFFFF) {
|
if (iport > 0 && iport < 0xFFFF) {
|
||||||
stun_port = (switch_port_t) iport;
|
stun_port = (switch_port_t) iport;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
p = stun_ip;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!zstr(src_ip) && (p = strchr(src_ip, ':'))) {
|
if (!zstr(src_ip) && (p = strchr(src_ip, ':'))) {
|
||||||
@ -3117,7 +3115,6 @@ SWITCH_STANDARD_API(tone_detect_session_function)
|
|||||||
} else {
|
} else {
|
||||||
if ((to = atoi(argv[4])) < switch_epoch_time_now(NULL)) {
|
if ((to = atoi(argv[4])) < switch_epoch_time_now(NULL)) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "INVALID Timeout!\n");
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "INVALID Timeout!\n");
|
||||||
to = 0;
|
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user