Hi,

attached is a small patch that makes it possible to specify interface name for server_ip in the xmlrpc2di.conf the same way media_ip and co. in core.

(I also enclosed a small monitoring app patch, I resend it in hope it will get some attention this time :) )

br

Szo
diff --git a/apps/monitoring/Monitoring.cpp b/apps/monitoring/Monitoring.cpp
index cf4fc06..ca4debe 100644
--- a/apps/monitoring/Monitoring.cpp
+++ b/apps/monitoring/Monitoring.cpp
@@ -171,7 +171,7 @@ void Monitor::logAdd(const AmArg& args, AmArg& ret) {
   bucket.log_lock.lock();
   try {
     AmArg& val = bucket.log[args[0].asCStr()].info[args[1].asCStr()];
-    if (!isArgArray(val)) {
+    if (!isArgArray(val) && !isArgUndef(val)) {
       AmArg v1 = val;
       val = AmArg();
       val.push(v1);
diff --git a/apps/xmlrpc2di/XMLRPC2DI.cpp b/apps/xmlrpc2di/XMLRPC2DI.cpp
index 1672255..392dde0 100644
--- a/apps/xmlrpc2di/XMLRPC2DI.cpp
+++ b/apps/xmlrpc2di/XMLRPC2DI.cpp
@@ -127,6 +127,8 @@ int XMLRPC2DI::load() {
   string bind_ip = cfg.getParameter("server_ip");
   if (bind_ip.empty()) {
     DBG("binding on ANY interface\n");
+  } else {
+    bind_ip = fixIface2IP(bind_ip);
   }
 
   string conf_xmlrpc_port = cfg.getParameter("xmlrpc_port",XMLRPC_PORT);
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to