Hi Daniel,

Thanks for the quick response. I've tested a build with the latest 5.1 and that 
works. I'll test and use the workaround until a new rpm version comes out.

Thanks!
-Skip

From: Daniel-Constantin Mierla [mailto:[email protected]]
Sent: Friday, March 23, 2018 12:52 AM
To: Kamailio (SER) - Users Mailing List <[email protected]>; Skip 
Morse <[email protected]>
Subject: Re: [SR-Users] Bug in evrexec module?


Hello,

can you try with the latest git branch 5.1? I just pushed a patch to fix it, a 
wrong function was used to search the route block for the stage of modparam 
evaluation.

An workaround could be putting the modparam after the definition of 
event_route, but with the pushed patch, it is not needed.

Cheers,
Daniel

On 22.03.18 21:54, Skip Morse wrote:

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

[email protected]<mailto:[email protected]>

https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



--

Daniel-Constantin Mierla

www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>

Kamailio Advanced Training - April 16-18, 2018, Berlin - 
www.asipto.com<http://www.asipto.com>

Kamailio World Conference - May 14-16, 2018 - 
www.kamailioworld.com<http://www.kamailioworld.com>
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to