Summary:ASTERISK-07370: park, parkedcall is causing asterisk to crash
Reporter:Mats Karlsson (matsk)Labels:
Date Opened:2006-07-20 14:57:09Date Closed:2006-07-26 23:46:25
Versions:Frequency of
Environment:Attachments:( 0) console-0007565.txt
Description:When using Parked, ParkedCalls in the extension causes asterisk to crash if it times out.

exten => 234,1,Answer()
exten => 234,2,set(PARKINGEXTEN=001)
exten => 234,3,Park()


First did I dial 234 and when that dial hits the TimeOut (Default 45 seconds) asterisk just dies.
Comments:By: Serge Vecher (serge-v) 2006-07-20 15:01:03

well, you don't have to be so humble; a crash is a 'crash' severity, not 'minor' . Can you please get a backtrace from a core. Build asterisk with 'make dont-optimize' ....

By: Serge Vecher (serge-v) 2006-07-20 15:01:42

sorry, since you are using trunk, just select DONT OPTIMIZE under build option in menuselect.

By: Mats Karlsson (matsk) 2006-07-21 11:48:01

#0  0x00ae6f83 in strlen () from /lib/tls/libc.so.6
#1  0x00abb1a5 in vfprintf () from /lib/tls/libc.so.6
#2  0x00ad87a6 in vsnprintf () from /lib/tls/libc.so.6
#3  0x080bfd98 in ast_device_state_changed (fmt=0xe2df32 "park:%s@%s") at devicestate.c:343
#4  0x00e25ed6 in notify_metermaids (exten=0x10 "", context=0xe31540 "parkedcalls") at res_features.c:281
ASTERISK-1  0x00e2aaed in do_parking_thread (ignore=0x0) at res_features.c:1570
ASTERISK-2  0x080bbfc9 in dummy_start (data=0x9747430) at utils.c:528
ASTERISK-3  0x00bec371 in start_thread () from /lib/tls/libpthread.so.0
ASTERISK-4  0x00b459be in clone () from /lib/tls/libc.so.6

By: Serge Vecher (serge-v) 2006-07-21 11:57:03

1) Prepare test environment (reduce the ammount of unrelated traffic on the server);
2) Make sure your logger.conf has the following line:
  console => notice,warning,error,debug
3) restart Asterik.
4) Enable SIP transaction logging with the following CLI commands:
set debug 4
set verbose 4
sip debug
5) Save complete console log to file and _attach_ said file to the bug.

By: Mats Karlsson (matsk) 2006-07-21 12:17:50

File with console output added after following the instructions abowe.

By: Serge Vecher (serge-v) 2006-07-21 12:21:17

oej: looks like this is related to the new metermaids.

By: Russell Bryant (russell) 2006-07-26 23:46:24

Fixed in the trunk in revision 38330, thanks for the report!