[Pkg-voip-commits] r9921 - in /kamailio/trunk/debian/patches: series upstream/0013-modules-matrix-Fixed-MI-command-not-exported.patch

maniac-guest at alioth.debian.org maniac-guest at alioth.debian.org
Sat Jul 21 00:30:53 UTC 2012


Author: maniac-guest
Date: Sat Jul 21 00:30:51 2012
New Revision: 9921

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=9921
Log:
update fix

Added:
    kamailio/trunk/debian/patches/upstream/0013-modules-matrix-Fixed-MI-command-not-exported.patch
Modified:
    kamailio/trunk/debian/patches/series

Modified: kamailio/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-voip/kamailio/trunk/debian/patches/series?rev=9921&op=diff
==============================================================================
--- kamailio/trunk/debian/patches/series (original)
+++ kamailio/trunk/debian/patches/series Sat Jul 21 00:30:51 2012
@@ -8,6 +8,7 @@
 upstream/0009-modules-sl-Fixed-segmentation-fault-and-corrected-lo.patch
 upstream/0010-modules_k-registrar-Fixed-some-errors-in-module-docu.patch
 upstream/0012-Remove-duplicate-entry-of-default_domain-in-docs.patch
+upstream/0013-modules-matrix-Fixed-MI-command-not-exported.patch
 multiarch_support.patch
 no_INSTALL_file.patch
 hardening_flags.patch

Added: kamailio/trunk/debian/patches/upstream/0013-modules-matrix-Fixed-MI-command-not-exported.patch
URL: http://svn.debian.org/wsvn/pkg-voip/kamailio/trunk/debian/patches/upstream/0013-modules-matrix-Fixed-MI-command-not-exported.patch?rev=9921&op=file
==============================================================================
--- kamailio/trunk/debian/patches/upstream/0013-modules-matrix-Fixed-MI-command-not-exported.patch (added)
+++ kamailio/trunk/debian/patches/upstream/0013-modules-matrix-Fixed-MI-command-not-exported.patch Sat Jul 21 00:30:51 2012
@@ -1,0 +1,31 @@
+From 3a8288482aa38afd8048193ef45b8ad979cacfab Mon Sep 17 00:00:00 2001
+From: Anca Vamanu <anca.vamanu at 1and1.ro>
+Date: Fri, 20 Jul 2012 16:59:52 +0300
+Subject: [PATCH] modules/matrix Fixed MI command not exported
+
+Added missing register_mi_mod() call in mod_init.
+(cherry picked from commit b26f862322ad311e3c42d899f72eaa1fb665b755)
+---
+ modules/matrix/matrix.c |    6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/modules/matrix/matrix.c b/modules/matrix/matrix.c
+index 67d117e..d9fb9cf 100644
+--- a/modules/matrix/matrix.c
++++ b/modules/matrix/matrix.c
+@@ -584,6 +584,12 @@ static int mod_init(void)
+ {
+ 	matrix_db_vars();
+ 
++	if(register_mi_mod(exports.name, mi_cmds)!=0)
++	{
++		LM_ERR("failed to register MI commands\n");
++		return -1;
++	}
++
+ 	if (init_shmlock() != 0) return -1;
+ 	if (matrix_db_init() != 0) return -1;
+ 	if (matrix_db_open() != 0) return -1;
+-- 
+1.7.9.5
+




More information about the Pkg-voip-commits mailing list