Summary:ASTERISK-10952: Good time fun crash when using Dial()
Reporter:Leif Madsen (lmadsen)Labels:
Date Opened:2007-12-03 05:49:41.000-0600Date Closed:2007-12-03 08:12:40.000-0600
Versions:Frequency of
Environment:Attachments:( 0) backtrace.txt
Description:Thought I was doing some simple stuff... guess not. Crashed Asterisk!

While ringing 3 devices, I hit reject on one of them (the X-Lite softphone), which after a few seconds gives the following output.

I'm also attaching a backtrace.

   -- Executing [s@sub-phones:20] Dial("SIP/lmentinc_pbx#lmentinc-14d4f000", "SIP/leifmadsen_desk&SIP/leifmadsen_laptop&SIP/leifmadsen_cell,24") in new stack
 == Using TOS bits 0
 == Using CoS mark 5
   -- Called leifmadsen_desk
 == Using TOS bits 0
 == Using CoS mark 5
   -- Called leifmadsen_laptop
 == Using TOS bits 0
 == Using CoS mark 5
   -- Called leifmadsen_cell
   -- SIP/leifmadsen_desk-14d57b20 is ringing
   -- SIP/leifmadsen_laptop-14d5fde0 is ringing
   -- SIP/leifmadsen_cell-14d64130 is ringing
   -- Got SIP response 480 "Temporarily Unavailable" back from
   -- SIP/leifmadsen_laptop-14d5fde0 is circuit-busy
Disconnected from Asterisk server
Executing last minute cleanups


I can give access to the box. Will attempt to reproduce in the morning (probably afternoon... it's nearly 7AM now...)
Comments:By: Digium Subversion (svnbot) 2007-12-03 08:12:39.000-0600

Repository: asterisk
Revision: 90508

U   trunk/apps/app_dial.c

r90508 | file | 2007-12-03 08:12:39 -0600 (Mon, 03 Dec 2007) | 4 lines

Remove the file descriptors from the main poll channel when the channel is hung up during the dialing attempt, and make sure a channel exists before trying to remove it at the end.
(closes issue ASTERISK-10952)
Reported by: blitzrage