Browse Source

xmlrpc: advertise to core that sip workers handle rpc commands

Daniel-Constantin Mierla 14 years ago
parent
commit
f079c23f5a
1 changed files with 10 additions and 0 deletions
  1. 10 0
      modules/xmlrpc/xmlrpc.c

+ 10 - 0
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;