Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
nik600 at gmail.com
Guest





PostPosted: Tue Aug 02, 2016 11:42 am    Post subject: [asterisk-users] EAGI script with missing audio on /dev/fd/3 Reply with quote

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?


PS:
if i use the application monitor or MixMonitor the call is recorded correctly.


I'm using Asterisk 1.6.2.9-2+squeeze12


Thanks












--
/*************/
nik600
http://www.kumbe.it
Back to top
creslin at digium.com
Guest





PostPosted: Tue Aug 09, 2016 2:26 pm    Post subject: [asterisk-users] EAGI script with missing audio on /dev/fd/3 Reply with quote

On Tue, Aug 2, 2016 at 11:42 AM, nik600 <nik600@gmail.com> wrote:
Quote:
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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services