Answer the question
In order to leave comments, you need to log in
How to make asterisk take output from php script and compare for further execution of dial plan?
Good day everyone! I started to deal with asterisk not long ago, the question arose about setting up speech recognition and calling the desired subscriber, there is a php script that works out and returns the name. Example output in cli:
-- Executing [[email protected]:4] AGI("SIP/1001-00000088", "voice.php,/tmp/1485942576.136") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/voice.php
voice.php,/tmp/1485942576.136: иван
-- <SIP/1001-00000088>AGI Script yandex_voice.php completed, returning 0
exten=1000,1,Answer()
exten=1000,2,Wait(1)
exten=1000,3,Record(/tmp/${UNIQUEID}.wav,3,20);
exten=1000,4,AGI(voice.php,/tmp/${UNIQUEID})
exten=1000,n,GotoIf($[“${?????????????????}” = “иван”]?6:3)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question