<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi all. I have opensips 1.11.6-tls (x86_64/linux). I'm trying to
      execute rest_post() from event_route, but geting error:</p>
    <p>
      <blockquote type="cite">CRITICAL:core:yyerror: parse error in
        config file /etc/opensips/opensips.cfg, line 718, column 35-36:
        Command cannot be used in the block</blockquote>
      event route section:</p>
    <blockquote type="cite">event_route[E_MSILO_MESSAGE_DELETE] {<br>
          xlog("L_INFO","messages was deleted by msilo");<br>
          rest_post(<a class="moz-txt-link-rfc2396E" href="http://192.168.101.4/handler.php">"http://192.168.101.4/handler.php"</a>,
      "status_code=408", "application/x-www-form-urlencoded",
      "$var(body)", , "$var(code)");<br>
      }<br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
____________
Best regards,
Igor Pavlov</pre>
  </body>
</html>