Hi all, anyone try the evrexec module yet? When I try, Kamailio fails to start 
and I'm getting an error that it can't find the event route I'm specifying in 
the modparam, but I started with trying the example from the docs. I think it 
might be a bug
https://www.kamailio.org/docs/modules/5.1.x/modules/evrexec.html

Here's what I tried:
modparam("evrexec", "exec", "name=evrexec:timer;wait=1000;workers=1;")

event_route[evrexec:timer] {
  $var(x) = 0;
  while(1) {
    xlog("$$var(x) is $var(x)\n");
    $var(x) = $var(x) + 1;
    sleep("600");
  }
}

Here's the log:
0(1765) ERROR: evrexec [evrexec_mod.c:232]: evrexec_param(): event route not 
found: evrexec:timer
0(1765) CRITICAL: <core> [core/cfg.y:3450]: yyerror_at(): parse error in config 
file /etc/kamailio/kamailio.cfg, line 136, column 70: Can't set module parameter
ERROR: bad config file (1 errors)

Version info:
kamailio -V
version: kamailio 5.1.2 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, 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_LISTEN 16, 
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 06:41:34 Mar  9 2018 with gcc 4.8.5

Thoughts?
Thanks,
-Skip
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to