[mod_sofia] refine CLI "sofia global" usage messages

This commit is contained in:
Дилян Палаузов 2022-04-11 07:43:40 +03:00
parent f5a2a59758
commit 8bad0cf651
1 changed files with 6 additions and 7 deletions

View File

@ -4446,15 +4446,14 @@ SWITCH_STANDARD_API(sofia_function)
int lead = 1; int lead = 1;
static const char usage_string[] = "USAGE:\n" static const char usage_string[] = "USAGE:\n"
"--------------------------------------------------------------------------------\n" "--------------------------------------------------------------------------------\n"
"sofia global siptrace <on|off>\n" "sofia global <capture|siptrace|standby|watchdog> <on|off>\n"
"sofia capture <on|off>\n" " debug [sla|presence|none]\n\n"
" watchdog <on|off>\n\n"
"sofia profile <name> [start | stop | restart | rescan] [wait]\n" "sofia profile <name> [start | stop | restart | rescan] [wait]\n"
" flush_inbound_reg [<call_id> | <[user]@domain>] [reboot]\n" " flush_inbound_reg [<call_id> | <[user]@domain>] [reboot]\n"
" check_sync [<call_id> | <[user]@domain>]\n" " check_sync [<call_id> | <[user]@domain>]\n"
" [register | unregister] [<gateway name> | all]\n" " [register | startgw | unregister] [<gateway name> | all]\n"
" killgw <gateway name>\n" " killgw < <gateway name> | _all_ >"
" [stun-auto-disable | stun-enabled] [true | false]]\n" " gwlist [<gateway name> | all | down | off | on | up]\n"
" siptrace <on|off>\n" " siptrace <on|off>\n"
" capture <on|off>\n" " capture <on|off>\n"
" watchdog <on|off>\n\n" " watchdog <on|off>\n\n"
@ -4588,7 +4587,7 @@ SWITCH_STANDARD_API(sofia_function)
sofia_glue_global_standby(stbyon); sofia_glue_global_standby(stbyon);
stream->write_function(stream, "+OK Global standby %s", stbyon ? "on" : "off"); stream->write_function(stream, "+OK Global standby %s", stbyon ? "on" : "off");
} else { } else {
stream->write_function(stream, "-ERR Usage: siptrace <on|off>|capture <on|off>|watchdog <on|off>|debug <sla|presence|none"); stream->write_function(stream, "-ERR Usage: siptrace <on|off>|capture <on|off>|watchdog <on|off>|debug [sla|presence|none]|standby <on|off>");
} }
goto done; goto done;