Marc Olivier Chouinard ha scritto:
> Let us know if it does the same thing on 1.2 branchs.
Yes, it does... both on callweaver 1.2.0.1 and on the latest snapshot.
The problem is in the file func/func_db.c on lines 78, 97 and 114 which
looks like:
if (argc != 1 || !argv[0][0] || !(key = strchr(argv[0], '/'))) {
and should be replaced with:
if (argc != 1 || !argv[0][0] || !(key = strrchr(argv[0], '/'))) {
That way instead of splitting argv[0] ('hunt/group18/0/device' in my
example) on the first occurrence of '/' from LEFT (and thus resulting on
the wrong family='hunt', key='group18/0/device'), it will split argv[0]
on the first occurrence of '/' from RIGHT (giving the correct result
family='hunt/group18/0', key='device')
> If you can also provide steps to reproduce, when I have a few minutes,
> I'll fix it.
All you have to do is create a db structure with more than 2 levels like:
database put level/somelevel/anotherlevel akey avalue
> Marc O.
Later i'll open a ticket/post a patch.
Enrico
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users