Try DND 1

This commit is contained in:
MathewFrancis 2025-03-28 11:22:34 +05:30
parent 065474018d
commit 008efed094
22 changed files with 29 additions and 0 deletions

View File

@ -125,3 +125,27 @@ synopsis=Check if a specified callerid is contained in the known solicitors data
writehandle=mysql1 writehandle=mysql1
readsql=SELECT location FROM presence WHERE id='${SQL_ESC(${ARG1})}' readsql=SELECT location FROM presence WHERE id='${SQL_ESC(${ARG1})}'
writesql=UPDATE presence SET location='${SQL_ESC(${VAL1})}' 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}'

View File

@ -1,3 +1,7 @@
13,3
13,2
13,1
13,0
11,3 11,3
11,2 11,2
11,1 11,1

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -169,3 +169,4 @@ SELECT * FROM extensions_table WHERE context='default';
SHOW TABLES; SHOW TABLES;