Hi,

Is somebody ever tried to manipulate and retrieve AVP variables from the Sent/Received Diameter Messages via Config file?
Thank you very much in advance!

Cheers,
Zoltan

On 4 January 2017 at 20:37, Zoltán Miricz <zoltan.miricz@gmail.com> wrote:

Dear All,

I'm wondering is it possible to catch Diameter Messages and their AVP values from kamailio.cfg just like for SIP messages? (Using pseudo variables)

I looked into this function from the attached S-CSCF example.

route[REG_MAR_REPLY]
{
     
#this is async so to know status we have to check the reply avp
     
xlog("L_DBG","maa_return code is $avp(s:maa_return_code)\n");    

Sadly it gives back only 1, -1, -2. (which is based on cxdx_mar.c the rc)
What I mainly looking for is the EXPERIMENTAL_RESULT (experimental_rc) and some different AVP values besides.


Thank you very much in advance!

Cheers,
Zoltan