September 2005
Intermediate to advanced
408 pages
16h 20m
English
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})Read now
Unlock full access