<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>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.</p>
    <p>An workaround could be putting the modparam after the definition
      of event_route, but with the pushed patch, it is not needed.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 22.03.18 21:54, Skip Morse wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DM5PR02MB3193CBD0431D02923250E80CC0A90@DM5PR02MB3193.namprd02.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">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<o:p></o:p></p>
        <p class="MsoNormal"><a
            href="https://www.kamailio.org/docs/modules/5.1.x/modules/evrexec.html"
            moz-do-not-send="true">https://www.kamailio.org/docs/modules/5.1.x/modules/evrexec.html</a><o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Here’s what I tried:<o:p></o:p></p>
        <p class="MsoNormal">modparam("evrexec", "exec",
          "name=evrexec:timer;wait=1000;workers=1;")<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">event_route[evrexec:timer] {<o:p></o:p></p>
        <p class="MsoNormal">  $var(x) = 0;<o:p></o:p></p>
        <p class="MsoNormal">  while(1) {<o:p></o:p></p>
        <p class="MsoNormal">    xlog("$$var(x) is $var(x)\n");<o:p></o:p></p>
        <p class="MsoNormal">    $var(x) = $var(x) + 1;<o:p></o:p></p>
        <p class="MsoNormal">    sleep("600");<o:p></o:p></p>
        <p class="MsoNormal">  }<o:p></o:p></p>
        <p class="MsoNormal">}<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Here’s the log:<o:p></o:p></p>
        <p class="MsoNormal">0(1765) ERROR: evrexec [evrexec_mod.c:232]:
          evrexec_param(): event route not found: evrexec:timer<o:p></o:p></p>
        <p class="MsoNormal">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<o:p></o:p></p>
        <p class="MsoNormal">ERROR: bad config file (1 errors)<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Version info:<o:p></o:p></p>
        <p class="MsoNormal">kamailio -V<o:p></o:p></p>
        <p class="MsoNormal">version: kamailio 5.1.2 (x86_64/linux)<o:p></o:p></p>
        <p class="MsoNormal">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<o:p></o:p></p>
        <p class="MsoNormal">ADAPTIVE_WAIT_LOOPS=1024,
          MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024,
          BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<o:p></o:p></p>
        <p class="MsoNormal">poll method support: poll, epoll_lt,
          epoll_et, sigio_rt, select.<o:p></o:p></p>
        <p class="MsoNormal">id: unknown<o:p></o:p></p>
        <p class="MsoNormal">compiled on 06:41:34 Mar  9 2018 with gcc
          4.8.5<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Thoughts?<o:p></o:p></p>
        <p class="MsoNormal">Thanks,<o:p></o:p></p>
        <p class="MsoNormal">-Skip<o:p></o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>