Module: kamailio Branch: master Commit: 23450310fe6095f612d328871380012f189ac1c3 URL: https://github.com/kamailio/kamailio/commit/23450310fe6095f612d328871380012f...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2018-01-20T11:44:59+01:00
textops: proper parameter types for kemi exports
---
Modified: src/modules/tcpops/tcpops_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/23450310fe6095f612d328871380012f... Patch: https://github.com/kamailio/kamailio/commit/23450310fe6095f612d328871380012f...
---
diff --git a/src/modules/tcpops/tcpops_mod.c b/src/modules/tcpops/tcpops_mod.c index 1e844f5ed8..6162d023d2 100644 --- a/src/modules/tcpops/tcpops_mod.c +++ b/src/modules/tcpops/tcpops_mod.c @@ -334,7 +334,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 */ @@ -387,7 +387,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; } @@ -397,7 +397,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; } @@ -642,22 +642,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 } },
@@ -669,4 +669,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 +}