I’m running Asterisk 13 Pjsip and I’d like to save and retrieve some custom hints in a database.
Right now I set the custom device state in my dialplan like this:
exten => Ligne_Recep,hint,Custom:BLF_RECEPTION
exten => Ligne_Recep,1,NoOp()
same => n,Set(DEVICE_STATE(Custom:BLF_RECEPTION)=NOT_INUSE)
same => n,Hangup()
The problem is that if I have to restart Asterisk I lose all custom hints.
Can I use extconfig.conf for storing custom hints state?
Another option would be pulling the device states from a DB and setting them with a call file when asterisk starts.