mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 03:47:39 +00:00
FS-11088: Fixing verto status api
Checking if profile server_socket is valid to decide if is running or not
This commit is contained in:
parent
930e7f3b0e
commit
18f11c7c6d
@ -5027,7 +5027,7 @@ static switch_status_t cmd_status(char **argv, int argc, switch_stream_handle_t
|
|||||||
for (i = 0; i < profile->i; i++) {
|
for (i = 0; i < profile->i; i++) {
|
||||||
char *tmpurl = switch_mprintf(strchr(profile->ip[i].local_ip, ':') ? "%s:[%s]:%d" : "%s:%s:%d",
|
char *tmpurl = switch_mprintf(strchr(profile->ip[i].local_ip, ':') ? "%s:[%s]:%d" : "%s:%s:%d",
|
||||||
(profile->ip[i].secure == 1) ? "wss" : "ws", profile->ip[i].local_ip, profile->ip[i].local_port);
|
(profile->ip[i].secure == 1) ? "wss" : "ws", profile->ip[i].local_ip, profile->ip[i].local_port);
|
||||||
stream->write_function(stream, "%25s\t%s\t %40s\t%s\n", profile->name, "profile", tmpurl, (profile->running) ? "RUNNING" : "DOWN");
|
stream->write_function(stream, "%25s\t%s\t %40s\t%s\n", profile->name, "profile", tmpurl, (profile->server_socket[i] != ws_sock_invalid) ? "RUNNING" : "DOWN");
|
||||||
switch_safe_free(tmpurl);
|
switch_safe_free(tmpurl);
|
||||||
}
|
}
|
||||||
cp++;
|
cp++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user