[OpenSIPS-Users] Some mi commands missing in opensips-cli

John Quick john.quick at smartvox.co.uk
Tue May 18 14:59:25 EST 2021

Damn. I was sure I’d loaded the drouting module, but now I checked and find I haven’t. Doh!
Juggling too many scripts in my head.

Liviu, and now you’ve also answered the second part of my question. Thanks.

What about the crashing if you try to create a DB with any username except opensips?

John Quick
Smartvox Limited

From: Liviu Chircu <liviu at opensips.org> 
Sent: 18 May 2021 15:52
To: OpenSIPS users mailling list <users at lists.opensips.org>; Kingsley Tart <kingsley at dns99.co.uk>; john.quick at smartvox.co.uk
Subject: Re: [OpenSIPS-Users] Some mi commands missing in opensips-cli

On 18.05.2021 17:46, Kingsley Tart wrote:
Interesting. When I do it (with OpenSIPS 3.1.2), I get the below, with
the dr_* commands listed:
Hello, gents!
That is because the "which" command has dynamic output, effectively learning 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.
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?"
Liviu Chircu
http://www.twitter.com/liviuchircu | http://www.opensips-solutions.com
OpenSIPS eBootcamp 2021 | http://www.opensips.org/training

More information about the Users mailing list