How to add hints using realtime database?


#1

I am having trouble adding hints to my extensions MySQL table, as I am switched to realtime mode. Actually, my extensions table is this:

+----------+--------------+------+-----+---------+----------------+
| Field    | Type         | Null | Key | Default | Extra          |
+----------+--------------+------+-----+---------+----------------+
| id       | int(11)      | NO   | MUL | NULL    | auto_increment |
| context  | varchar(80)  | NO   | PRI |         |                |
| exten    | varchar(80)  | NO   | PRI |         |                |
| priority | tinyint(4)   | NO   | PRI | 0       |                |
| app      | varchar(80)  | NO   |     |         |                |
| appdata  | varchar(255) | NO   |     |         |                |
+----------+--------------+------+-----+---------+----------------+

and my hint records have:

priority = -1
app = SIP/extension

but it doesn’t seem to work. Command ‘core show hints’ does not show my hints.

How do I add hints if I use a realtime database please? Any docs or examples??

Thank you.