Niklas,
Thank you for the post.
That did not work either. What is the best way to debug this? step by step?

        
     Thank you


Kevin 






From: "Observium" <observium@observium.org>
To: "Observium" <observium@observium.org>
Cc: "Niklas Larsson" <niklas@tese.se>
Sent: Tuesday, August 4, 2020 8:09:08 AM
Subject: Re: [Observium] Kamailio Application module

Hi,

loadmodule "jsonrpcs.so"

# ----- jsonrpcs params -----
modparam("jsonrpcs", "pretty_format", 1)
/* set the path to RPC fifo control file */
modparam("jsonrpcs", "fifo_name", "/var/run/kamailio/kamailio_rpc.fifo")
/* set the path to RPC unix socket control file */
modparam("jsonrpcs", "dgram_socket", "/var/run/kamailio/kamailio_rpc.sock")

should work

/niklas

On 2020-08-04 05:48, Kevin Riahi wrote:
Niklas,
Thank you for responding. I have one more question.
Which Kamailio modules are to be loaded as a requirement? I ask as it seems that the  mi_fifo.so  module has been depreciated for Kamailio v5.x  but Observium applications page still shows below modules as requirements.

   mi_fifo.so    and    kex.so 


        
     Thanks again


Kevin Riahi





From: "Observium" <observium@observium.org>
To: "Observium" <observium@observium.org>
Cc: "Niklas Larsson" <niklas@tese.se>
Sent: Saturday, August 1, 2020 5:05:21 AM
Subject: Re: [Observium] Kamailio Application module

Hi,

change the agent script to this:


#!/bin/bash

kamcmd=`which kamcmd 2>/dev/null`

if [[ -x "$kamcmd" ]]
then
    echo '<<<app-kamailio>>>'
    $kamcmd -s unix:/tmp/kamailio_ctl stats.get_statistics all

    exit
fi

kamctl=`which kamctl`

if [[ ! -x "$kamctl" ]]
then
    kamctl=/usr/sbin/kamcmd
fi

if [[ -x "$kamctl" ]]
then
    echo '<<<app-kamailio>>>'
    $kamctl fifo get_statistics all
fi


Should work with kamailio 4 and 5

/niklas

On 2020-08-01 09:36, Kevin Riahi via observium wrote:

 Is the instruction set for installing and configuring Kamailio application module up to date for Kamailio v5.x   at this URL   https://docs.observium.org/apps/  ?
A recent upgrade from Kamailio 4 to 5 had broken what used to work for us on Kamailio v4.

        
  TIA


Kevin Riahi



_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium


_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium