RealTime


RealTime Looks up information from the RealTime configuration handler

 RealTime(   family   ,   colmatch   ,   value   [,   prefix   ]) 

Uses the RealTime configuration handler system to read data into channel variables . All unique column names (from the specified family ) will be set as channel variables, with an optional prefix to the name (e.g., a prefix of var_ would make the column name become the variable ${var_name} ).

 ; retrieve all columns from the sipfriends table where the name column     ; matches "John", and prefix all the variables with "John_"  exten => 123,1,RealTime(sipfriends,name,John,John_)  ; now, let's read the value of the column named "port"     exten => 123,2,SayNumber(${John_port}) 

See Also

RealTimeUpdate( )



Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
ISBN: B0026OR3OO
EAN: N/A
Year: 2001
Pages: 380

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net