P
P
PanDar2021-05-14 12:18:36
PHP
PanDar, 2021-05-14 12:18:36

Is it possible to stop playback in agi?

Question, I’m listening during a person’s answer, for example, the bot says with a record “Tell me your name and date of birth”
The person answers “Ivanov Ivan Ivanovich 2000 May 13” The
bot plays the following record, which lasts 5 seconds, and during playback, the person, says something like "Oops, I made a mistake, May 14", at which point you need to interrupt playback in php AGI and start another record, in the style of "Sorry, can you repeat?"

for those who ask for the code, although it is not needed Does anyone know if it is possible to interrupt the script like this and how to do it?
$agi->exec('Playback', 'hello-world');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton1863, 2021-05-16
@Anton1863

asterisk.ru/knowledgebase/Asterisk+cmd+BackGroundDetect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question