[asterisk-dev] RealTime API advice

Dan Austin Dan_Austin at Phoenix.com
Wed Apr 25 16:57:42 MST 2007


I did not get any responses to my MeetMe enhancement
RFC, so I started coding to see if I could make myself
happy before offering up the code.

The results are promising with a couple issues.
I made the RT column names configurable from inside
meetme.conf.  Basic scheduling logic is in place and
working.  I still need to add code to process conference
options loaded from a DB, but expect that to be straight
forward.

The major issue at this point is confusion over the
RT API itself.

ast_load_realtime() only pulls the first row from the
db.  Originally I thought I could keep calling it until
I found a match, but that quickly went down in flames.
It looks like ast_load_realtime_multientry() is closer
to what I want, but existing uses in the codebase leave
me with questions.

I'd like to be able to do one of the following:
   1.  Perform a query with multiple conditions to
		ensure a single returned match.
   2.  Perform a simple query and then iterate over
		the results to find the correct entry.

Any advice?


More information about the asterisk-dev mailing list