[sr-dev] Very small problems with invalid modules/mi_rpc documentation

Andrei Pelinescu-Onciul andrei at iptel.org
Tue Feb 9 18:15:48 CET 2010


On Feb 09, 2010 at 15:05, marius zbihlei <marius.zbihlei at 1and1.ro> wrote:
> Hello
> 
> The file modules/mi_rpc/README specifies sercmd mi uptime as a valid 
> command. But
> 
> $ ./sercmd mi uptime
> error: 500 - command not available
> 
> The problem is that mi_core functions (like uptime, kill, ps , debug) 
> are not loaded (or even present) in sip-router,  being replaced by 
> core.* commands.

The mi core functions are implemented in the kex module (if it's loaded
the example will work).

> 
> $ ./sercmd core.uptime
> {
>        now: Tue Feb  9 15:04:00 2010
> 
>        up_since: Tue Feb  9 15:00:00 2010
> 
>        uptime: 240
> }
> 
> I would gladly modify the example, but as I see there are no module non 
> dependent mi commands suitable for an example. Either way documentation 
> should be updated.
> 

Andrei



More information about the sr-dev mailing list