From e7c8dcb9507fbd44cc1d00132b433a2d91705a48 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, 10 Apr 2023 10:38:07 +0200 Subject: [PATCH] keepalive: typos --- src/modules/keepalive/doc/keepalive_admin.xml | 12 ++++---- src/modules/keepalive/keepalive.h | 2 +- src/modules/keepalive/keepalive_rpc.c | 30 +++++++++---------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/modules/keepalive/doc/keepalive_admin.xml b/src/modules/keepalive/doc/keepalive_admin.xml index 431b5958e0b..0028ee52d69 100644 --- a/src/modules/keepalive/doc/keepalive_admin.xml +++ b/src/modules/keepalive/doc/keepalive_admin.xml @@ -96,7 +96,7 @@ modparam("keepalive", "destination", "sip.provider.com")
<varname>delete_counter</varname>(int) - Unsuccessful attemps increase delete_counter. After passing it, keepalive module doesn't try to send options requests. Ignored if it's set to 0. + Unsuccessful attempts increase delete_counter. After passing it, keepalive module doesn't try to send options requests. Ignored if it's set to 0. @@ -143,7 +143,7 @@ modparam("keepalive", "ping_from", "sip:keepalive@kamailio.org") Get destination status. - The Parameter destination is destination you want to check status + The parameter destination is destination you want to check status Returned value: @@ -179,10 +179,10 @@ if(ka_is_alive("192.168.10.20") == 1) { sip_uri (string) - address of destination to monitor. Valid format is [protoschema:]ip[:port], with: 'protoschema' being - one of 'sip' or 'sips' (SIP over TLS) - if omitted, 'sip'is used + one of 'sip' or 'sips' (SIP over TLS) - if omitted, 'sip' is used by default; 'port' is optional (using default standard port 5060 for sip and 5061 for sips) - owner (string) - module name “owning” the destination + owner (string) - module name owning the destination (for informational purpose) @@ -221,10 +221,10 @@ ka_add_destination("sip:192.168.1.10:5060;transport=tcp", "config"); sip_uri (string) - address of monitored destination. Valid format is [protoschema:]ip[:port], with: 'protoschema' being - one of 'sip' or 'sips' (SIP over TLS) - if omitted, 'sip'is used + one of 'sip' or 'sips' (SIP over TLS) - if omitted, 'sip' is used by default; 'port' is optional (using default standard port 5060 for sip and 5061 for sips) - owner (string) - module name “owning” the destination + owner (string) - module name owning the destination (for informational purpose) diff --git a/src/modules/keepalive/keepalive.h b/src/modules/keepalive/keepalive.h index 675b32de71b..f2f90907030 100644 --- a/src/modules/keepalive/keepalive.h +++ b/src/modules/keepalive/keepalive.h @@ -74,7 +74,7 @@ typedef struct _ka_dest int flags; int state; time_t last_checked, last_up, last_down; - int counter; // counts unreachable attemps + int counter; // counts unreachable attempts ticks_t ping_interval; /*!< Actual interval between OPTIONS */ void *user_attr; diff --git a/src/modules/keepalive/keepalive_rpc.c b/src/modules/keepalive/keepalive_rpc.c index ef9fe24a561..2cab97c3dc5 100644 --- a/src/modules/keepalive/keepalive_rpc.c +++ b/src/modules/keepalive/keepalive_rpc.c @@ -99,11 +99,11 @@ static void keepalive_rpc_list(rpc_t *rpc, void *ctx) static void keepalive_rpc_add(rpc_t *rpc, void *ctx) { - str sip_adress = {0,0}; + str sip_address = {0,0}; str table_name ={0,0}; int ret = 0; - ret = rpc->scan(ctx, "SS",&sip_adress,&table_name); + ret = rpc->scan(ctx, "SS",&sip_address,&table_name); if (ret < 2) { LM_ERR("not enough parameters - read so far: %d\n", ret); @@ -111,14 +111,14 @@ static void keepalive_rpc_add(rpc_t *rpc, void *ctx) return; } - LM_DBG("keepalive add [%.*s]\n", sip_adress.len, sip_adress.s); - if(sip_adress.len<1 || table_name.len <1){ + LM_DBG("keepalive add [%.*s]\n", sip_address.len, sip_address.s); + if(sip_address.len<1 || table_name.len <1){ LM_ERR("parameter is len less than 1 \n" ); rpc->fault(ctx, 500, "parameter is len less than 1"); return; } - if(ka_add_dest(&sip_adress,&table_name,0,ka_ping_interval,0,0,0) < 0 ){ + if(ka_add_dest(&sip_address,&table_name,0,ka_ping_interval,0,0,0) < 0 ){ LM_ERR("couldn't add data to list \n" ); rpc->fault(ctx, 500, "couldn't add data to list"); return; @@ -131,11 +131,11 @@ static const char *keepalive_rpc_add_doc[2] = { static void keepalive_rpc_del(rpc_t *rpc, void *ctx) { - str sip_adress = {0,0}; + str sip_address = {0,0}; str table_name ={0,0}; int ret = 0; - ret = rpc->scan(ctx, "SS",&sip_adress,&table_name); + ret = rpc->scan(ctx, "SS",&sip_address,&table_name); if (ret < 2) { LM_ERR("not enough parameters - read so far: %d\n", ret); @@ -143,15 +143,15 @@ static void keepalive_rpc_del(rpc_t *rpc, void *ctx) return; } - LM_DBG("keepalive delete [%.*s]\n", sip_adress.len, sip_adress.s); + LM_DBG("keepalive delete [%.*s]\n", sip_address.len, sip_address.s); - if(sip_adress.len < 1 || table_name.len < 1){ + if(sip_address.len < 1 || table_name.len < 1){ LM_ERR("parameter is len less than 1 \n"); rpc->fault(ctx, 500, "parameter is len less than 1"); return; } - if(ka_del_destination(&sip_adress,&table_name) < 0 ){ + if(ka_del_destination(&sip_address,&table_name) < 0 ){ LM_ERR("couldn't delete data from list \n" ); rpc->fault(ctx, 500, "couldn't delete data from list"); return; @@ -164,13 +164,13 @@ static const char *keepalive_rpc_del_doc[2] = { static void keepalive_rpc_get(rpc_t *rpc, void *ctx) { - str sip_adress = {0,0}; + str sip_address = {0,0}; str table_name ={0,0}; int ret = 0; ka_dest_t *target=0 , *head =0; void *sub; - ret = rpc->scan(ctx, "SS",&sip_adress,&table_name); + ret = rpc->scan(ctx, "SS",&sip_address,&table_name); if (ret < 2) { LM_ERR("not enough parameters - read so far: %d\n", ret); @@ -178,16 +178,16 @@ static void keepalive_rpc_get(rpc_t *rpc, void *ctx) return; } - LM_DBG("keepalive get [%.*s]\n", sip_adress.len , sip_adress.s); + LM_DBG("keepalive get [%.*s]\n", sip_address.len , sip_address.s); - if(sip_adress.len < 1 || table_name.len < 1){ + if(sip_address.len < 1 || table_name.len < 1){ LM_ERR("parameter is len less than 1 \n"); rpc->fault(ctx, 500, "parameter is len less than 1"); return; } ka_lock_destination_list(); - if(ka_find_destination(&sip_adress, &table_name, &target, &head) < 0 ){ + if(ka_find_destination(&sip_address, &table_name, &target, &head) < 0 ){ LM_ERR("couldn't get data from list \n" ); rpc->fault(ctx, 500, "couldn't get data from list"); ka_unlock_destination_list();