Summary:ASTERISK-17693: Asterisk Crash many times a day when receiving calls from Dahdi to sip
Reporter:Ihab Tawfig (ihabtawfig)Labels:
Date Opened:2011-04-14 13:48:16Date Closed:2011-06-07 14:01:08
Versions:1.8.3 Frequency of
Environment:Attachments:( 0) backtrace.txt
Description:asterisk crash when a call enter a queue with local channels member on their sip phones, dahdi channels from PRI then get disconnected aftet 15 sec. till we remove all agents from the queue and put them back again.
we are using Linux Server Fedora Core 12 kernel #1 SMB
Digium Card TE410P


core file outputs with gdb bt:

#0  0x0000003c1827d1ea in __strchr_sse2 () from /lib64/libc.so.6
#1  0x00007fc46e1332ea in sip_request_call (type=0x7fc3dfd8cf80 "SIP", format=8, requestor=0x7fc3c80204f8, data=0x7fc3dfd8dd60, cause=0x7fc3dfd8de6c)
   at chan_sip.c:25107
#2  0x0000000000473c7f in ast_request (type=0x7fc3dfd8cf80 "SIP", format=8, requestor=0x7fc3c80204f8, data=0x7fc3dfd8dd60, cause=0x7fc3dfd8de6c)
   at channel.c:5400
#3  0x00007fc46960872f in dial_exec_full (chan=0x7fc3c80204f8, data=0x7fc3dfd904c0 "SIP/,30,rotwh", peerflags=0x7fc3dfd8e2d0, continue_exec=0x0)
   at app_dial.c:2036
#4  0x00007fc46960ca82 in dial_exec (chan=0x7fc3c80204f8, data=0x7fc3dfd904c0 "SIP/,30,rotwh") at app_dial.c:2741
ASTERISK-1  0x00000000004f6420 in pbx_exec (c=0x7fc3c80204f8, app=0x93e1130, data=0x7fc3dfd904c0 "SIP/,30,rotwh") at pbx.c:1407
ASTERISK-2  0x00000000004ffffc in pbx_extension_helper (c=0x7fc3c80204f8, con=0x0, context=0x7fc3c8020a50 "agents", exten=0x7fc3c8020aa0 "2001", priority=1,
   label=0x0, callerid=0x7fc3c8018320 "912240280", action=E_SPAWN, found=0x7fc3dfd92bb0, combined_find_spawn=1) at pbx.c:4086
ASTERISK-3  0x00000000005019c1 in ast_spawn_extension (c=0x7fc3c80204f8, context=0x7fc3c8020a50 "agents", exten=0x7fc3c8020aa0 "2001", priority=1,
   callerid=0x7fc3c8018320 "912240280", found=0x7fc3dfd92bb0, combined_find_spawn=1) at pbx.c:4605
ASTERISK-4  0x000000000050243b in __ast_pbx_run (c=0x7fc3c80204f8, args=0x0) at pbx.c:4703
ASTERISK-5  0x0000000000503fe7 in pbx_thread (data=0x7fc3c80204f8) at pbx.c:5014
ASTERISK-6 0x0000000000558281 in dummy_start (data=0x7fc3c80185b0) at utils.c:971
ASTERISK-7 0x0000003c18a06a3a in start_thread () from /lib64/libpthread.so.0
ASTERISK-8 0x0000003c182ddf3d in clone () from /lib64/libc.so.6
ASTERISK-9 0x0000000000000000 in ?? ()
Comments:By: Alec Davis (alecdavis) 2011-04-18 00:53:22

dialplan example I used
exten => 8687,1,Dial(SIP/,30,rotwh)

segfaults. on and

Works on 1.8.4-rc2 and trunk
console output from 1.8.4-rc2
   -- Executing [8687@incoming:1] Dial("DAHDI/i1/5604866-1", "SIP/,30,rotwh") in new stack
[Apr 18 17:37:55] WARNING[7868]: app_dial.c:1950 dial_exec_full: Dial argument takes format (technology/[device:]number1)

workaround may be as simple as working out why you havn't got a valid device.

By: Alec Davis (alecdavis) 2011-04-18 00:56:47

Configuration issue using invalid device, Plus is fixed in later releases.

Please feel free to reopen this if this is not the case.