O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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})

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required