Displaying 2 results from an estimated 2 matches for "agi_environ".
2019 Jun 06
2
Find out which key ended recording?
Hello,
We have a need to record audio and allow the user to press any DTMF key to
end the recording. Currently we're using the AGI command "record file"
which does allow us to specify which DTMF keys can end the recording.
However we also need to know *which* key actually ended the recording. Note
that only allowing # or * to end the recording won't work for us.
Does anyone
2019 Jun 07
4
Find out which key ended recording?
...d000" // timeout in ms
> " BEEP" // BEEP
> , recorded_path
> , recording_limit
> );
>
> // should we abort?
> if ('*' == agi_environment.result)
> {
> agi_set_variable("STATUS", "*");
> exit(EXIT_SUCCESS);
> }
>
> // are we finished?
> if ('#' == agi_environmen...