From 8bad0cf65175b5acf45a703a123c9c443fd2d581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Mon, 11 Apr 2022 07:43:40 +0300 Subject: [PATCH] [mod_sofia] refine CLI "sofia global" usage messages --- src/mod/endpoints/mod_sofia/mod_sofia.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 844ec13a70..6a10c4bfab 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -4446,15 +4446,14 @@ SWITCH_STANDARD_API(sofia_function) int lead = 1; static const char usage_string[] = "USAGE:\n" "--------------------------------------------------------------------------------\n" - "sofia global siptrace \n" - "sofia capture \n" - " watchdog \n\n" + "sofia global \n" + " debug [sla|presence|none]\n\n" "sofia profile [start | stop | restart | rescan] [wait]\n" " flush_inbound_reg [ | <[user]@domain>] [reboot]\n" " check_sync [ | <[user]@domain>]\n" - " [register | unregister] [ | all]\n" - " killgw \n" - " [stun-auto-disable | stun-enabled] [true | false]]\n" + " [register | startgw | unregister] [ | all]\n" + " killgw < | _all_ >" + " gwlist [ | all | down | off | on | up]\n" " siptrace \n" " capture \n" " watchdog \n\n" @@ -4588,7 +4587,7 @@ SWITCH_STANDARD_API(sofia_function) sofia_glue_global_standby(stbyon); stream->write_function(stream, "+OK Global standby %s", stbyon ? "on" : "off"); } else { - stream->write_function(stream, "-ERR Usage: siptrace |capture |watchdog |debug write_function(stream, "-ERR Usage: siptrace |capture |watchdog |debug [sla|presence|none]|standby "); } goto done;