Help about asterisk parsing contexts in extension.conf

question about asterisk parsing contexts in extension.conf, hello every i have a question, if i have a context defined in extension.conf, in the form of

[context-1]
include => concept-test

[context-1]
include => concept-test1

the correct result is, when i type dialplan show context-1

result:

[context-1]
include => concept-test
include => concept-test1

or it must result in the form of the first ocurrence of context-1 defined in extension.conf??

thank in advanced

It’s an invalid dialplan, so the behaviour should be considered error recovery.

I haven’t tried this for extensions.conf, but normally appending ‘(+)’ immediately after the ‘]’ for the second naming of the context, should make the dialplan valid. (This works for most of the other configuration files, but is not something I’ve ever heard of anyone doing for extensions.conf.)

I would expect an error message, in the logs, for your current dialplan.

This should have been asked on Asterisk Support.

thanks in advanced here is the result with above code

serverB*CLI> dialplan show context-1
[ Context ‘context-1’ created by ‘pbx_config’ ]
Include => ‘concept-test’ [pbx_config]
Include => ‘concept-test1’ [pbx_config]

-= 0 extensions (0 priorities) in 1 context. =-

the (+) don’t generate any result, any idea??