[asterisk-bugs] [Asterisk 0013548]: exten = 2813, n, Queue(test, c, , , , , , inqueue) craches when went into invalid extension

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 3 11:07:05 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13548 
====================================================================== 
Reported By:                fiddur
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   13548
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0-rc6 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0 
SVN Revision (number only!): 143608 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-24 03:11 CDT
Last Modified:              2008-12-03 11:07 CST
====================================================================== 
Summary:                    exten = 2813,n, Queue(test,c,,,,,,inqueue)  craches
when went into invalid extension
Description: 
With empty [default] context and no context set for queue test, I had this
in context [local_phones]:

exten = 2813,1, Answer
exten = 2813,n, Queue(test,c,,,,,,inqueue)
exten = 2813,n, Hangup

exten = 2813,n(inqueue), NoOp(Call taken by ${MEMBERINTERFACE})
exten = 2813,n, Return

Yes, that's a misinterpretation of the gosub-statement, I have realised.
When a call came into 2813, and answered by a queuemember, asterisk shuts
down silently:

    -- Executing [2813 at local_phones:1] Answer("SIP/3004-082b9b10", "") in
new stack
    -- Executing [2813 at local_phones:2] Queue("SIP/3004-082b9b10",
"test,c,,,,,,inqueue") in new stack
    -- Started music on hold, class 'default', on SIP/3004-082b9b10
    -- SIP/3010-082bf340 is ringing
c042*CLI> 
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk ending (0).


The first time it happened, I also got:
[2008-09-24 09:41:20] WARNING[23423] pbx.c: Channel 'SIP/3003-b816e6d0'
sent into invalid extension 's' in context 'default', but no invalid
handler

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

---------------------------------------------------------------------- 
 (0095731) svnbot (reporter) - 2008-12-03 11:07
 http://bugs.digium.com/view.php?id=13548#c95731 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 160555

U   trunk/apps/app_queue.c

------------------------------------------------------------------------
r160555 | mmichelson | 2008-12-03 11:07:04 -0600 (Wed, 03 Dec 2008) | 11
lines

When investigating issue http://bugs.digium.com/view.php?id=13548, I found that
gosub
handling in app_queue was just completely wrong, mostly
because the channel operations being performed were being
done on the incorrect channel.

With this set of changes, a gosub will correctly run on
the answering queue member's channel. There are still crash
issues which occur if there are dialplan syntax errors, so
I cannot yet close the referenced issue.


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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-03 11:07 svnbot         Checkin                                      
2008-12-03 11:07 svnbot         Note Added: 0095731                          
======================================================================




More information about the asterisk-bugs mailing list