[asterisk-bugs] [Asterisk 0014251]: Externalivr not sending 'H' event on channel hangup.

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Feb 9 11:47:28 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14251 
====================================================================== 
Reported By:                chris-mac
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   14251
Category:                   Applications/app_externalivr
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 168551 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-01-15 08:20 CST
Last Modified:              2009-02-09 11:47 CST
====================================================================== 
Summary:                    Externalivr not sending 'H' event on channel hangup.
Description: 
How to reproduce:

extensions.conf
-------%<--------------------------
exten => _X.,1,Answer()
exten => _X.,n,ExternalIVR(/enc/etc/asterisk/ivr/test.sh)
exten => _X.,n,Hangup()
----------%<------------------------

test.sh
-----%<------------------------------------
#!/bin/bash
echo "S,/var/lib/asterisk/sounds/demo-congrats"
while true; do
  read stdin
  echo $stdin >> /tmp/ivr.log

  if [ "${stdin:0:1}" = "H" ]; then
    exit;
  fi
done
-----%<-------------------------------

Run:
$ tail -f /tmp/ivr.log

dial with any SIP phone into IVR. DTMF can be seen in /tmp/ivr.log just
fine. But when phone disconnects, no 'H' event is sent and test.sh
continues to run for ever.
====================================================================== 

---------------------------------------------------------------------- 
 (0099718) svnbot (reporter) - 2009-02-09 11:47
 http://bugs.digium.com/view.php?id=14251#c99718 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 174330

_U  branches/1.6.1/
U   branches/1.6.1/apps/app_externalivr.c

------------------------------------------------------------------------
r174330 | dvossel | 2009-02-09 11:47:27 -0600 (Mon, 09 Feb 2009) | 15
lines

Merged revisions 174325 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174325 | dvossel | 2009-02-09 11:26:02 -0600 (Mon, 09 Feb 2009) | 9
lines
  
  Fixes issue with hangups not being sent and external process never
terminating. 
  
  The ignore_hangup, run_dead, and noanswer flags were never initilized to
zero causing hangups to never be issued.  If the external script expects to
be notified of a hangup and never receives one, it runs indefinitely. 
  
  (closes issue http://bugs.digium.com/view.php?id=14251)
  Reported by: chris-mac
  Tested by: dvossel
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=174330 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-09 11:47 svnbot         Checkin                                      
2009-02-09 11:47 svnbot         Note Added: 0099718                          
======================================================================




More information about the asterisk-bugs mailing list