Using call files with extension patterns

Hello folks,

I’m trying to make a script that makes call files for Asterisk to execute, however I want the extensions within the call files to match my extensions’s patterns.

Call file:

Channel: trunk/10 Context: call-file Extension: 123 Priority: 1

extensions.conf:

[call-file] exten = _XXX,1,NoOp(it works)

123 should be able to be matched by _XXX, however it only works if I explicitly write 123 in my extensions.conf. With the pattern I get the following error:

I’m testing this with Asterisk 13.4, but I can use any version.

The official syntax is exten => not exten =