Joe Attardi wrote:
> Doesn't seem to work. I get an exception:
> 
> org.apache.xmlrpc.XmlRpcException: Not enough items in array

[...]

> 
> It seems to be right though. The XML-RPC request it's generating looks  
> like this;
> <?xml version="1.0">
> <methodCall>
>    <methodName>freeswitch.api</methodName>
>    <params>
>      <param><value>reloadxml</value></param>
>    </params>
> </methodCall>
> 

[...]

I bet that it needs a parameter even if the parameter list is empty. Something 
like:

--- 
a/sipXconfig/neoconf/src/org/sipfoundry/sipxconfig/conference/FreeswitchApiMarshaller.java
+++ 
b/sipXconfig/neoconf/src/org/sipfoundry/sipxconfig/conference/FreeswitchApiMarshaller.java
@@ -31,6 +31,9 @@ public class FreeswitchApiMarshaller implements 
XmlRpcMarshaller {
         String[] operation = new String[] {
             name.toLowerCase()
         };
+        if(args.length == 0) {
+            return ArrayUtils.add(operation, "");
+        }
         return ArrayUtils.addAll(operation, args);
     }
 }

_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to