[asterisk-bugs] [Asterisk 0014757]: 'h' extension not being executed, if caller hangs up before call is answered

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Mar 25 22:34:15 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14757 
====================================================================== 
Reported By:                alecdavis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14757
Category:                   Applications/app_macro
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 181371 
Request Review:              
====================================================================== 
Date Submitted:             2009-03-25 16:41 CDT
Last Modified:              2009-03-25 22:34 CDT
====================================================================== 
Summary:                    'h' extension not being executed, if caller hangs up
 before call is answered
Description: 
We have a loop that clears the MYSQL connection that was used for the
call.

This used to work, but now we are seeing leaking conenctions, 1 for each
early hangup.





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

---------------------------------------------------------------------- 
 (0102210) alecdavis (reporter) - 2009-03-25 22:34
 http://bugs.digium.com/view.php?id=14757#c102210 
---------------------------------------------------------------------- 
However using Gosub instead of Macro works as expected.

dialplan code:
;exten => 8329,1,Macro(h_bug)
exten => 8329,1,Gosub(testing,s,1)
exten => 8329,n,Hangup()

[macro-h_bug]
exten => s,1,NoOp('h' extension macro test)
exten => s,n,Dial(SIP/GXP3009,5,r)
exten => s,n,NoOp(DIALSTATUS=${DIALSTATUS})
exten => h,1,NoOp(==========  'h' extension would successfully execute
=============)

[testing]
exten => s,1,NoOp('h' extension gosub test)
exten => s,n,Dial(SIP/GXP3009,5,r)
exten => s,n,NoOp(DIALSTATUS=${DIALSTATUS})
exten => h,1,NoOp(==========  'h' extension would successfully execute
=============)


console output, caller hangsup before call is answered:
!! Unknown IE 50 (cs5, Unknown Information Element)
    -- Accepting call from '5604866' to '8329' on channel 0/1, span 1
    -- Executing [8329 at incoming:1] Gosub("DAHDI/1-1", "testing,s,1") in
new stack
    -- Executing [s at testing:1] NoOp("DAHDI/1-1", "'h' extension gosub
test") in new stack
    -- Executing [s at testing:2] Dial("DAHDI/1-1", "SIP/GXP3009,5,r") in new
stack
  == Using SIP RTP CoS mark 5
    -- Called GXP3009
    -- SIP/GXP3009-0846f750 is ringing
    -- Channel 0/1, span 1 got hangup request, cause 16
  == Spawn extension (testing, s, 2) exited non-zero on 'DAHDI/1-1'
    -- Executing [h at testing:1] NoOp("DAHDI/1-1", "==========  'h'
extension would successfully execute =============") in new stack
    -- Hungup 'DAHDI/1-1'
chch1*CLI> quit

console output, caller hangsup after call is answered:

!! Unknown IE 50 (cs5, Unknown Information Element)
    -- Executing [8329 at incoming:1] Gosub("DAHDI/1-1", "testing,s,1") in
new stack
    -- Executing [s at testing:1] NoOp("DAHDI/1-1", "'h' extension gosub
test") in new stack
    -- Executing [s at testing:2] Dial("DAHDI/1-1", "SIP/GXP3009,5,r") in new
stack
  == Using SIP RTP CoS mark 5
    -- Called GXP3009
    -- Accepting call from '5604866' to '8329' on channel 0/1, span 1
    -- SIP/GXP3009-0846f750 is ringing
    -- SIP/GXP3009-0846f750 answered DAHDI/1-1
    -- Executing [h at testing:1] NoOp("DAHDI/1-1", "==========  'h'
extension would successfully execute =============") in new stack
  == Spawn extension (testing, s, 2) exited non-zero on 'DAHDI/1-1'
    -- Hungup 'DAHDI/1-1' 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-25 22:34 alecdavis      Note Added: 0102210                          
======================================================================




More information about the asterisk-bugs mailing list