[asterisk-bugs] [Asterisk 0011887]: [patch] new REALTIME_STORE() and REALTIME_DESTROY() functions

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Feb 1 11:56:39 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11887 
====================================================================== 
Reported By:                sergee
Assigned To:                otherwiseguy
====================================================================== 
Project:                    Asterisk
Issue ID:                   11887
Category:                   Functions/func_realtime
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 101373 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-31-2008 06:15 CST
Last Modified:              02-01-2008 11:56 CST
====================================================================== 
Summary:                    [patch] new REALTIME_STORE() and REALTIME_DESTROY()
functions
Description: 
This patch adds new dialplan functions, which utilize store&destroy RT API.


REALTIME_STORE(family,field)=value
creates a new record in the RT storage, and sets field to value specified
on the right.

SET(XXX=${REALTIME_DESTROY(family,field,value)})
acts in the same way as REALTIME(), except that it removes matched record
from RT storage.
====================================================================== 

---------------------------------------------------------------------- 
 otherwiseguy - 02-01-08 11:56  
---------------------------------------------------------------------- 
Corydon and I talked a lot last night about how to go about adding
functions to the API to support variable numbers of arguments to the
realtime engine.  I think we've decided on an argc/argv kind of approach. 
Leaving existing functions in place and possibly adding functions like
ast_realtime_store_argv(char *family, int argc, char *argv[]), etc.  No
promises if/when that will get done, though.

Technically you could return the insert id by setting a channel variable. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-01-08 11:56  otherwiseguy   Note Added: 0081580                          
======================================================================




More information about the asterisk-bugs mailing list