August 2007
Intermediate to advanced
608 pages
20h 33m
English
RealTimeUpdate() — Updates a value via the RealTime configuration handler
RealTimeUpdate(family,colmatch,value,newcol,newval)
Uses the RealTime configuration handler system to update
a value. The column newcol in
family matching column
colmatch = value will be
updated to newval.
A channel variable named REALTIMECOUNT will be set with the number of
rows updated or -1 if an error
occurs.
; this will update the port column in the sipfriends table to a new
; value of 5061, where the name column matches "John"
exten => 123,1,RealTimeUpdate(sipfriends,name,John,port,5061)