[asterisk-bugs] [Asterisk 0010363]: ExternalIVR changes not playing audio

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Aug 7 18:47:25 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10363 
====================================================================== 
Reported By:                ctooley
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10363
Category:                   Applications/app_externalivr
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.9  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             08-01-2007 15:52 CDT
Last Modified:              08-07-2007 18:47 CDT
====================================================================== 
Summary:                    ExternalIVR changes not playing audio
Description: 
Attached is a diff against Asterisk 1.4.9 for some proposed changes to
app_externalivr.c which improves functionality and adds support for
socket connections instead of running an application.  However, I
can't seem to get the audio to play when it uses the socket
connection.

I've also attached a simple script that plays a standard prompt and
here is the dialplan entries to  play the script:

[EIVRBeep]
exten => s,1,Answer()
exten => s,n,ExternalIVR(/root/play_beep.sh)

That will play the beep audio file in the asterisk sounds directory.

Changing the dialplan to:
[EIVRBeep]
exten => s,1,Answer()
exten => s,n,ExternalIVR(ivr://localhost:2949)

You should be able to have netcat listen to port 2949
    nc -l -p 2949
and have asterisk connect to that.  Then, typing the following in the
nc session should do the same thing:
P,FOO
O,autoclear
A,beep

It doesn't play the audio and I can't seem to figure out why.  I'm
guessing the generator isn't working as expected?
====================================================================== 

---------------------------------------------------------------------- 
 ctooley - 08-07-07 18:47  
---------------------------------------------------------------------- 
Last 2 files work.  ExternalIVR now supports socket mode via:

ExternalIVR(ivr://host:port|arg1|arg2|etc)

And DeadExternalIVR is now included so that an ExternalIVR connection can
be made on a hung up channel.  This could probably be implemented in
ExternalIVR with some channel status checks, but this works fine. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-07-07 18:47  ctooley        Note Added: 0068563                          
======================================================================




More information about the asterisk-bugs mailing list