<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 18.05.2021 17:46, Kingsley Tart
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:063fa09cc52f1d11795b792551dc89e1856c0891.camel@dns99.co.uk">
<pre class="moz-quote-pre" wrap="">Interesting. When I do it (with OpenSIPS 3.1.2), I get the below, with
the dr_* commands listed:</pre>
</blockquote>
<p><font face="monospace">Hello, gents!</font></p>
<p><font face="monospace">That is because the "which" command has <i>dynamic
</i>output, effectively <i>learning</i> the loaded modules your
OpenSIPS has, and only then listing the commands that it
supports! This way, we avoid code duplication of all MI
Commands also in the OpenSIPS CLI project, which would be a
complete nightmare to maintain.</font></p>
<p><font face="monospace">Moreover, this also saves us work going
into the future, where developers will submit all kinds of new
MI commands for approval, without anybody having to worry about:
"what do they/I have to do so this command also works with the
CLI?"<br>
</font></p>
<p><font face="monospace">Cheers,</font><br>
</p>
<pre class="moz-signature" cols="72">--
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021 | <a class="moz-txt-link-abbreviated" href="http://www.opensips.org/training">www.opensips.org/training</a></pre>
</body>
</html>