FOP buttons are created without the Astdbkey parameter. This omission prevents any interaction with the asterisk database. Of particular note is the CF and DND state of extensions which is recorded in the database. I assume that only extension buttons need astdb interaction so a fix to retrieve_op_conf_from_mysql.php is just the following:
- fwrite($fhandle, "\n[$dial]\nPosition=$btn\nLabel=\"$id : $description\"\nExtension=$id\nContext=$context\nIcon=$icon\nVoicemail_Context=$vmcontext\nVoiceMailExt=$vmprefix$vmext@$context\nPanel_Context=$panelcontext\n");
+ fwrite($fhandle, "\n[$dial]\nPosition=$btn\nLabel=\"$id : $description\"\nExtension=$id\nContext=$context\nIcon=$icon\nVoicemail_Context=$vmcontext\nVoiceMailExt=$vmprefix$vmext@$context\nPanel_Context=$panelcontext\nAstdbkey=$id\n");