[Asterisk-Users] re: help debugging dialplan

Yair Hakak yhakak at gmail.com
Wed Jul 6 08:49:18 MST 2005


hello all,
 another desperate request for help debugging my dialplan...

from a certain extension i do the following:

DBput(CFIM/${CALLERIDNUM}=${CALLERIDNUM})

a NoOp to the console says 

DBput: family=CFIM, key=2122022001, value=2122022001

and database show says
/CFIM/2122022001                                  : 2122022001

so far, so good.

but in a macro, when i try to get the data,

exten => s,1,DBGet(${DB(CFIM/${ARG1})

(ARG1 is 2122022001)

first, i get the following:
Jul  6 18:50:14 NOTICE[587]: pbx.c:1114
pbx_substitute_variables_helper: Error in extension logic (missing
'}')

and the CFIM variable is empty.

so, the following questions:
1. where does the } go? i know i'm missing one, but i don't know what to enclose
2. why isn't CFIM getting the variable from the DB?

anyone who can help me, i very much appreciate it.

thanks,
 yair

p.s. when are DBGet and DBSet being deprecated?



More information about the asterisk-users mailing list