[OpenSIPS-Users] REST / rest_get Challenge ...
krishdinesh at yahoo.com
Mon Jan 25 09:25:52 EST 2021
I am using the exact string as in example provided in the link below. If there any dependency that could cause this issue ? Thank you,
Example 1.8. rest_get usage
On Monday, January 25, 2021, 02:45:24 PM GMT+5:30, Liviu Chircu <liviu at opensips.org> wrote:
On 25.01.2021 11:08, Dinesh Krishnamurthy via Users wrote:
Jan 24 22:20:48 OpenSIPS /usr/sbin/opensips: ERROR:core:fix_cmd: Param  expected to be a variable Jan 24 22:20:48 OpenSIPS /usr/sbin/opensips: ERROR:core:fix_actions: Failed to fix command <rest_get> Jan 24 22:20:48 OpenSIPS /usr/sbin/opensips: ERROR:core:fix_actions: fixing failed (code=-6) at /etc/opensips/opensips.cfg:232 Jan 24 22:20:48 OpenSIPS /usr/sbin/opensips: CRITICAL:core:fix_expr: fix_actions error
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.
www.twitter.com/liviuchircu | www.opensips-solutions.com _______________________________________________
Users mailing list
Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users