Module: sip-router
Branch: master
Commit: f079c23f5af6f154279d9a68a0c2abd09a788736
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f079c23…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Sep 28 22:53:48 2011 +0200
xmlrpc: advertise to core that sip workers handle rpc commands
---
modules/xmlrpc/xmlrpc.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/modules/xmlrpc/xmlrpc.c b/modules/xmlrpc/xmlrpc.c
index 8824a30..a63a4cc 100644
--- a/modules/xmlrpc/xmlrpc.c
+++ b/modules/xmlrpc/xmlrpc.c
@@ -2462,6 +2462,16 @@ static int mod_init(void)
}
+/**
+ * advertise that sip workers handle rpc commands
+ */
+int mod_register(char *path, int *dlflags, void *p1, void *p2)
+{
+ set_sip_rpc_mode(1);
+ return 0;
+}
+
+
static int fixup_xmlrpc_reply(void** param, int param_no)
{
int ret;