<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    the concern I have is that the return in the params of the result
    should be data, not a response code embedded in a form or another.<br>
    <br>
    For example, if you do rpc list dispatcher records, then there is no
    return code, just the list of the records. The command was
    successful as well.<br>
    <br>
    If the command is to reload the dispatcher records, then it is
    indeed no data returned. But the http return code is 200ok.<br>
    <br>
    I don't see a benefit in embedded the return code in the returned
    structure, in my opinion that is not the purpose of the rpc response
    structure. If there is an error, then the fault code is returned,
    based on xmlrpc specs.<br>
    <br>
    If there are people that want to embed return code, I am fine as
    long as:<br>
    <br>
    - that is made a configuration option.<br>
    - it is made consistent somehow across all commands, so one would
    know what to expect.<br>
    <br>
    I would also try to see if other well established applications (not
    sip related) do for similar cases with rpc.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 01/04/16 14:20, Yasin CANER wrote:<br>
    </div>
    <blockquote cite="mid:56FE6775.6010204@netgsm.com.tr" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <font face="Courier New, Courier, monospace">Hello;<br>
            Xml rpc is useful module for kamailio that improve
        flexibility and can help to addons. But there is a little
        problem about it when use non-value response that reply  empty
        xml or no response so there isnt ack about what happened after
        command sends. at least need a "OK" for acknowledgement. i can
        accept that there is a fault reply and it is useful with return
        code and description. after looking <a moz-do-not-send="true"
          class="moz-txt-link-freetext"
          href="http://xmlrpc.scripting.com/spec.html">http://xmlrpc.scripting.com/spec.html</a>
        webpage , there isnt any spec about "OK" . if you ask where it
        uses; For example , after module reloads or terminating dialog
        which callid. I think it is good when realtime reload in
        Kamailio Version 5 can be reload by remotly. it can reply which
        module reloaded correctly , which doesnt.What do you think about
        it?<br>
        <br>
        Thanks<br>
      </font>
      <div class="moz-signature">-- <br>
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        <title></title>
        <div align="left">
          <div style="width:300px;" align="left"> <a
              moz-do-not-send="true" href="http://www.netgsm.com.tr"
              target="_blank"> <img
                src="cid:part2.06090301.08070901@gmail.com"
                alt"netgsm"="" border="0"> </a> </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, Berlin, May 18-20, 2016 - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>