[OpenSIPS-Users] REST / rest_get Challenge ...

Liviu Chircu liviu at opensips.org
Mon Jan 25 09:13:36 EST 2021


On 25.01.2021 11:08, Dinesh Krishnamurthy via Users wrote:
> Jan 24 22:20:48 OpenSIPS /usr/sbin/opensips[739]: ERROR:core:fix_cmd: 
> Param [2] expected to be a variable
> Jan 24 22:20:48 OpenSIPS /usr/sbin/opensips[739]: 
> ERROR:core:fix_actions: Failed to fix command <rest_get>
> Jan 24 22:20:48 OpenSIPS /usr/sbin/opensips[739]: 
> ERROR:core:fix_actions: fixing failed (code=-6) at 
> /etc/opensips/opensips.cfg:232
> Jan 24 22:20:48 OpenSIPS /usr/sbin/opensips[739]: 
> CRITICAL:core:fix_expr: fix_actions error

Hi,

You are calling rest_get() with a quoted 2nd parameter, but the function 
expects a non-quoted variable.  The example snippet you gave worked well 
on my test, so I suspect there is another rest_get() call which is 
incorrect, see line 232 in your file.

Regards,

-- 
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210125/b5449435/attachment.html>


More information about the Users mailing list