[asterisk-users] EAGI script with missing audio on /dev/fd/3

Matt Fredrickson creslin at digium.com
Tue Aug 9 14:25:53 CDT 2016


On Tue, Aug 2, 2016 at 11:42 AM, nik600 <nik600 at gmail.com> wrote:
> Dear all
>
> i'm trying to access to the input audio raw stream with a very basic EAGI
> script:
>
>
> #!/bin/sh
> echo "EXEC Queue 2001"
> cat  /dev/fd/3 > /tmp/pippo
>
> This is my dialplan:
>
> exten => 001,NoOp(test)
> exten => 001,n,Answer
> exten => 001,n,EAGI(/tmp/my-eagi.agi)
>
>
> When i call, the script is executed and the call goes in queue, i can hear
> the MOH, the file /tmp/pippo is created but it is empty.
>
> Any idea or suggestion?

If you take out the "echo "EXEC Queue 2001" part of it, do you get
audio in the file?

-- 
Matthew Fredrickson
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA



More information about the asterisk-users mailing list