[asterisk-users] stream file outputs only silence, even with asterisk example gsm file

2006-07-28 Thread Guido Sohne

Hi all!

I am trying to hook up a text to speech system to Asterisk via AGI.
The AGI script generates a sound file and tells Asterisk to play that
file via STREAM FILE. I am creating the sound file in alaw format.

My problem is that I do not get any sound output on my softphone (IAX
soft phone)

AGI Rx  EXEC AGI tts.agi|Hello! Welcome to Asterisk!!
AGI Tx  agi_request: tts.agi
AGI Tx  agi_channel: IAX2/1234-2
AGI Tx  agi_language: en
AGI Tx  agi_type: IAX2
AGI Tx  agi_uniqueid: 1154082448.87
AGI Tx  agi_callerid: 10101
AGI Tx  agi_calleridname: Guido Sohne
AGI Tx  agi_callingpres: 0
AGI Tx  agi_callingani2: 0
AGI Tx  agi_callington: 0
AGI Tx  agi_callingtns: 0
AGI Tx  agi_dnid: 100
AGI Tx  agi_rdnis: unknown
AGI Tx  agi_context: corenett
AGI Tx  agi_extension: 100
AGI Tx  agi_priority: 1
AGI Tx  agi_enhanced: 0.0
AGI Tx  agi_accountcode:
AGI Tx 
AGI Rx  STREAM FILE /tmp/tmp4636.92179778618 #
AGI Tx  200 result=0

Checking /tmp, we see that the file does exist, which ties in with the
200 response code after the script issues a STREAM FILE command to
Asterisk AGI.

ls -l /tmp
-rw-r--r--  1 asterisk root 75388 2006-07-28 10:27 tmp4636.92179778618.alaw

I've tried to copy one of the original Asterisk sound files into /tmp
and then do a STREAM FILE on it. That also does not result in any
sound being played!

AGI Rx  STREAM FILE /tmp/why-no-answer-mystery #
AGI Tx  200 result=0

ls -l /tmp
-rw-r--r--  1 guidoguido 10626 2006-07-28 10:31 why-no-answer-mystery.gsm

So what gives here? I can't understand what is going wrong and would
appreciate some help.

-- G.
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] stream file outputs only silence, even with asterisk example gsm file

2006-07-28 Thread Joshua Colp
- Original Message -
From: Guido Sohne
[mailto:[EMAIL PROTECTED]
To: asterisk-users@lists.digium.com
Sent: Fri, 28
Jul 2006 08:19:21 -0300
Subject: [asterisk-users] stream file outputs only
silence,even with asterisk example gsm file


 Hi all!
 
 I am trying to hook up a text to speech system to Asterisk via AGI.
 The AGI script generates a sound file and tells Asterisk to play that
 file via STREAM FILE. I am creating the sound file in alaw format.
 
 My problem is that I do not get any sound output on my softphone (IAX
 soft phone)
 
 Checking /tmp, we see that the file does exist, which ties in with the
 200 response code after the script issues a STREAM FILE command to
 Asterisk AGI.
 
 ls -l /tmp
 -rw-r--r--  1 asterisk root 75388 2006-07-28 10:27 tmp4636.92179778618.alaw
 
 I've tried to copy one of the original Asterisk sound files into /tmp
 and then do a STREAM FILE on it. That also does not result in any
 sound being played!
 
 AGI Rx  STREAM FILE /tmp/why-no-answer-mystery #
 AGI Tx  200 result=0
 
 ls -l /tmp
 -rw-r--r--  1 guidoguido 10626 2006-07-28 10:31
 why-no-answer-mystery.gsm
 
 So what gives here? I can't understand what is going wrong and would
 appreciate some help.

Have you tried grabbing an audio file and listening to it outside of Asterisk 
to confirm it's okay? Have you tried listening to it just in the dialplan and 
not using an AGI at all for streaming it back? We need to eliminate some 
variables here and narrow down where the issue might be.

 -- G.

Joshua Colp
Digium
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users