[OpenSIPS-Users] Can't use rest_post from event_route

Igor Pavlov igor.pavlov1987 at gmail.com
Tue May 24 13:45:15 CEST 2016


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:

> CRITICAL:core:yyerror: parse error in config file 
> /etc/opensips/opensips.cfg, line 718, column 35-36: Command cannot be 
> used in the block
event route section:

> event_route[E_MSILO_MESSAGE_DELETE] {
>     xlog("L_INFO","messages was deleted by msilo");
>     rest_post("http://192.168.101.4/handler.php", "status_code=408", 
> "application/x-www-form-urlencoded", "$var(body)", , "$var(code)");
> }

-- 
____________
Best regards,
Igor Pavlov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160524/3f472b68/attachment.htm>


More information about the Users mailing list