Hello;
    You are right. I found rpc_add function. we can add whatever we want to response xml.

Cheers

 



29.03.2016 11:10 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
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]
> 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


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[hidden email]
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

--


View this message in context: Re: XML-RPC reply doesn't contain any data
Sent from the Users mailing list archive at Nabble.com.


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[hidden email]
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

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[hidden email]
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-tp146894p146900.html
To unsubscribe from XML-RPC reply doesn't contain any data, click here.
NAML

--


View this message in context: Re: XML-RPC reply doesn't contain any data
Sent from the Users mailing list archive at Nabble.com.