[SR-Users] XMLRPC with params

Daniel-Constantin Mierla miconda at gmail.com
Thu Mar 22 09:45:48 CET 2018


Hello,

you don't have to put the name of the parameters there, only the value
-- I see state:i and group:1 being set as values and they are wrong,
should be i and 1 there.

Cheers,
Daniel


On 21.03.18 15:03, David Villasmil wrote:
> Any help on this, guys?
>>
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337
>
> On Tue, Mar 20, 2018 at 11:01 PM, David Villasmil
> <david.villasmil.work at gmail.com
> <mailto:david.villasmil.work at gmail.com>> wrote:
>
>     Hello guys,
>
>     I'm trying to call an xmlrpc method with parameters like:
>
>     <?xml version="1.0"?>
>     <methodCall>
>     <methodName>dispatcher.set_state</methodName>
>     <params>
>     <param>
>     <value><string>state:i</string></value>
>     </param>
>     <param>
>     <value><string>group:1</string></value>
>     </param>
>     <param>
>     <value><string>sip:1.2.3.4:5060 <http://1.2.3.4:5060></string></value>
>     </param>
>     </params>
>     </methodCall>
>
>     I'm getting back "Invalid Parameters".
>     I can't find any documentation as to _how_ to call it with parameters.
>
>     Can anyone help?
>
>     Regards,
>
>     David Villasmil
>     email: david.villasmil.work at gmail.com
>     <mailto:david.villasmil.work at gmail.com>
>     phone: +34669448337 <tel:+34%20669%2044%2083%2037>
>>
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180322/9a5eb751/attachment.html>


More information about the sr-users mailing list