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

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Oct 2 14:22:29 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:              10-02-2007 14:22 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?
====================================================================== 

---------------------------------------------------------------------- 
 juggie - 10-02-07 14:22  
---------------------------------------------------------------------- 
My thoughts:

1) Follow the model of agi in trunk, there is no need for a
DeadExternalIVR, when ExternalIVR runs let it decide which mode to run in
based on the channel status.

2) Allow a call to transition from live -> dead mode if a user hangs up
and the external ivr writer wishes to do so.  (much like you can ignore a
sighup from agi and continue talking to asterisk)

3) Flag the externalivr commands as being avail on live only, or both live
and dead.  If a user tries to use a live command on a dead channel, yell at
them.

4) Network support is a great idea! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-02-07 14:22  juggie         Note Added: 0071346                          
======================================================================




More information about the asterisk-bugs mailing list