Name
RealTime — Looks up information from the RealTime configuration handler
Synopsis
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
Get Asterisk: The Future of Telephony now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.