I’ve put the following in extensions_custom.conf
:
[ext-local](+)
exten => _97X.,1,Answer
exten => _97X.,2,VoicemailMain(${EXTEN:2}@default)
exten => _97X.,hint,Custom:mwi${EXTEN:2}
This is so users can subscribe a BLF key to an arbitrary mailbox state (Code run by externnotify
is handling hint state.) Works fine in Asterisk 13/FreePBX 15/chan_sip:
mypbx*CLI> core show hints
-= Registered Asterisk Dial Plan Hints =-
[email protected] : Custom:mwi297 State:InUse Presence:not_set Watchers 3
[email protected] : Custom:mwi${EXTEN:2} State:Unavailable Presence: Watchers 0
mypbx*CLI> dialplan show ext-local
[ Context 'ext-local' created by 'pbx_config' ]
'97297' => hint: Custom:mwi297 [pbx_config]
'_97X.' => hint: Custom:mwi${EXTEN:2} [pbx_config]
1. Answer() [pbx_config]
2. VoicemailMain(${EXTEN:2}@default) [pbx_config]
But in Asterisk 16/FreePBX 16/chan_pjsip the hint is not being created automatically:
mypbx*CLI> core show hints
-= Registered Asterisk Dial Plan Hints =-
[email protected] : Custom:mwi${EXTEN:2} State:Unavailable Presence: Watchers 0
mypbx*CLI> dialplan show ext-local
[ Context 'ext-local' created by 'pbx_config' ]
'_97X.' => hint: Custom:mwi${EXTEN:2} [extensions_custom.conf:35]
1. Answer() [extensions_custom.conf:33]
2. VoicemailMain(${EXTEN:2}@default) [extensions_custom.conf:34]
I don’t see any related changes in the generated dialplan so I’m guessing this is an Asterisk change. Any ideas why these hints aren’t being added to the dialplan automatically any longer?