Module: kamailio
Branch: 5.1
Commit: f243c5d2da214bad59adcdc7d702d8da61c5d69f
URL:
https://github.com/kamailio/kamailio/commit/f243c5d2da214bad59adcdc7d702d8d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-01-22T11:25:58+01:00
textops: proper parameter types for kemi exports
(cherry picked from commit 23450310fe6095f612d328871380012f189ac1c3)
---
Modified: src/modules/tcpops/tcpops_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f243c5d2da214bad59adcdc7d702d8d…
Patch:
https://github.com/kamailio/kamailio/commit/f243c5d2da214bad59adcdc7d702d8d…
---
diff --git a/src/modules/tcpops/tcpops_mod.c b/src/modules/tcpops/tcpops_mod.c
index 8e7fcdcacd..303dbf055a 100644
--- a/src/modules/tcpops/tcpops_mod.c
+++ b/src/modules/tcpops/tcpops_mod.c
@@ -330,7 +330,7 @@ static int ki_tcp_conid_state(sip_msg_t* msg, int i_conid)
LM_DBG("Connection id %d does not exist.\n", i_conid);
ret = -1;
goto done;
- }
+ }
/* Connection structure exists, now check what Kamailio thinks of it */
if (s_con->state == S_CONN_OK) {
/* All is fine, return happily */
@@ -383,7 +383,7 @@ static int w_tcp_conid_alive(sip_msg_t* msg, char* conid, char *p2)
int ret = w_tcp_conid_state(msg, conid, p2);
if (ret >= 1) {
return 1; /* TRUE */
- }
+ }
/* We have some kind of problem */
return -1;
}
@@ -393,7 +393,7 @@ static int ki_tcp_conid_alive(sip_msg_t* msg, int i_conid)
int ret = ki_tcp_conid_state(msg, i_conid);
if (ret >= 1) {
return 1; /* TRUE */
- }
+ }
/* We have some kind of problem */
return -1;
}
@@ -550,22 +550,22 @@ static sr_kemi_t sr_kemi_tcpops_exports[] = {
},
{ str_init("tcpops"), str_init("tcp_enable_closed_event"),
SR_KEMIP_INT, ki_tcpops_enable_closed_event,
- { SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE,
+ { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init("tcpops"), str_init("tcp_enable_closed_event_cid"),
SR_KEMIP_INT, ki_tcpops_enable_closed_event_cid,
- { SR_KEMIP_INT, SR_KEMIP_INT, SR_KEMIP_NONE,
+ { SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init("tcpops"), str_init("tcp_conid_alive"),
SR_KEMIP_INT, ki_tcp_conid_alive,
- { SR_KEMIP_INT, SR_KEMIP_INT, SR_KEMIP_NONE,
+ { SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init("tcpops"), str_init("tcp_conid_state"),
SR_KEMIP_INT, ki_tcp_conid_state,
- { SR_KEMIP_INT, SR_KEMIP_INT, SR_KEMIP_NONE,
+ { SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
@@ -577,4 +577,4 @@ int mod_register(char *path, int *dlflags, void *p1, void *p2)
{
sr_kemi_modules_add(sr_kemi_tcpops_exports);
return 0;
-}
\ No newline at end of file
+}