Thanks Henning,

we are currently doing it looking for error messages in the logs, and it´s ok, but since the request is processed by the kamailio routing script via the xmlrpc module with the dispatch_rpc() command , I was wondering if there could be a  way to check the command output inside the same script.


Regards

Javi

2011/2/24 Henning Westerholt <henning.westerholt@1und1.de>
On Wednesday 23 February 2011, Javier Gallart wrote:
> I've upgraded to 3.1.2 and compiled with the  DEFS+= -DMI_SYSTEM_MALLOC
> option. Looking good so far. Any thoughts about my second question, that
> is, how to be aware from the scripts if the any problems has arisen in the
> mi command?

Hi Javier,

there are several ways how to monitor this condition:

* create a check that grep in the log file for the error msg
* check the output of "kamctl fifo get_statistics all" for the memory
  informations
* do a OPTIONS ping to the server that is replied statefully (thus allocates
  memory) and check this
* and probably the best, just check the return value of the mtree reload FIFO
  cmd?

Cheers,

Henning