<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Babak,</p>
    <p>This is a bit of a mistake in the documentation, as the
      parameter's name is "brief", but as value it actually expects an
      integer. As such the jsonrpc request should be:</p>
    <p>'{"jsonrpc":"2.0","method":"ul_dump","params":{"brief":1},"id":10}'</p>
    <p>or:<br>
    </p>
    <p>'{"jsonrpc":"2.0","method":"ul_dump","params":[1],"id":10}'</p>
    <p>Regards,<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Vlad Patrascu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 11.11.2020 15:08, Babak Yakhchali
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEVfcaZ1FyUirbc=JBpSwiCaYDtjVUkq__RwC1OnbC-8p7kExQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi
        <div>I'm using opensips 3.1. </div>
        <div>What json should be sent as body to http mi which results
          like ul_dump?brief</div>
        <div>I tried this curl command but it is not working</div>
        <div>curl --location --request POST '<a
            href="http://127.0.0.1:8080/opensips_mi"
            moz-do-not-send="true">http://127.0.0.1:8080/opensips_mi</a>'
          \<br>
          --header 'Content-Type: application/json' \<br>
          --data-raw '{"jsonrpc":"2.0","method":"ul_dump","id":10,<b>"params":["brief"]</b>}'<br>
        </div>
        <div>I get </div>
        <div>{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid
          params"}</div>
        <div><br>
        </div>
        <div>this works but it is not brief :)</div>
        <div> curl --location --request POST '<a
            href="http://127.0.0.1:8080/opensips_mi"
            moz-do-not-send="true">http://127.0.0.1:8080/opensips_mi</a>'
          --header 'Content-Tya-raw
          '{"jsonrpc":"2.0","method":"ul_dump","id":10}'<br>
        </div>
        <div><br>
        </div>
        <div>thanks</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>