[asterisk-bugs] [Asterisk 0016106]: Hangup extension executed twice in 1.6.2 RC2

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 22 13:44:05 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16106 
====================================================================== 
Reported By:                ajohnson
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16106
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     confirmed
Target Version:             1.6.2.1
Asterisk Version:           1.6.2.0-rc3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-20 16:09 CDT
Last Modified:              2009-10-22 13:44 CDT
====================================================================== 
Summary:                    Hangup extension executed twice in 1.6.2 RC2
Description: 
When a user hangs up a call, in certain circumstances, the hangup extension
can end up being executed twice.

If I comment out this section of my dialplan, the hangup extension is only
executed once:

exten => _X.,n,Goto(s-${DIALSTATUS})

exten => s-CONGESTION,1,Congestion(5)
exten => s-BUSY,1,Busy(5)
exten => s-.,1,Congestion(5)

Otherwise, the hangup extension is executed twice.  The odd thing is that
the console output does not display that the code above is being executed.
====================================================================== 

---------------------------------------------------------------------- 
 (0112624) ebroad (manager) - 2009-10-22 13:44
 https://issues.asterisk.org/view.php?id=16106#c112624 
---------------------------------------------------------------------- 
I can confirm this on SVN trunk as well. The interesting thing is, if I
comment out the following while loop in pbx.c(line 4777 or so):

	while ((res = ast_spawn_extension(c, c->context, c->exten, c->priority,
c->cid.cid_num, &found, 1)) == 0) {
			c->priority++;
		}

the h extension works as expected. A cursory look at the code looks like
the h extension would never get executed if that code is missing... 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-22 13:44 ebroad         Note Added: 0112624                          
======================================================================




More information about the asterisk-bugs mailing list