[Home]

Summary:ASTERISK-06446: ParkAndAnnounce calls Asterisk to crash.
Reporter:Chris Hozian (chozian)Labels:
Date Opened:2006-03-20 16:49:53.000-0600Date Closed:2008-01-15 17:43:40.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Applications/app_parkandannounce
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) gdb_output.txt
Description:I am able to reproduce a crash in Asterisk simply by calling the ParkAndAnnounce application in my dial plan.

****** ADDITIONAL INFORMATION ******

extensions.conf section:

exten => 3055,1,ParkAndAnnounce(pbx-transfer:PARKED|60|SIP/linphone|internal,3025,1

----

Asterisk CLI Output:

 == Parsing '/etc/asterisk/asterisk.conf': Found
 == Parsing '/etc/asterisk/extconfig.conf': Found
 == Binding extensions to odbc/mysql1/extensions_table
Asterisk SVN-trunk-r13637M, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'show license' for details.
=========================================================================
Connected to Asterisk SVN-trunk-r13637M currently running on trance (pid = 8665)
trance*CLI> Verbosity is at least 3
[trance*CLI>     -- Accepted AUTHENTICATED TBD call from 192.168.254.4
[trance*CLI>     -- Accepting DIAL from 192.168.254.4, formats = 0x4
[trance*CLI>     -- Executing NoOp("IAX2/iaxys101i-11", "Cortelco 274701") in new stack
   -- Executing Macro("IAX2/iaxys101i-11", "voicemail|SIP/cortelco274701|3025") in new stack
   -- Executing Dial("IAX2/iaxys101i-11", "SIP/cortelco274701|20|rtj") in new stack
[trance*CLI> Mar 20 16:33:06 DEBUG[8725]: chan_sip.c:2127 sip_call: Outgoing Call for cortelco274701
   -- Called cortelco274701
[trance*CLI> Mar 20 16:33:06 DEBUG[8682]: chan_iax2.c:6923 socket_process: Ooh, voice format changed to 4
[trance*CLI>     -- SIP/cortelco274701-3914 is ringing
[trance*CLI> Mar 20 16:33:07 DEBUG[8697]: chan_sip.c:1447 __sip_ack: Acked pending invite 102
Mar 20 16:33:07 DEBUG[8697]: chan_sip.c:6205 build_route: build_route: Contact hop: <sip:cortelco274701@192.168.254.5:5060>
[trance*CLI>     -- SIP/cortelco274701-3914 answered IAX2/iaxys101i-11
[trance*CLI> Mar 20 16:33:09 DTMF[8725]: channel.c:1920 __ast_read: DTMF '#' received on SIP/cortelco274701-3914
Mar 20 16:33:09 DEBUG[8725]: channel.c:3351 ast_generic_bridge: Got DTMF on channel (SIP/cortelco274701-3914)
Mar 20 16:33:09 DEBUG[8725]: channel.c:3598 ast_channel_bridge: Bridge stops bridging channels IAX2/iaxys101i-11 and SIP/cortelco274701-3914
Mar 20 16:33:09 DEBUG[8725]: res_features.c:973 ast_feature_interpret: Feature interpret: chan=IAX2/iaxys101i-11, peer=SIP/cortelco274701-3914, sense=2, features=2
Mar 20 16:33:09 DEBUG[8725]: res_features.c:1445 ast_bridge_call: Set time limit to 500
[trance*CLI> Mar 20 16:33:09 DTMF[8725]: channel.c:1920 __ast_read: DTMF '1' received on SIP/cortelco274701-3914
Mar 20 16:33:09 DEBUG[8725]: channel.c:3351 ast_generic_bridge: Got DTMF on channel (SIP/cortelco274701-3914)
Mar 20 16:33:09 DEBUG[8725]: channel.c:3598 ast_channel_bridge: Bridge stops bridging channels IAX2/iaxys101i-11 and SIP/cortelco274701-3914
Mar 20 16:33:09 DEBUG[8725]: res_features.c:973 ast_feature_interpret: Feature interpret: chan=IAX2/iaxys101i-11, peer=SIP/cortelco274701-3914, sense=2, features=2
   -- Started music on hold, class 'default', on IAX2/iaxys101i-11
Mar 20 16:33:09 DEBUG[8725]: channel.c:1704 ast_settimeout: Scheduling timer at 160 sample intervals
Mar 20 16:33:09 DEBUG[8725]: channel.c:1704 ast_settimeout: Scheduling timer at 160 sample intervals
   -- Playing 'pbx-transfer' (language 'en')
[trance*CLI> Mar 20 16:33:09 DEBUG[8730]: channel.c:1988 __ast_read: Generator got voice, switching to phase locked mode
[trance*CLI> Mar 20 16:33:09 DEBUG[8730]: channel.c:1704 ast_settimeout: Scheduling timer at 0 sample intervals
[trance*CLI> Mar 20 16:33:10 DTMF[8725]: channel.c:1920 __ast_read: DTMF '3' received on SIP/cortelco274701-3914
Mar 20 16:33:10 DEBUG[8725]: channel.c:1704 ast_settimeout: Scheduling timer at 0 sample intervals
Mar 20 16:33:10 DEBUG[8725]: channel.c:1704 ast_settimeout: Scheduling timer at 160 sample intervals
[trance*CLI> Mar 20 16:33:10 DEBUG[8725]: channel.c:1988 __ast_read: Generator got voice, switching to phase locked mode
Mar 20 16:33:10 DEBUG[8725]: channel.c:1704 ast_settimeout: Scheduling timer at 0 sample intervals
[trance*CLI> Mar 20 16:33:10 DTMF[8725]: channel.c:1920 __ast_read: DTMF '0' received on SIP/cortelco274701-3914
Mar 20 16:33:10 DEBUG[8725]: channel.c:1704 ast_settimeout: Scheduling timer at 0 sample intervals
[trance*CLI> Mar 20 16:33:10 DTMF[8725]: channel.c:1920 __ast_read: DTMF '5' received on SIP/cortelco274701-3914
[trance*CLI> Mar 20 16:33:11 DTMF[8725]: channel.c:1920 __ast_read: DTMF '5' received on SIP/cortelco274701-3914
[trance*CLI>     -- Stopped music on hold on IAX2/iaxys101i-11
Mar 20 16:33:11 DEBUG[8725]: channel.c:1704 ast_settimeout: Scheduling timer at 0 sample intervals
[trance*CLI> Executing last minute cleanups

----

I have attached the unoptimized gdb output below.

----

Please let me know if you require any additional information.

Comments:By: Chris Hozian (chozian) 2006-03-20 16:51:07.000-0600

There is a close parentheses on the ParkAndAnnounce application line in my dial plan.  I just had a typo when I entered it above.

By: Russell Bryant (russell) 2006-03-21 12:24:19.000-0600

this should now be fixed in both the 1.2 branch and the trunk, in revisions 13961 and 13962.  Please let me know if you still have a problem.  Thanks!

By: Digium Subversion (svnbot) 2008-01-15 17:43:39.000-0600

Repository: asterisk
Revision: 13961

U   branches/1.2/res/res_features.c

------------------------------------------------------------------------
r13961 | russell | 2008-01-15 17:43:39 -0600 (Tue, 15 Jan 2008) | 3 lines

fix crash when using the ParkAndAnnounce application.  When using this application,
there will be no peer channel to play the parking announcement to. (issue ASTERISK-6446)

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

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

By: Digium Subversion (svnbot) 2008-01-15 17:43:40.000-0600

Repository: asterisk
Revision: 13962

_U  trunk/
U   trunk/res/res_features.c

------------------------------------------------------------------------
r13962 | russell | 2008-01-15 17:43:40 -0600 (Tue, 15 Jan 2008) | 11 lines

Merged revisions 13961 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r13961 | russell | 2006-03-21 13:21:47 -0500 (Tue, 21 Mar 2006) | 3 lines

fix crash when using the ParkAndAnnounce application.  When using this application,
there will be no peer channel to play the parking announcement to. (issue ASTERISK-6446)

........

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

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