<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi Alain,<br>
<br>
As both parameters (partition and full) are optional, you need to
pass the name and value of the param (if only one param is
passed), otherwise OpenSIPS will have no idea if the value belongs
to partition or full<br>
<br>
Try `opensips-cli -x mi ds_list full=1` , where "full" is the name
of the param and "1" is its value.<br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 10.01.2024 17:55, Alain Bieuzent
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:49AC253F-BB9C-4034-B201-187EAD9D14BC@free.fr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US">Hi All,</span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"> </span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US">On dispatcher module, exported mi function
ds_list can have 2 optional parameters (full and partition)</span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"> </span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US">When I tried to use these parameters with
opensips-cli, it returns an error message :</span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"> </span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US">root@lbsip-test:~# opensips-cli -x mi ds_list
full</span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US">ERROR: command 'ds_list' returned: -32602:
Invalid params (Ambiguous call, use named parameters
instead)</span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"> </span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US">I didn't understand the documentation or is
there a bug?</span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"> </span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US">PS : I’m using opensips 3.3.6</span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-ligatures:none;mso-fareast-language:FR"
lang="EN-US">Regards</span><span
style="font-size:13.5pt;color:black;mso-ligatures:none;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></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>
<br>
</body>
</html>