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
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users