Skip to content

Commit

Permalink
TEL-5749: Add profile parameter to sofia count gateways (#217)
Browse files Browse the repository at this point in the history
* TEL-5749: Add profile parameter to `sofia count gateways`
  • Loading branch information
Elhodred authored Aug 21, 2023
1 parent 3f0cc8d commit b5a8c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mod/endpoints/mod_sofia/mod_sofia.c
Original file line number Diff line number Diff line change
Expand Up @@ -3691,7 +3691,7 @@ static switch_status_t cmd_count(char **argv, int argc, switch_stream_handle_t *
for (hi = switch_core_hash_first(mod_sofia_globals.profile_hash); hi; hi = switch_core_hash_next(&hi)) {
switch_core_hash_this(hi, NULL, NULL, &val);
profile = (sofia_profile_t *) val;
if (sofia_test_pflag(profile, PFLAG_RUNNING)) {
if ((argc == 1 || !strcasecmp(argv[1], profile->name)) && sofia_test_pflag(profile, PFLAG_RUNNING)) {
sofia_gateway_t *gp;
switch_mutex_lock(profile->gw_mutex);
for (gp = profile->gateways; gp; gp = gp->next) {
Expand Down Expand Up @@ -7061,7 +7061,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_sofia_load)
switch_console_set_complete("add sofia status gateway ::sofia::list_gateways");

switch_console_set_complete("add sofia count profiles");
switch_console_set_complete("add sofia count gateways");
switch_console_set_complete("add sofia count gateways ::sofia::list_profiles");

switch_console_set_complete("add sofia loglevel ::[all:default:tport:iptsec:nea:nta:nth_client:nth_server:nua:soa:sresolv:stun ::[0:1:2:3:4:5:6:7:8:9");
switch_console_set_complete("add sofia tracelevel ::[console:alert:crit:err:warning:notice:info:debug");
Expand Down

0 comments on commit b5a8c08

Please sign in to comment.