Hi, I am having a problem with (Asterisk is crashing) with a Fritz card PCI / chan_capi.
Receiving Calls from PSTN works, but outbound calls make asterisk crash (Speicherzugriffsfehler/Segmentation fault). The crash occurs upon dialing with the other phone not even ringing. I hereby ask if somebody reading this list can confirm or disprove my issue. Does anbody run a recent asterisk 2.6 with chan_capi? Config files and backtraces are attached. Many thanks in advance. Daniel Versions: - Debian 5.0.4 Kernel 2.6.26-2-686 - Asterisk 1.6.2.5 from Digium homepage - AVM Audiovisuelles MKTG & Computer System GmbH A1 ISDN [Fritz] (rev 02) - fritz-fcpci-src-2.6.24-2.6.28 - chan-capi-trunk (rev. 769) /etc/asterisk/extensions.conf ----------------------------- [default] exten => 304,1,Dial(SIP/304) exten => 305,1,Dial(SIP/305) ;To PSTN exten => _0.,1,Dial(CAPI/ISDN1/${EXTEN}) ;From PSTN [isdn-in] exten => 1234567,1,Dial(SIP/304) exten => 1234568,1,Dial(SIP/305) /etc/asterisk/capi.conf ----------------------- [general] nationalprefix=0 ; or for example "+49" internationalprefix=00 ; or for example "+" rxgain=1.0 ;linear receive gain (1.0 = no change) txgain=1.0 ;linear transmit gain (1.0 = no change) language=de ;set default language [ISDN1] isdnmode=msn ;'MSN' (point-to-multipoint, Mehrgeraeteanschluss) or 'DID' (direct inward dial) incomingmsn=* ;allow incoming calls to this list of MSNs/DIDs, * = any controller=1 ;CAPI controller number of this interface/port group=1 ;dialout group softdtmf=on ;enable/disable software DTMF detection, recommended for AVM cards relaxdtmf=on ;in addition to softdtmf, you can use relaxed DTMF detection faxdetect=off ;enable faxdetection and redirection to EXTEN 'fax' for incoming and/or faxdetecttime=0 ;Only detect faxes during the first 'n' seconds of the call. context=isdn-in ;context for incoming calls echocancelold=yes ;use facility selector 6 instead of correct 8 (necessary for older eicon drivers) devices=2 ;number of concurrent calls (B-Channels) on this controller Asterisk console output ----------------------- srvpbx:/usr/src/chan-capi-trunk# asterisk -gc Asterisk 1.6.2.5, Copyright (C) 1999 - 2009 Digium, Inc. and others. Created by Mark Spencer <marks...@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core 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 'core show license' for details. ======================================================================== = [ Booting... [ Reading Master Configuration ] [ Initializing Custom Configuration Options ] [Mar 9 10:17:53] NOTICE[29368]: cdr.c:1473 do_reload: CDR simple logging enabled. [Mar 9 10:17:53] NOTICE[29368]: loader.c:1044 load_modules: 172 modules will be loaded. .....[Mar 9 10:17:53] NOTICE[29368]: res_smdi.c:1361 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener. ........................[Mar 9 10:17:53] WARNING[29368]: chan_dahdi.c:17018 process_dahdi: Ignoring any changes to 'userbase' (on reload) at line 23. [Mar 9 10:17:53] WARNING[29368]: chan_dahdi.c:17018 process_dahdi: Ignoring any changes to 'vmsecret' (on reload) at line 31. [Mar 9 10:17:53] WARNING[29368]: chan_dahdi.c:17018 process_dahdi: Ignoring any changes to 'hassip' (on reload) at line 35. [Mar 9 10:17:53] WARNING[29368]: chan_dahdi.c:17018 process_dahdi: Ignoring any changes to 'hasiax' (on reload) at line 39. [Mar 9 10:17:53] WARNING[29368]: chan_dahdi.c:17018 process_dahdi: Ignoring any changes to 'hasmanager' (on reload) at line 47. ............[Mar 9 10:17:53] NOTICE[29368]: pbx_ael.c:122 pbx_load_module: Starting AEL load process. [Mar 9 10:17:53] NOTICE[29368]: pbx_ael.c:135 pbx_load_module: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Mar 9 10:17:53] NOTICE[29368]: pbx_ael.c:138 pbx_load_module: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Mar 9 10:17:53] NOTICE[29368]: pbx_ael.c:141 pbx_load_module: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Mar 9 10:17:53] NOTICE[29368]: pbx_ael.c:146 pbx_load_module: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Mar 9 10:17:53] NOTICE[29368]: pbx_ael.c:149 pbx_load_module: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. .............[Mar 9 10:17:54] WARNING[29368]: utils.c:1536 __ast_string_field_init: trying to reset empty pool [Mar 9 10:17:54] WARNING[29368]: utils.c:1536 __ast_string_field_init: trying to reset empty pool [Mar 9 10:17:54] WARNING[29368]: utils.c:1536 __ast_string_field_init: trying to reset empty pool .........[Mar 9 10:17:54] NOTICE[29368]: chan_skinny.c:7062 config_load: Configuring skinny from skinny.conf .................................[Mar 9 10:17:54] NOTICE[29399]: chan_capi.c:7073 capidev_loop: Started CAPI device thread for CAPI Appl-ID 2. .................................................... == Aliased CLI command 'hangup request' to 'channel request hangup' == Aliased CLI command 'originate' to 'channel originate' == Aliased CLI command 'help' to 'core show help' == Aliased CLI command 'pri intense debug span' to 'pri set debug 2 span' == Aliased CLI command 'reload' to 'module reload' .SIP channel loading... ......[Mar 9 10:17:54] WARNING[29368]: translate.c:654 __ast_register_translator: plc_samples 160 format f ................ ] Asterisk Ready. *CLI> core set verbose 999 Verbosity was 0 and is now 999 *CLI> capi debug CAPI Message Debugging Enabled *CLI> console dial 012341234567 [Mar 9 10:18:07] WARNING[29368]: chan_oss.c:485 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory [Mar 9 10:18:07] NOTICE[29368]: console_video.c:133 console_video_start: voice only, console video support not present -- Executing [012341234...@default:1] Dial("Console/dsp", "CAPI/ISDN1/012341234567") in new stack > data = ISDN1/012341234567 format=8 > parsed dialstring: 'ISDN1' 'NULL' '012341234567' '' > capi request for interface 'ISDN1' *CLI> == ISDN1#02: setting format alaw - 0x8 (alaw) > parsed dialstring: 'ISDN1' 'NULL' '012341234567' '' > capi: peerlink -1 allocated, peer is unlinked > chan_capi devicestate requested for ISDN1#02/012341234567 is 'In use' == ISDN1#02: Call CAPI/ISDN1#02/012341234567-0 (pres=0x00, ton=0x00) CONNECT_REQ ID=002 #0x0004 LEN=0057 Controller/PLCI/NCCI = 0x1 CIPValue = 0x1 CalledPartyNumber = <80>012341234567 CallingPartyNumber = <00 80> CalledPartySubaddress = default CallingPartySubaddress = default BProtocol B1protocol = 0x1 B2protocol = 0x1 B3protocol = 0x0 B1configuration = default B2configuration = default B3configuration = default GlobalConfiguration = default BC = default LLC = default HLC = default AdditionalInfo BChannelinformation = <00 00> Keypadfacility = default Useruserdata = default Facilitydataarray = default SendingComplete = <01 00> CAPI: ApplId=0x0002 Command=0x02 SubCommand=0x81 MsgNum=0x0004 NCCI=0x00000101 CONNECT_CONF ID=002 #0x0004 LEN=0014 Controller/PLCI/NCCI = 0x101 Info = 0x0 -- ISDN1#02: received CONNECT_CONF PLCI = 0x101 -- Called ISDN1/012341234567 CAPI: ApplId=0x0002 Command=0x08 SubCommand=0x82 MsgNum=0x03e7 NCCI=0x00000101 INFO_IND ID=002 #0x03e7 LEN=0015 Controller/PLCI/NCCI = 0x101 InfoNumber = 0x8002 InfoElement = default INFO_RESP ID=002 #0x03e7 LEN=0012 Controller/PLCI/NCCI = 0x101 -- ISDN1#02: info element CALL PROCEEDING -- chan_capi queue frame: TYPE: Control (4) SUBCLASS: Unknown control '15' (15) ] [ISDN1#02] CAPI: ApplId=0x0002 Command=0x08 SubCommand=0x82 MsgNum=0x03e8 NCCI=0x00000101 INFO_IND ID=002 #0x03e8 LEN=0016 Controller/PLCI/NCCI = 0x101 InfoNumber = 0x18 InfoElement = <89> INFO_RESP ID=002 #0x03e8 LEN=0012 Controller/PLCI/NCCI = 0x101 -- ISDN1#02: info element CHANNEL IDENTIFICATION 89 -- CAPI/ISDN1#02/012341234567-0 is proceeding passing it to Console/dsp CAPI: ApplId=0x0002 Command=0x08 SubCommand=0x82 MsgNum=0x03e9 NCCI=0x00000101 INFO_IND ID=002 #0x03e9 LEN=0017 Controller/PLCI/NCCI = 0x101 InfoNumber = 0x1e InfoElement = <81 82> INFO_RESP ID=002 #0x03e9 LEN=0012 Controller/PLCI/NCCI = 0x101 -- ISDN1#02: info element PI 81 82 > ISDN1#02: Destination is non ISDN -- chan_capi queue frame: TYPE: Control (4) SUBCLASS: Unknown control '14' (14) ] [ISDN1#02] CAPI: ApplId=0x0002 Command=0x08 SubCommand=0x82 MsgNum=0x03ea NCCI=0x00000101 INFO_IND ID=002 #0x03ea LEN=0020 Controller/PLCI/NCCI = 0x101 InfoNumber = 0x29 InfoElement = <0a 03 09 0b 16> INFO_RESP ID=002 #0x03ea LEN=0012 Controller/PLCI/NCCI = 0x101 -- ISDN1#02: info element Date/Time 10/03/09 11:22 CAPI: ApplId=0x0002 Command=0x03 SubCommand=0x82 MsgNum=0x03eb NCCI=0x00000101 CONNECT_ACTIVE_IND ID=002 #0x03eb LEN=0017 Controller/PLCI/NCCI = 0x101 ConnectedNumber = <00 a3> ConnectedSubaddress = default LLC = default CONNECT_ACTIVE_RESP ID=002 #0x03eb LEN=0012 Controller/PLCI/NCCI = 0x101 CONNECT_B3_REQ ID=002 #0x0005 LEN=0013 Controller/PLCI/NCCI = 0x101 NCPI = default -- ISDN1#02: sent CONNECT_B3_REQ PLCI=0x101 CAPI: ApplId=0x0002 Command=0x82 SubCommand=0x81 MsgNum=0x0005 NCCI=0x00010101 CONNECT_B3_CONF ID=002 #0x0005 LEN=0014 Controller/PLCI/NCCI = 0x10101 Info = 0x0 Speicherzugriffsfehler (core dumped) srvpbx:/usr/src/chan-capi-trunk#
#0 0x080d9ea5 in ast_frdup (f=0x101) at frame.c:480 #1 0x08096c25 in __ast_queue_frame (chan=0xb6e420b0, fin=0x101, head=0, after=0x0) at channel.c:1014 #2 0x0809709a in ast_queue_frame (chan=0xb6e420b0, fin=0x101) at channel.c:1081 #3 0x0809aedf in __ast_read (chan=0xb6e420b0, dropaudio=0) at channel.c:2777 #4 0x0809c4e7 in ast_read (chan=0xb6e420b0) at channel.c:3070 #5 0xb7640c1c in wait_for_answer (in=0x83c4278, outgoing=0xb6e325a0, to=0xb69c2adc, peerflags=0xb69c2cbc, pa=0xb69c2314, num_in=0xb69c2acc, result=0xb69c2310) at app_dial.c:904 #6 0xb7646d22 in dial_exec_full (chan=0x83c4278, data=0xb69c4e98, peerflags=0xb69c2cbc, continue_exec=0x0) at app_dial.c:1878 #7 0xb7649560 in dial_exec (chan=0x83c4278, data=0xb69c4e98) at app_dial.c:2342 #8 0x080fbd56 in pbx_exec (c=0x83c4278, app=0x860fac0, data=0xb69c4e98) at pbx.c:1348 #9 0x08103847 in pbx_extension_helper (c=0x83c4278, con=0x0, context=0x83c44e8 "default", exten=0x83c4538 "072279535305", priority=1, label=0x0, callerid=0x81e9b30 "", action=E_SPAWN, found=0xb69c7300, combined_find_spawn=1) at pbx.c:3706 #10 0x08104cef in ast_spawn_extension (c=0x83c4278, context=0x83c44e8 "default", exten=0x83c4538 "072279535305", priority=1, callerid=0x81e9b30 "", found=0xb69c7300, combined_find_spawn=1) at pbx.c:4165 #11 0x0810538d in __ast_pbx_run (c=0x83c4278, args=0x0) at pbx.c:4255 #12 0x081067c3 in pbx_thread (data=0x83c4278) at pbx.c:4542 #13 0x08158219 in dummy_start (data=0x861d838) at utils.c:968 #14 0xb7c6b4c0 in start_thread () from /lib/i686/cmov/libpthread.so.0 #15 0xb7e9c6de in clone () from /lib/i686/cmov/libc.so.6 #0 0x080d9ea5 in ast_frdup (f=0x101) at frame.c:480 out = (struct ast_frame *) 0x0 len = -2147483648 srclen = 0 buf = (void *) 0x0 frames = (struct ast_frame_cache *) 0xb7eaa9c6 __PRETTY_FUNCTION__ = "ast_frdup" #1 0x08096c25 in __ast_queue_frame (chan=0xb6e420b0, fin=0x101, head=0, after=0x0) at channel.c:1014 f = (struct ast_frame *) 0x0 cur = (struct ast_frame *) 0x101 blah = 1 new_frames = 0 new_voice_frames = 0 queued_frames = 0 queued_voice_frames = 0 frames = {first = 0x0, last = 0x0} __PRETTY_FUNCTION__ = "__ast_queue_frame" #2 0x0809709a in ast_queue_frame (chan=0xb6e420b0, fin=0x101) at channel.c:1081 No locals. #3 0x0809aedf in __ast_read (chan=0xb6e420b0, dropaudio=0) at channel.c:2777 readq_tail = (struct ast_frame *) 0x0 f = (struct ast_frame *) 0x863ab68 blah = 0 prestate = 3 count = 0 cause = 0 __PRETTY_FUNCTION__ = "__ast_read" #4 0x0809c4e7 in ast_read (chan=0xb6e420b0) at channel.c:3070 No locals. #5 0xb7640c1c in wait_for_answer (in=0x83c4278, outgoing=0xb6e325a0, to=0xb69c2adc, peerflags=0xb69c2cbc, pa=0xb69c2314, num_in=0xb69c2acc, result=0xb69c2310) at app_dial.c:904 f = (struct ast_frame *) 0x863ab68 c = (struct ast_channel *) 0xb6e420b0 o = (struct chanlist *) 0xb6e325a0 pos = 2 numlines = 1 winner = (struct ast_channel *) 0xb6e420b0 watchers = {0x83c4278, 0xb6e420b0, 0x0 <repeats 11 times>, 0x80fb940, 0x1d488698, 0xaeb4, 0xb69c1708, 0x807823c, 0x0, 0xb7de0c3b, 0xb69c1708, 0x80ff049, 0x319a, 0x0, 0x4bb, 0x0, 0xb69c179c, 0xb6e09738, 0xb69c1708, 0x80fbb37, 0xffffffff, 0x0, 0x0, 0xb764cc28, 0x0, 0x0, 0xb69c1738, 0x80de5e6, 0xb6e16b50, 0xb69c191c, 0x8, 0xd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb69c19b8, 0x80ffccb, 0xb6e16438, 0xb6e16b00, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1c, 0x1c, 0x0, 0xb69c191c, 0xf, 0x0, 0xb69c191c, 0x0, 0x0, 0x0, 0x1, 0x0 <repeats 14 times>, 0xb7e2ca31, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb6e00228, 0xb7ef8c34, 0xb7efa648, 0xb7ef75d1, 0xb7ef74ff, 0x61666564, 0x746c75, 0x0, 0xb6e00048, 0x2d, 0x5, 0x0, 0x1, 0x0, 0xb6e41900, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0xb6e00040, 0x80020002, 0x4, 0x1, 0x0, 0xb69c0ee0, 0x1, 0xb69c0ee1, 0x1, 0xb69c0ee2, 0x0, 0xb69c0ee4, 0xb69c0ee8, 0x0, 0xb69c0ec6, 0xb69c0ed7, 0xb69c0ed4, 0xb69c0ed8, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb69c0eed, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb69c0ee3, 0xb69c0ee6, 0x0, 0x0, 0x0, 0x0, 0xb69c0eeb, 0xb69c0ee5, 0x0 <repeats 15 times>, 0xffffffff, 0x0 <repeats 13 times>, 0xb6e16438, 0x0 <repeats 14 times>, 0x1, 0x0, 0x0, 0x0, 0x0, 0xb764cc28, 0xb69c1c14, 0xb69c1c18, 0x8103d63, 0x83c4278, 0x0, 0xb69c1a00, 0x83c44e8, 0x83c4538, 0xffffffff, 0x0...} num = {chan = 0x83c4278, busy = 0, congestion = 0, nochan = 0} prestart = 0 orig = -1 peer = (struct ast_channel *) 0x0 single = 1 __PRETTY_FUNCTION__ = "wait_for_answer" #6 0xb7646d22 in dial_exec_full (chan=0x83c4278, data=0xb69c4e98, peerflags=0xb69c2cbc, continue_exec=0x0) at app_dial.c:1878 res = 0 rest = 0x0 cur = 0x0 outgoing = (struct chanlist *) 0xb6e325a0 peer = (struct ast_channel *) 0xb69c2b38 to = -1 num = {chan = 0x83c4278, busy = 0, congestion = 0, nochan = 0} cause = 0 numsubst = "ISDN1/072279535305", '\0' <repeats 53 times>, "1\000\000\000\000\000\000\000\0001Êâ·", '\0' <repeats 16 times>, "@¹\017\bk\2216\035´®\000\0000\003à¶4\214ï·H¦ï·Ñuï·ÿtï·Ið\017\b\234,\234¶\000ká¶H\000à¶\025\001\000\000\"\000\000\000\000ká¶\002\000\000\000ô/ñ· \033ä¶\230*\234¶Ï\236â·¼*\234¶Ô\027ä¶Ó\030ä¶k¶ß·\001\000\000\...@\000à¶@\000à¶\030\033ä¶ÿtï·¼*\234¶\"\000\000\000\215\000\000\000Ô\027ä¶\000\000\000\000<\000à¶<\000à¶\000\000\000\000ô"... cidname = '\0' <repeats 79 times> config = {features_caller = {flags = 0}, features_callee = {flags = 0}, start_time = {tv_sec = 0, tv_usec = 0}, nexteventts = {tv_sec = 0, tv_usec = 0}, partialfeature_timer = {tv_sec = 0, tv_usec = 0}, feature_timer = 0, timelimit = 0, play_warning = 0, warning_freq = 0, warning_sound = 0x0, end_sound = 0x0, start_sound = 0x0, firstpass = 0, flags = 0, end_bridge_callback = 0, end_bridge_callback_data = 0x0, end_bridge_callback_data_fixup = 0} calldurationlimit = {tv_sec = 0, tv_usec = 0} dtmfcalled = 0x0 dtmfcalling = 0x0 pa = {sentringing = 0, privdb_val = 0, privcid = '\0' <repeats 255 times>, privintro = '\0' <repeats 1023 times>, status = "NOANSWER\000GS", '\0' <repeats 244 times>} sentringing = 0 moh = 0 outbound_group = 0x0 result = 0 parse = 0xb69c1d40 "CAPI" opermode = 0 delprivintro = 0 args = {argc = 1, argv = 0xb69c2300, peers = 0xb69c1d40 "CAPI", timeout = 0x0, options = 0x0, url = 0x0} opts = {flags = 0} opt_args = {0x0 <repeats 12 times>} datastore = (struct ast_datastore *) 0xb6e41c90 fulldial = 0 num_dialed = 1 __PRETTY_FUNCTION__ = "dial_exec_full" #7 0xb7649560 in dial_exec (chan=0x83c4278, data=0xb69c4e98) at app_dial.c:2342 peerflags = {flags = 0} #8 0x080fbd56 in pbx_exec (c=0x83c4278, app=0x860fac0, data=0xb69c4e98) at pbx.c:1348 res = -1231279056 u = (struct ast_module_user *) 0xb6e36308 saved_c_appl = 0x0 saved_c_data = 0x0 __PRETTY_FUNCTION__ = "pbx_exec" #9 0x08103847 in pbx_extension_helper (c=0x83c4278, con=0x0, context=0x83c44e8 "default", exten=0x83c4538 "072279535305", priority=1, label=0x0, callerid=0x81e9b30 "", action=E_SPAWN, found=0xb69c7300, combined_find_spawn=1) at pbx.c:3706 e = (struct ast_exten *) 0xb6e16b00 app = (struct ast_app *) 0x860fac0 res = -1226833904 q = {incstack = {0x0 <repeats 128 times>}, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x83c44e8 "default"} passdata = "CAPI/ISDN1/072279535305", '\0' <repeats 8168 times> matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #10 0x08104cef in ast_spawn_extension (c=0x83c4278, context=0x83c44e8 "default", exten=0x83c4538 "072279535305", priority=1, callerid=0x81e9b30 "", found=0xb69c7300, combined_find_spawn=1) at pbx.c:4165 No locals. #11 0x0810538d in __ast_pbx_run (c=0x83c4278, args=0x0) at pbx.c:4255 digit = 0 invalid = 0 timeout = 0 dst_exten = '\0' <repeats 184 times>, "1Êâ·", '\0' <repeats 64 times>, "\020\000\000" pos = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #12 0x081067c3 in pbx_thread (data=0x83c4278) at pbx.c:4542 c = (struct ast_channel *) 0x83c4278 #13 0x08158219 in dummy_start (data=0x861d838) at utils.c:968 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1211650060, 0, 0, -1231260728, 753320083, 1057215470}, __mask_was_saved = 0}}, __pad = {0xb69c7490, 0x0, 0x0, 0x0}} __cancel_routine = (void (*)(void *)) 0x80772fb <ast_unregister_thread> __cancel_arg = (void *) 0xb69c7b90 not_first_call = 0 ret = (void *) 0x0 a = {start_routine = 0x81067a4 <pbx_thread>, data = 0x83c4278, name = 0x861d848 "pbx_thread", ' ' <repeats 11 times>, "started at [ 4563] pbx.c ast_pbx_start()"} #14 0xb7c6b4c0 in start_thread () from /lib/i686/cmov/libpthread.so.0 No symbol table info available. #15 0xb7e9c6de in clone () from /lib/i686/cmov/libc.so.6 No symbol table info available.
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users