[SR-Users] XML-RPC reply doesn't contain any data

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 29 10:10:24 CEST 2016


Hello,

I haven't originally implemented the rpc interface in Kamailio (which we
inherited via SER merge in 2008), but I expect to be some reason for
this behaviour, give the code is like 10 years old by now. A fault code
is a fault code, and if there was successful execution, then there was
no fault.

It is why I asked to check the xmlrpc specifications, because they must
say what should be done in case of a successful execution without any
data to be returned.

If there is a problem with existing returned xml document, then of
course needs to be fixed. But adding a fault code when the specs don't
say that, it is not a fix, but breaking the specs.

Cheers,
Daniel

On 29/03/16 09:54, ycaner wrote:
> Hello Daniel;
>     there is only rpc_send method in rpc module that dont  have any
> code and other parameters. it sends empty xml text. if it has
> parameters like fault function , i think it will be useful.
>
> Cheers.
>
> <?xml version="1.0"?>
> <methodResponse>
>     <params>
>         <param>
>         <value></value>
>         </param>
>     </params>
> </methodResponse>
>
>
> 29.03.2016 10:32 tarihinde Daniel-Constantin Mierla-6 [via SIP Router]
> yazdı:
>> Hello,
>>
>> is this correct if there was no error? The fault node should be in case
>> of errors, not success. You should check the xmlrpc specs to be sure any
>> chance is conform with the requirements there.
>>
>> Cheers,
>> Daniel
>>
>> On 29/03/16 09:26, ycaner wrote:
>>
>> > hello;
>> > i checked the rpc command and yes , you are right there isnt . i
>> will add a
>> > rpc return code. it will look like if my pr is accepted.
>> >
>> > <?xml version="1.0"?>
>> > <methodResponse>
>> >     <fault>
>> >         <value>
>> >             <struct>
>> >                 <member>
>> >                     <name>faultCode</name>
>> >                     <value>
>> >                         <int>200</int>
>> >                     </value>
>> >                 </member>
>> >                 <member>
>> >                     <name>faultString</name>
>> >                     <value>
>> >                         <string>domain is reloaded</string>
>> >                     </value>
>> >                 </member>
>> >             </struct>
>> >         </value>
>> >     </fault>
>> > </methodResponse>
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://sip-router.1086192.n5.nabble.com/XML-RPC-reply-doesn-t-contain-any-data-tp146894p146895.html
>> > Sent from the Users mailing list archive at Nabble.com.
>> >
>> > _______________________________________________
>> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
>> list
>> > [hidden email] </user/SendEmail.jtp?type=node&node=146897&i=0>
>> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>> -- 
>> Daniel-Constantin Mierla
>> http://www.asipto.com
>> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> -
>> http://www.linkedin.com/in/miconda
>> Kamailio World Conference, Berlin, May 18-20, 2016 -
>> http://www.kamailioworld.com
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> [hidden email] </user/SendEmail.jtp?type=node&node=146897&i=1>
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> ------------------------------------------------------------------------
>> If you reply to this email, your message will be added to the
>> discussion below:
>> http://sip-router.1086192.n5.nabble.com/XML-RPC-reply-doesn-t-contain-any-data-tp146894p146897.html
>>
>> To unsubscribe from XML-RPC reply doesn't contain any data, click here.
>> NAML
>> <http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
> -- 
> <http://www.netgsm.com.tr>
>
> ------------------------------------------------------------------------
> View this message in context: Re: XML-RPC reply doesn't contain any
> data
> <http://sip-router.1086192.n5.nabble.com/XML-RPC-reply-doesn-t-contain-any-data-tp146894p146899.html>
> Sent from the Users mailing list archive
> <http://sip-router.1086192.n5.nabble.com/Users-f3.html> at Nabble.com.
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, Berlin, May 18-20, 2016 - http://www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160329/d843b5e6/attachment.html>


More information about the sr-users mailing list