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

Kingsley Tart kingsley at dns99.co.uk
Tue May 18 15:05:38 EST 2021


Hi,

I don't have a separate opensips-cli.cfg file on my system and I've
never written one so I wouldn't know whether there's anything wrong
with yours. In /etc/opensips there is just this:

# ls -l
total 36
-rw-r--r-- 1 root root 27561 May 18 15:53 opensips.cfg
-rw-r--r-- 1 root root  3751 Mar  2 17:26 opensipsctlrc
-rw-r--r-- 1 root root   353 Nov 17 13:45 scenario_callcenter.xml

Nothing special in opensips.cfg. I only added the partition stuff
recently but I was getting the dr_* commands listed before as well:

loadmodule "drouting.so"
modparam("drouting", "db_url", "mysql://opensips:<password>@localhost/opensips")
modparam("drouting", "probing_interval", 15)
modparam("drouting", "use_partitions", 1)
modparam("drouting", "db_partitions_url", "mysql://opensips:<password>@localhost/opensips")
modparam("drouting", "db_partitions_table", "dr_partitions")

Does opensips-cli.cfg need to have a DB module listed as well? Is it
listing commands from other modules that require a DB module?

Cheers,
Kingsley.

On Tue, 2021-05-18 at 15:52 +0100, John Quick wrote:
> How curious. I wonder what is different about your config and mine.
> Here is my opensips-cli.cfg. Can you see anything wrong please?
> Or perhaps it is linked to the opensips.cfg script - I load the
> drouting module, but might not actually call any of the functions
> 
> [default]
> log_level: WARNING
> prompt_intro: Hello mate
> prompt_name: osipscli-local
> database_url: mysql://opensips:<password>@localhost
> database_name: opensips_v3
> database_modules: acc alias_db auth_db avpops domain dialog drouting
> group permissions clusterer rtpproxy rtpengine tls_mgm usrloc
> registrant tracer fraud_detection freeswitch_scripting
> 
> John Quick
> Smartvox Limited
> 
> 
> -----Original Message-----
> From: Kingsley Tart <kingsley at dns99.co.uk> 
> Sent: 18 May 2021 15:47
> To: john.quick at smartvox.co.uk; 'OpenSIPS users mailling list' <
> users at lists.opensips.org>
> Subject: Re: [OpenSIPS-Users] Some mi commands missing in opensips-
> cli
> 
> Interesting. When I do it (with OpenSIPS 3.1.2), I get the below,
> with the dr_* commands listed:
> 
> # opensips-cli -x mi which
> [
>     "get_statistics",
>     "list_statistics",
>     "reset_statistics",
>     "uptime",
>     "version",
>     "pwd",
>     "arg",
>     "which",
>     "ps",
>     "kill",
>     "log_level",
>     "xlog_level",
>     "shm_check",
>     "cache_store",
>     "cache_fetch",
>     "cache_remove",
>     "event_subscribe",
>     "events_list",
>     "subscribers_list",
>     "raise_event",
>     "list_tcp_conns",
>     "mem_pkg_dump",
>     "mem_shm_dump",
>     "mem_rpm_dump",
>     "reload_routes",
>     "help",
>     "list_blacklists",
>     "t_uac_dlg",
>     "t_uac_cancel",
>     "t_hash",
>     "t_reply",
>     "dlg_list",
>     "dlg_list_ctx",
>     "dlg_end_dlg",
>     "dlg_db_sync",
>     "dlg_restore_db",
>     "dlg_cluster_sync",
>     "profile_get_size",
>     "profile_list_dlgs",
>     "profile_get_values",
>     "list_all_profiles",
>     "profile_end_dlgs",
>     "dlg_push_var",
>     "dlg_send_sequential",
>     "address_reload",
>     "address_dump",
>     "subnet_dump",
>     "allow_uri",
>     "dr_reload",
>     "dr_gw_status",
>     "dr_carrier_status",
>     "dr_number_routing",
>     "dr_reload_status",
>     "dr_enable_probing",
>     "dp_reload",
>     "dp_translate",
>     "dp_show_partition",
>     "cache_remove_chunk",
>     "regex_reload"
> ]
> 
> Cheers,
> Kingsley.
> 
> On Tue, 2021-05-18 at 15:43 +0100, John Quick wrote:
> > Unfortunately no.
> > It just re-iterates the list that I was already looking at where I 
> > could not find any commands for the drouting module or to do the
> > other 
> > operations I reported as missing.
> > 
> > John Quick
> > Smartvox Limited
> > 
> > 
> > -----Original Message-----
> > From: Kingsley Tart <kingsley at dns99.co.uk>
> > Sent: 18 May 2021 15:38
> > To: john.quick at smartvox.co.uk; OpenSIPS users mailling list < 
> > users at lists.opensips.org>
> > Subject: Re: [OpenSIPS-Users] Some mi commands missing in
> > opensips- 
> > cli
> > 
> > Does "opensips-cli -x mi which" do what you want?
> > 
> > Cheers,
> > Kingsley.
> > 
> 
> 




More information about the Users mailing list