[OpenSIPS-Users] Issue Using avp_db_query()
farmorg at gmail.com
Wed Feb 3 17:19:51 EST 2021
I am trying to do a database lookup using avp_db_query() and getting an
error in my log:
ERROR:core:get_cmd_fixups: Variable in param  is not a string
ERROR:core:do_action: Failed to get fixups for command <avp_db_query>
It seems the query is erroring as $rc is always -1
CUSTOM_LOG: DB Query Return Code: -1
I have a database connection setup with a numerical ID.
This is my avp_db_query() line:
avp_db_query("SELECT customer FROM customer_sbcs WHERE sbc1 =
$avp(sbc) is set just before and has a valid text value that should match.
Is anyone able to tell me where I am going wrong please?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users