August 2007
Intermediate to advanced
608 pages
20h 33m
English
RealTime — Looks up information from the RealTime configuration handler
RealTime(family,colmatch,value[,prefix])
Uses the RealTime configuration handler system to read
data in to 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,n,SayNumber(${John_port})