diff --git a/MySQL_conf_pbx/test1/conf/asterisk/func_odbc.conf b/MySQL_conf_pbx/test1/conf/asterisk/func_odbc.conf index fce8a92..8f9a842 100755 --- a/MySQL_conf_pbx/test1/conf/asterisk/func_odbc.conf +++ b/MySQL_conf_pbx/test1/conf/asterisk/func_odbc.conf @@ -125,3 +125,27 @@ synopsis=Check if a specified callerid is contained in the known solicitors data writehandle=mysql1 readsql=SELECT location FROM presence WHERE id='${SQL_ESC(${ARG1})}' writesql=UPDATE presence SET location='${SQL_ESC(${VAL1})}' WHERE id='${SQL_ESC(${ARG1})}' + + + +; [MAT CONF for DND] +; gets the current user status +;[GET_DND_STATUS] +;dsn=asterisk +;readsql=SELECT status FROM dnd_status WHERE extension='${ARG1}' + +; updates the status +;[SET_DND_STATUS] +;dsn=asterisk +;writesql=INSERT INTO dnd_status (extension, status) VALUES ('${ARG1}', '${ARG2}') ON DUPLICATE KEY UPDATE status='${ARG2}', updated_at=NOW() +;[END DND] + + +[SET_DND_STATUS] +dsn=asterisk +writesql=REPLACE INTO dnd_status (extension, status) VALUES ('${ARG1}', '${ARG2}') + +[GET_DND_STATUS] +dsn=asterisk +readsql=SELECT status FROM dnd_status WHERE extension='${ARG1}' + diff --git a/MySQL_conf_pbx/test1/mariadb_data/aria_log.00000001 b/MySQL_conf_pbx/test1/mariadb_data/aria_log.00000001 index 964ee6f..3e4ce25 100644 Binary files a/MySQL_conf_pbx/test1/mariadb_data/aria_log.00000001 and b/MySQL_conf_pbx/test1/mariadb_data/aria_log.00000001 differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/aria_log_control b/MySQL_conf_pbx/test1/mariadb_data/aria_log_control index 77cc87c..2e25fc7 100644 Binary files a/MySQL_conf_pbx/test1/mariadb_data/aria_log_control and b/MySQL_conf_pbx/test1/mariadb_data/aria_log_control differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/asterisk_db/dnd_status.frm b/MySQL_conf_pbx/test1/mariadb_data/asterisk_db/dnd_status.frm new file mode 100644 index 0000000..cfeaaa8 Binary files /dev/null and b/MySQL_conf_pbx/test1/mariadb_data/asterisk_db/dnd_status.frm differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/asterisk_db/dnd_status.ibd b/MySQL_conf_pbx/test1/mariadb_data/asterisk_db/dnd_status.ibd new file mode 100644 index 0000000..79713d7 Binary files /dev/null and b/MySQL_conf_pbx/test1/mariadb_data/asterisk_db/dnd_status.ibd differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/asterisk_db/extensions_table.ibd b/MySQL_conf_pbx/test1/mariadb_data/asterisk_db/extensions_table.ibd index 1b4fcfc..90bc090 100644 Binary files a/MySQL_conf_pbx/test1/mariadb_data/asterisk_db/extensions_table.ibd and b/MySQL_conf_pbx/test1/mariadb_data/asterisk_db/extensions_table.ibd differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/ddl_recovery-backup.log b/MySQL_conf_pbx/test1/mariadb_data/ddl_recovery-backup.log new file mode 100644 index 0000000..5e30b6d Binary files /dev/null and b/MySQL_conf_pbx/test1/mariadb_data/ddl_recovery-backup.log differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/ib_buffer_pool b/MySQL_conf_pbx/test1/mariadb_data/ib_buffer_pool index 76d7bfb..25c0453 100644 --- a/MySQL_conf_pbx/test1/mariadb_data/ib_buffer_pool +++ b/MySQL_conf_pbx/test1/mariadb_data/ib_buffer_pool @@ -1,3 +1,7 @@ +13,3 +13,2 +13,1 +13,0 11,3 11,2 11,1 diff --git a/MySQL_conf_pbx/test1/mariadb_data/ib_logfile0 b/MySQL_conf_pbx/test1/mariadb_data/ib_logfile0 index cb014f0..26fcbf7 100644 Binary files a/MySQL_conf_pbx/test1/mariadb_data/ib_logfile0 and b/MySQL_conf_pbx/test1/mariadb_data/ib_logfile0 differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/ibdata1 b/MySQL_conf_pbx/test1/mariadb_data/ibdata1 index 8e4c647..d24d01e 100644 Binary files a/MySQL_conf_pbx/test1/mariadb_data/ibdata1 and b/MySQL_conf_pbx/test1/mariadb_data/ibdata1 differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/mysql/innodb_index_stats.ibd b/MySQL_conf_pbx/test1/mariadb_data/mysql/innodb_index_stats.ibd index 239f874..0e579d1 100644 Binary files a/MySQL_conf_pbx/test1/mariadb_data/mysql/innodb_index_stats.ibd and b/MySQL_conf_pbx/test1/mariadb_data/mysql/innodb_index_stats.ibd differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/mysql/innodb_table_stats.ibd b/MySQL_conf_pbx/test1/mariadb_data/mysql/innodb_table_stats.ibd index 6bb97d4..f01d623 100644 Binary files a/MySQL_conf_pbx/test1/mariadb_data/mysql/innodb_table_stats.ibd and b/MySQL_conf_pbx/test1/mariadb_data/mysql/innodb_table_stats.ibd differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/undo001 b/MySQL_conf_pbx/test1/mariadb_data/undo001 index f34eb86..363ab46 100644 Binary files a/MySQL_conf_pbx/test1/mariadb_data/undo001 and b/MySQL_conf_pbx/test1/mariadb_data/undo001 differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/undo002 b/MySQL_conf_pbx/test1/mariadb_data/undo002 index c68b06c..58b95db 100644 Binary files a/MySQL_conf_pbx/test1/mariadb_data/undo002 and b/MySQL_conf_pbx/test1/mariadb_data/undo002 differ diff --git a/MySQL_conf_pbx/test1/mariadb_data/undo003 b/MySQL_conf_pbx/test1/mariadb_data/undo003 index 1c72e7c..2956e49 100644 Binary files a/MySQL_conf_pbx/test1/mariadb_data/undo003 and b/MySQL_conf_pbx/test1/mariadb_data/undo003 differ diff --git a/MySQL_conf_pbx/test1/recordings/1001-1743075864.0.wav b/MySQL_conf_pbx/test1/recordings/1001-1743075864.0.wav new file mode 100644 index 0000000..5eaed13 Binary files /dev/null and b/MySQL_conf_pbx/test1/recordings/1001-1743075864.0.wav differ diff --git a/MySQL_conf_pbx/test1/recordings/1001-1743078445.5.wav b/MySQL_conf_pbx/test1/recordings/1001-1743078445.5.wav new file mode 100644 index 0000000..4c9aec9 Binary files /dev/null and b/MySQL_conf_pbx/test1/recordings/1001-1743078445.5.wav differ diff --git a/MySQL_conf_pbx/test1/recordings/1001-1743137716.2.wav b/MySQL_conf_pbx/test1/recordings/1001-1743137716.2.wav new file mode 100644 index 0000000..cf19f6c Binary files /dev/null and b/MySQL_conf_pbx/test1/recordings/1001-1743137716.2.wav differ diff --git a/MySQL_conf_pbx/test1/recordings/1002-1743075864.0.wav b/MySQL_conf_pbx/test1/recordings/1002-1743075864.0.wav new file mode 100644 index 0000000..5eaed13 Binary files /dev/null and b/MySQL_conf_pbx/test1/recordings/1002-1743075864.0.wav differ diff --git a/MySQL_conf_pbx/test1/recordings/1002-1743078445.5.wav b/MySQL_conf_pbx/test1/recordings/1002-1743078445.5.wav new file mode 100644 index 0000000..e57058a Binary files /dev/null and b/MySQL_conf_pbx/test1/recordings/1002-1743078445.5.wav differ diff --git a/MySQL_conf_pbx/test1/recordings/1002-1743137716.2.wav b/MySQL_conf_pbx/test1/recordings/1002-1743137716.2.wav new file mode 100644 index 0000000..b6c045b Binary files /dev/null and b/MySQL_conf_pbx/test1/recordings/1002-1743137716.2.wav differ diff --git a/MySQL_conf_pbx/test1/three_users.sql b/MySQL_conf_pbx/test1/three_users.sql index eef6500..1ad892a 100644 --- a/MySQL_conf_pbx/test1/three_users.sql +++ b/MySQL_conf_pbx/test1/three_users.sql @@ -169,3 +169,4 @@ SELECT * FROM extensions_table WHERE context='default'; SHOW TABLES; +