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:
strategy = ringall
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 and

I’m doing something wrong?


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.


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,