Module: sip-router
Branch: kamailio_3.0
Commit: dea34883a9429a847ecb4437cd5ce2c982a58126
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=dea3488…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed May 26 15:48:59 2010 +0200
tls: fix unregistered rpc commands
In the process of merging the tls modules with some k tls PVs the
module interface was changed, leaving the rpc functions
un-registered (and hence unaccessible).
(cherry picked from commit 577ccb71e7a1e113cacd74b19c8174ea2e9bacb6)
---
modules/tls/tls_mod.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/tls/tls_mod.c b/modules/tls/tls_mod.c
index f0499e2..775faeb 100644
--- a/modules/tls/tls_mod.c
+++ b/modules/tls/tls_mod.c
@@ -52,6 +52,7 @@
#include "../../timer.h" /* ticks_t */
#include "../../tls_hooks.h"
#include "../../ut.h"
+#include "../../rpc_lookup.h"
#include "tls_init.h"
#include "tls_server.h"
#include "tls_domain.h"
@@ -337,6 +338,11 @@ static int mod_init(void)
register_tls_hooks(&tls_h);
register_select_table(tls_sel);
+ /* register the rpc interface */
+ if (rpc_register_array(tls_rpc)!=0) {
+ LOG(L_ERR, "failed to register RPC commands\n");
+ goto error;
+ }
/* if (init_tls() < 0) return -1; */