[asterisk-bugs] [Asterisk 0014811]: DeadAGI at h extension

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Apr 3 15:40:29 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14811 
====================================================================== 
Reported By:                hoaianh
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14811
Category:                   Resources/res_agi
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.4.24 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-04-02 07:54 CDT
Last Modified:              2009-04-03 15:40 CDT
====================================================================== 
Summary:                    DeadAGI at h extension
Description: 
I make outgoing call with the context

[out]
exten => s,1,Anser()
exten => s,n,Playback(tt-weasels)
exten => s,n,Dial(ss7/out/123456789)
exten => s,n,Hangup()

exten => h,1,DeadAgi(agi://agi-server/script)

The problem is when leg A is hang up it works fine but if leg B is hang up
I get 
--> deadagi_exec: Running DeadAGI on a live channel will cause problems,
please use AGI

This one seems to be very close to issue 0014624 but the major difference
is that always happens.

On another box with 1.4.19.2 it works just fine.


====================================================================== 

---------------------------------------------------------------------- 
 (0102703) juggie (manager) - 2009-04-03 15:40
 http://bugs.digium.com/view.php?id=14811#c102703 
---------------------------------------------------------------------- 
Ok Per the debug i can see the softhangup of the SS7/siuc/13 channel does
not happen until after DeadAGI has been run.  Also your Hangup() is never
run because once there is a hangup Dial() exits and the call jumps to the h
exten.  If i'm correct you should be able to solve this by passing the g
option to your dial, this will force the dialplan to continue and Hangup()
to run when the callee (as opposed to the caller) hangs up and a result the
channel should be hungup when DeadAGI runs.  You could also try adding
h,1,Hangup() as the first step in your h extension.  I think either should
work, but the first solution would be the most appropriate.  Let us know if
that works and we'll close this issue. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-03 15:40 juggie         Note Added: 0102703                          
======================================================================




More information about the asterisk-bugs mailing list