[sr-dev] git:master: lib/kmi: init MI workers for SIP commands when needed
Daniel-Constantin Mierla
miconda at gmail.com
Thu Sep 29 10:26:57 CEST 2011
Module: sip-router
Branch: master
Commit: 359a96d03de99322a34934160d2817157b35846c
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=359a96d03de99322a34934160d2817157b35846c
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Thu Sep 29 10:14:32 2011 +0200
lib/kmi: init MI workers for SIP commands when needed
---
lib/kmi/mi.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/lib/kmi/mi.c b/lib/kmi/mi.c
index 8d2c01d..ede6783 100644
--- a/lib/kmi/mi.c
+++ b/lib/kmi/mi.c
@@ -46,6 +46,7 @@
#include <string.h>
#include "../../dprint.h"
+#include "../../sr_module.h"
#include "mi_mem.h"
#include "mi.h"
@@ -112,6 +113,13 @@ int init_mi_child(void)
return -1;
}
}
+ if(is_sip_worker(PROC_NOCHLDINIT)) {
+ LM_DBG("initalizing proc rpc for sip handling\n");
+ if(init_child(PROC_SIPRPC)<0) {
+ LM_DBG("failed to init proc rpc for sip handling\n");
+ return -1;
+ }
+ }
mi_commands_initialized = 1;
return 0;
}
More information about the sr-dev
mailing list