Hi

I'm trying to use XAVP but the script is showing parsing error.

Do i need to include any module? I rebuild kamailio using the flag WITH_XAVP but didn' help.

route[0]
{


    $xavp(a=>bar) = 'bar';

}

S-154:~ # /usr/sbin/kamailio -c -f /etc/kamailio/kam86x2.cfg
loading modules under /usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/
 0(20184) ERROR: <core> [pvapi.c:516]: error searching pvar "xavp"
 0(20184) ERROR: <core> [pvapi.c:720]: wrong char [a/97] in [$xavp(a=>bar)] at [6 (5)]
 0(20184) : <core> [cfg.y:3461]: parse error in config file /etc/kamailio/kam86x2.cfg, line 555, column 5-17: unknown script pseudo variable $xavp(a=>bar)
ERROR: bad config file (1 errors)
Segmentation fault (core dumped)

S-154:~ #  /usr/sbin/kamailio -V
version: kamailio 3.1.6 (i386/linux) af51bc
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, 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_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, PKG_SIZE 25MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: af51bc
compiled on 14:11:43 Feb 28 2014 with gcc 4.7.1





THANKS