Hi All,
I’m using a dialplan script and noticed that I was getting warnings that DBget/DBput was depricated. So I’m trying to re-write the script, and I’d like to do this as smoothly as possible. So I currently have:
...
exten => s,5,DBget(var1=FAMILY/KEY);
exten => s,106,Goto(new_context,1);
exten => s,6,Playback(whatever);
...
So far I’ve replaced it with the following, but I’m wondering if there is a more elegant way:
...
exten => s,5,GotoIf(${DB_EXISTS(FAMILY/KEY)}?:new_context,1);
exten => s,6,Set(var1=${DB_RESULT});
exten => s,7,Playback(whatever);
...
Is there a better way to do this? My biggest complaint is that I have to re-number the lines.