Hi all,
I'm trying to port an old macro from asterisk 1.2.x to callweaver but
i'm having problems to get the dialplan function DB to behave correctly.
If on the cli i execute "database show" i can correctly see my data:
*CLI> database show
/hunt/group18/0/waittime : 0
/hunt/group18/0/ringtime : 45
/hunt/group18/0/device : SIP/101&IAX2/101
/hunt/group18/0/number : 101
/hunt/group18/0/group : 300
And on the dialplan i have something like:
exten => s,n,NoOp(${DB(hunt/group18/0/device)})
and i would expect to see "SIP/101&IAX2/101", instead all i'm gettin is
a NULL.
Looking at a full debug output i see:
app.c: delim=',', args: hunt/group18/0/device
app.c: argc: 1
app.c: argv[0]: hunt/group18/0/device
db.c: SQL [select value from odb where family='hunt' and
keys='group18/0/device']
func_db.c: DB: hunt/group18/0/device not found in database.
pbx.c: Function result is ''
This is clearly wrong as family should be "hunt/group18/0" and keys
"device" to work correctly.
Is this a known bug or am i doing something wrong?
I'm using CallWeaver 1.2.0.1 SVN r5056 right now, later i'll give a try
with a newer snapshot.
Thanks
Enrico
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users