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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Oct 20 18:09:46 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:                     feedback
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-20 18:09 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0112503) ajohnson (reporter) - 2009-10-20 18:09
 https://issues.asterisk.org/view.php?id=16106#c112503 
---------------------------------------------------------------------- 
Example 1:
[general]
static=yes
writeprotect=no
;autofallthrough=no
;extenpatternmatchnew=no
clearglobalvars=no
;priorityjumping=yes
;userscontext=default
;#include "filename.conf"

[default]

[from-test]
exten => _X.,1,Dial(SIP/sbc/${EXTEN}))
exten => _X.,n,Goto(s-${DIALSTATUS})

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

exten => _s-.,2,Hangup()

exten => h,1,NoOp(Hangup!)

  == Using SIP RTP CoS mark 5
    -- Executing [6026251615 at from-test:1] Dial("SIP/ajohnson-b79aab20",
"SIP/sbc/6026251615)") in new stack
  == Using SIP RTP CoS mark 5
    -- Called sbc/6026251615)
    -- SIP/sbc-b77033e0 answered SIP/cbates-0933c748
    -- SIP/sbc-094ee6a0 is ringing
    -- SIP/sbc-094ee6a0 is making progress passing it to
SIP/ajohnson-b79aab20
    -- SIP/sbc-094ee6a0 answered SIP/ajohnson-b79aab20
    -- Executing [h at from-test:1] NoOp("SIP/ajohnson-b79aab20", "Hangup!")
in new stack
  == Spawn extension (from-test, 6026251615, 1) exited non-zero on
'SIP/ajohnson-b79aab20'
    -- Executing [h at from-test:1] NoOp("SIP/ajohnson-b79aab20", "Hangup!")
in new stack

===========================================================================================
Example 2:

[from-test]
exten => _X.,1,Dial(SIP/sbc/${EXTEN}))
;exten => _X.,n,Goto(s-${DIALSTATUS})

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

exten => _s-.,2,Hangup()

exten => h,1,NoOp(Hangup!)


  == Using SIP RTP CoS mark 5
    -- Executing [6026251615 at from-test:1] Dial("SIP/ajohnson-09524620",
"SIP/sbc/6026251615)") in new stack
  == Using SIP RTP CoS mark 5
    -- Called sbc/6026251615)
    -- SIP/sbc-0951c250 is ringing
    -- SIP/sbc-0951c250 is making progress passing it to
SIP/ajohnson-09524620
    -- SIP/sbc-0951c250 answered SIP/ajohnson-09524620
    -- Executing [h at from-test:1] NoOp("SIP/ajohnson-09524620", "Hangup!")
in new stack
  == Spawn extension (from-test, 6026251615, 1) exited non-zero on
'SIP/ajohnson-09524620'
    -- Executing [h at from-test:1] NoOp("SIP/ajohnson-09524620", "Hangup!")
in new stack

===========================================================================================
Example 3:

[from-test]
exten => _X.,1,Dial(SIP/sbc/${EXTEN}))
;exten => _X.,n,Goto(s-${DIALSTATUS})

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

;exten => _s-.,2,Hangup()

exten => h,1,NoOp(Hangup!)

  == Using SIP RTP CoS mark 5
    -- Executing [6026251615 at from-test:1] Dial("SIP/ajohnson-b7b77808",
"SIP/sbc/6026251615)") in new stack
  == Using SIP RTP CoS mark 5
    -- Called sbc/6026251615)
    -- SIP/sbc-0933b460 is ringing
    -- SIP/sbc-0933b460 is making progress passing it to
SIP/ajohnson-b7b77808
    -- SIP/sbc-0933b460 answered SIP/ajohnson-b7b77808
    -- Executing [h at from-test:1] NoOp("SIP/ajohnson-b7b77808", "Hangup!")
in new stack
  == Spawn extension (from-test, 6026251615, 1) exited non-zero on
'SIP/ajohnson-b7b77808'
    -- Executing [h at from-test:1] NoOp("SIP/ajohnson-b7b77808", "Hangup!")
in new stack


===========================================================================================
[from-test]
exten => _X.,1,Dial(SIP/sbc/${EXTEN}))
;exten => _X.,n,Goto(s-${DIALSTATUS})

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

;exten => _s-.,2,Hangup()

exten => h,1,NoOp(Hangup!)
exten => h,n,Hangup()

  == Using SIP RTP CoS mark 5
    -- Executing [6026251615 at from-test:1] Dial("SIP/ajohnson-b7b777b8",
"SIP/sbc/6026251615)") in new stack
  == Using SIP RTP CoS mark 5
    -- Called sbc/6026251615)
    -- SIP/sbc-09339250 is ringing
    -- SIP/sbc-09339250 is making progress passing it to
SIP/ajohnson-b7b777b8
    -- SIP/sbc-09339250 answered SIP/ajohnson-b7b777b8
    -- Executing [h at from-test:1] NoOp("SIP/ajohnson-b7b777b8", "Hangup!")
in new stack
    -- Executing [h at from-test:2] Hangup("SIP/ajohnson-b7b777b8", "") in
new stack
  == Spawn extension (from-test, h, 2) exited non-zero on
'SIP/ajohnson-b7b777b8'
  == Spawn extension (from-test, 6026251615, 1) exited non-zero on
'SIP/ajohnson-b7b777b8'
    -- Executing [h at from-test:1] NoOp("SIP/ajohnson-b7b777b8", "Hangup!")
in new stack
    -- Executing [h at from-test:2] Hangup("SIP/ajohnson-b7b777b8", "") in
new stack
  == Spawn extension (from-test, h, 2) exited non-zero on
'SIP/ajohnson-b7b777b8' 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-20 18:09 ajohnson       Note Added: 0112503                          
======================================================================




More information about the asterisk-bugs mailing list