[Home]

Summary:ASTERISK-23968: Function REALTIME_STORE cannot be read
Reporter:c0rnoTa (c0rnota)Labels:
Date Opened:2014-06-30 13:30:46Date Closed:2014-06-30 13:36:15
Priority:MinorRegression?
Status:Closed/CompleteComponents:Functions/func_realtime
Versions:1.8.23.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:MySQL with a table callback (id,phonenumber,date) res_config_mysql.so as backend for realtimeAttachments:
Description:I'm trying to use REALTIME_STORE function, but Asterisk always return:
ERROR[20244]: pbx.c:3894 ast_func_read: Function REALTIME_STORE cannot be read
Family is configured like: callback => mysql,general,callback
Using function like:
Noop(${REALTIME_STORE(callback,phonenumber)=123456});

When I change REALTIME_STORE to REALTIME function, I can read and update values successfully. But I can't INSERT a new row.

Increasing debug level is give me additional information.
Comments:By: Matt Jordan (mjordan) 2014-06-30 13:36:15.612-0500

{{REALTIME_STORE}} does not support read operations. Attempting to perform an insert into a database using read semantics would be ... weird.

{{REALTIME_STORE}} only supports being written to; hence, you must use it with the {{Set}} dialplan application.