[popup]
exten=>_x.,1,Noop( call from ${EXTEN})
same=>n,system(mysql --user=root --password='1232' asterisk -e "INSERT INTO calls (number,extension) values ("${CALLERID(num)}","${EXTEN}")")
same=>n,Playback(/var/lib/asterisk/moh/macroform-cold_day)
exten=>_200,1,Answer()
same=>n,set(__d=${CALLERID(num)})
same=>n,Queue(support,,,,,,,insert,,)
exten=>h,1,System(mysql --user=root --password='123' asterisk -e "delete from calls where number="${CALLERID(num)}"")
[insert]
exten=>s,1,Noop(var values are ${d} ${CALLERID(num)} ${EXTEN})
same=>n,system(mysql --user=root --password='123' asterisk -e "INSERT INTO calls (number,extension) values ("${CALLERID(num)}","${EXTEN}")")
same=>n,return()
No hay comentarios:
Publicar un comentario