Skip to content

Commit

Permalink
lrkproxy: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored and miconda committed Jun 12, 2023
1 parent d7700dd commit ac773d9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions src/modules/lrkproxy/doc/lrkproxy_admin.xml
Expand Up @@ -133,7 +133,7 @@
# single lrkproxy
modparam("lrkproxy", "lrkproxy_sock", "udp:192.168.122.108:8080")

# multiple lrkproxies for LB in diffenrent machine
# multiple lrkproxies for LB in different machine
modparam("lrkproxy", "lrkproxy_sock", "udp:192.168.122.108:8080")
modparam("lrkproxy", "lrkproxy_sock", "udp:192.168.122.109:8080")

Expand Down Expand Up @@ -243,7 +243,7 @@
</para>
<para>
NOTE: When configuring this parameter, one should consider maximum call
time VS share memory for unfinished calls.
time VS shared memory for unfinished calls.
</para>
<para>
<emphasis>
Expand Down Expand Up @@ -286,7 +286,7 @@
<title><varname>custom_sdp_ip_avp</varname> (string)</title>
<para>
This option useful for solving STUN and help UDP packets make it across NAT devices safe and sound.
In this way, it should be set by clients's ip public manually.
In this way, it should be set by clients' IP public manually.
</para>
<para>
<emphasis>
Expand Down
20 changes: 10 additions & 10 deletions src/modules/lrkproxy/lrkproxy.c
Expand Up @@ -446,8 +446,8 @@ static int add_lrkproxy_socks(struct lrkp_set *lrkp_list, char *lrkproxy)
return 0;
}

/* 0-succes
* -1 - erorr
/* 0-success
* -1 - error
* */
static int lrkproxy_add_lrkproxy_set(char *lrk_proxies)
{
Expand Down Expand Up @@ -812,8 +812,8 @@ static int lrkp_test(struct lrkp_node *node)

char *resp = buf + v[0].iov_len + v[1].iov_len + 1;
if(memcmp(resp, "PONG", 4) == 0)
// LM_DBG("Recieve PONG response from lrk proxy server %s, Enable it right now.\n", node->ln_url.s);
LM_INFO("Recieve PONG response from lrk proxy server %s, Enable it "
// LM_DBG("Receive PONG response from lrk proxy server %s, Enable it right now.\n", node->ln_url.s);
LM_INFO("Receive PONG response from lrk proxy server %s, Enable it "
"right now.\n",
node->ln_url.s);

Expand Down Expand Up @@ -1028,10 +1028,10 @@ static int lrkp_set_conntrack_rule(struct lrkproxy_hash_entry *e)
// char *resp = buf + v[0].iov_len + v[1].iov_len + v[2].iov_len;
char *resp = buf + v_len;
if(memcmp(resp, "OK", 2) == 0) {
LM_INFO("Recieve OK response from lrk proxy server %s, Rule set "
LM_INFO("Receive OK response from lrk proxy server %s, Rule set "
"successfully.\n",
e->node->ln_url.s);
LM_DBG("Recieve OK response from lrk proxy server %s, Rule set "
LM_DBG("Receive OK response from lrk proxy server %s, Rule set "
"successfully.\n",
e->node->ln_url.s);
}
Expand Down Expand Up @@ -1150,9 +1150,9 @@ static int lrkp_remove_conntrack_rule(struct lrkproxy_hash_entry *e)
// char *resp = buf + v[0].iov_len + v[1].iov_len + v[2].iov_len;
char *resp = buf + v_len;
if(memcmp(resp, "OK", 2) == 0) {
LM_INFO("Recieve OK response from lrk proxy server, Rule remove "
LM_INFO("Receive OK response from lrk proxy server, Rule remove "
"successfully.\n");
LM_DBG("Recieve OK response from lrk proxy server, Rule remove "
LM_DBG("Receive OK response from lrk proxy server, Rule remove "
"successfully.\n");
}
return 1;
Expand Down Expand Up @@ -1574,7 +1574,7 @@ static int change_media_sdp(sip_msg_t *msg, struct lrkproxy_hash_entry *e,
if((int)(start_sdp_m - off) == 0) {
memset(sdp_new_m, 0, 128);
char *avp_flags = off;
// int occure = 0;
// int occur = 0;
for(; *avp_flags && !isspace(*avp_flags); avp_flags++)
;
for(avp_flags++; *avp_flags && !isspace(*avp_flags); avp_flags++)
Expand Down Expand Up @@ -1809,7 +1809,7 @@ static int lrkproxy_force(
// fill the entry
if(call_id.s && call_id.len > 0) {
if(shm_str_dup(&entry->callid, &call_id) < 0) {
LM_ERR("lrkproxy hash table fail to instert call_id, "
LM_ERR("lrkproxy hash table failed to insert call_id, "
"calllen=%d callid=%.*s\n",
call_id.len, call_id.len, call_id.s);
lrkproxy_hash_table_free_entry(entry);
Expand Down
4 changes: 2 additions & 2 deletions src/modules/lrkproxy/lrkproxy_funcs.c
Expand Up @@ -177,8 +177,8 @@ int extract_body(struct sip_msg *msg, str *body)

/*
* Better use the content-len value - no need of any explicit
* parcing as get_body() parsed all headers and Conten-Length
* body header is automaticaly parsed when found.
* parsing as get_body() parsed all headers and Content-Length
* body header is automatically parsed when found.
*/
if(msg->content_length == 0) {
LM_ERR("failed to get the content length in message\n");
Expand Down
4 changes: 2 additions & 2 deletions src/modules/lrkproxy/lrkproxy_hash.h
Expand Up @@ -34,11 +34,11 @@ struct lrkproxy_hash_entry
str src_ipv4; //media ip address of initiator call in INVITE SIP message.
str dst_ipv4; //media ip address of selected node in 200Ok SIP message.
str snat_ipv4; //change media ip address to selected node.
str dnat_ipv4; //change media ip address to orgin destination party.
str dnat_ipv4; //change media ip address to origin destination party.
str src_port; //media port of initiator call in INVITE SIP message
str dst_port; //media port of selected node in 200Ok SIP message.
str snat_port; //change media port to selected node.
str dnat_port; //change media port to orgin destination party.
str dnat_port; //change media port to origin destination party.

str callid; // call callid
str viabranch; // call viabranch
Expand Down

0 comments on commit ac773d9

Please sign in to comment.