Queues.conf and template

Hi everybody,
it seems that the use of templates in queues.conf does not work properly.
The value of “strategy” set in the template overrides the one set in the single queue.

For example, please consider the following configuration:
queue-default
strategy = ringall
test1
strategy = linear

The strategy of the queue test1 should be linear but it is actually ringall:
tvmnet01*CLI> queue show
test1 has 0 calls (max unlimited) in ‘ringall’ strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s

I tested it with version 1.8.12.2 and 1.8.16.0.

I’m doing something wrong?

Regards,
Andrea

Although there is a preference to move to object like semantics, templates are not guaranteed to work that way.

Basically, if the code reads the file sequentially and looks up each parameter name, you get overriding type semantics, but if the code has a fixed set of parameter names and looks them up in the file, you get first match semantics. Different parts of Asterisk use different methods.

Thanks for the reply.
In the page https://wiki.asterisk.org/wiki/display/AST/Using+Templates I can read:
"The settings and objects defined in the newly-created section override settings or objects of the same name from the templates."
Unfortunately the documentation does not mention any exceptions.
Thanks.

Regards,
Andrea

Most values associated with queues seem to be read in the overriding compatible way in the branch version of 1.8. “strategy” seems to be a special case in the code,