(Disparaging the documentation is not going to make many friends )
Itâs not working because you donât understand the meaning of a dialplan statement. The most basic format is:
exten = <extension>,<priority>,<command>
You are confusing the extension with the priority and you donât understand what ânâ means.
The extension âgroupsâ statements that will be executed based on the value of ${EXTEN} (ignoring âgotoâ and other flow control commands for the moment) when the context is entered.
The priority specifies the order the statements in the group will be executed.
ânâ is short-hand for 'the value of the priority of the previous statement + 1.
Since you donât have any statements with the priority defined, ânâ has nothing to increment and is thus undefined.
Since you referenced âextentions_custom.confâ (SIC) in a previous post, this suggests you are using FreePBX. You will find very little support on this forum for anything other than âcommand line Asterisk.â
If you were using âcommand line Asteriskâ you (assuming you set your debug and verbose settings appropriately) would have seem:
[Sep 1 20:40:27] WARNING[19973]: pbx_config.c:1765 pbx_load_config: Canât use ânextâ priority on the first entry at line x of extensions.conf!
[Sep 1 20:40:27] WARNING[19973]: pbx_config.c:1765 pbx_load_config: Canât use ânextâ priority on the first entry at line x of extensions.conf!
which may have given you a clue (aka, google it) to the source of your errors.
Since you are (probably) using FreePBX, the error messages probably would have been missed amongst the cruft.
You may find reading this helpful.
Once you figure out how to âblockâ this single extension, think about how you will block the rest. Will you replicate the same lines over and over, changing the extension or would using a pattern for the extension work better? Please donât try working with patterns until you get a single extension working.