Hello!

Looks like $T(reply_reason) does not work well (although $T_reply_reason is ok). 

Kamailio script:

failure_route[TRUNK_FAILURE] {
...
xlog("L_WARN","rm=$rm / $T(reply_reason) \n");
...
}

 0(8894) ERROR: tmx [t_var.c:696]: pv_parse_t_name(): unknown PV name reply_reason
 0(8894) ERROR: <core> [core/pvapi.c:952]: pv_parse_spec2(): pvar "T" has an invalid name param [reply_reason]
 0(8894) ERROR: <core> [core/pvapi.c:1107]: pv_parse_spec2(): wrong char [)/41] in [$T(reply_reason)] at [15 (5)]
 0(8894) ERROR: xlog [xlog.c:511]: xdbg_fixup_helper(): wrong format[rm=$rm / $T(reply_reason)
 
https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables 


$T(name)

  • pseudo-variable class to access TM attributes

The name can be:

  • reply_reason - reply reason
 
[kamailio]$ kamailio -v
version: kamailio 5.2.2 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 18:04:26 Apr  3 2019 with gcc 4.8.5

--

BR,
Denys Pozniak