G
G
Germov2015-08-06 18:05:18
Asterisk
Germov, 2015-08-06 18:05:18

Asterisk. Recording announcements by operators and playing during the queue, is it real?

There was a need for regular users to be able to dictate messages from their telephones about existing problems. Accordingly, the addition of this message without the participation of the administrator. Tell me, o guru)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Baidin, 2015-08-06
@zeronice

Update
simple dialplan application
something like
//record
exten=> 505,1,Answer
exten=> 505,n,MixMonitor(/service_records/active_record.wav)
//set the wild load flag
exten =>506,1,MYSQL( Connect connid host, myUser, myPass)
exten=>506,2,Mysql(update service_states set flag=1 where service=overload)
//reset flag
exten=> 507,1,Answer
exten=>507,1,Mysql(update service_states set flag=0 where service=overload)
//process incoming
[support_incoming]
exten => _XXXXXXXXXXX,1,Answer
exten => _XXXXXXXXXXX,2,MYSQL(Connect connid host, myUser, myPass)
exten => _XXXXXXXXXXX,3,MYSQL(Query resultid ${connid} SELECT flag from service_states where service=overload)
exten => _XXXXXXXXXXX,4,MYSQL(Fetch fetchid ${resultid} FLAG_STATE)
exten => _XXXXXXXXXXX,5,GotoIf( $["${FLAG_STATE}" = "1"]?6:7)
exten =_XXXXXXXXXXX,6,Queue(overload_queue)
exten =_XXXXXXXXXXX,7,Queue(normal_queue)
remains in the overload_queue queue to set the default sound /service_records/active_record
as then so. you can also draw a menu with buttons for the current state for the operator and instead of three service extensions, make one and write in it, set the
ps flag instead of mysql, you can also use the local database

G
Germov, 2015-08-06
@Germov

Let's assume something happened. Many calls go to operators, and they take and stupidly explain the problem. I would like them to simply write down the message "Uncle Vasya swelled and bit off the wire instead of a cucumber. Work is underway." Accordingly, the client does not need to wait for the operator's response, he is aware of Uncle Vasya. As the problem is fixed, erase this message by the operator himself. I think I explained

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question