[Asterisk-Dev] Asterisk segfaults
Thomas Dingermann
td at trobisch.de
Thu Oct 28 00:28:35 MST 2004
Hello all,
hope anybody can help me.
Thomas
asterisk 1.0.2 with bristuff-0.2.0RC1
Cisco ATA-186 MGCP Firmware 3.1.1 with 2 Phone connected (aaln/1 and aaln/2)
snom-phone call aaln/1
aaln/1 talks and starts transfer with flash and dials 8519 (aaln/2 on same ata) and hangs up.
asterisk crashes
Following console log, gdb-backtrace, mgcp.conf, excerpt of extensions.conf
-------------------------------------------------------------
Console:
-- Executing SetVar("SIP/snom5-b841", "Gruppe=g3") in new stack
-- Executing Goto("SIP/snom5-b841", "default|8551|1") in new stack
-- Goto (default,8551,1)
-- Executing Dial("SIP/snom5-b841", "MGCP/aaln/1 at 192.168.1.26||") in new stack
-- MGCP mgcp_request(aaln/1 at 192.168.1.26)
-- MGCP cw: 0, dnd: 0, so: 0, sno: 0
Oct 27 16:39:38 NOTICE[29721]: channel.c:284 ast_alloc_uniqueid: uid = asterisk-10163-1098887978.8
-- MGCP mgcp_new(MGCP/aaln/1 at 192.168.1.26-1) created in state: Down
-- Called aaln/1 at 192.168.1.26
-- MGCP/aaln/1 at 192.168.1.26-1 is ringing
-- Endpoint 'aaln/1 at 192.168.1.26-1' observed 'hd'
-- MGCP/aaln/1 at 192.168.1.26-1 answered SIP/snom5-b841
-- Attempting native bridge of SIP/snom5-b841 and MGCP/aaln/1 at 192.168.1.26-1
Oct 27 16:39:44 NOTICE[21526]: chan_mgcp.c:1507 find_subchannel: Gateway '192.168.1.25' (and thus its endpoint '*') does not exist
-- Endpoint 'aaln/1 at 192.168.1.26-1' observed 'hf'
-- Swapping 1 for 0 on aaln/1 at 192.168.1.26
-- MGCP Muting 1 on aaln/1 at 192.168.1.26
-- Started music on hold, class 'default', on SIP/snom5-b841
Oct 27 16:39:45 NOTICE[21526]: channel.c:284 ast_alloc_uniqueid: uid = asterisk-10163-1098887985.9
-- MGCP mgcp_new(MGCP/aaln/1 at 192.168.1.26-0) created in state: Down
-- Endpoint 'aaln/1 at 192.168.1.26-0' observed '8'
-- Endpoint 'aaln/1 at 192.168.1.26-0' observed '5'
-- Endpoint 'aaln/1 at 192.168.1.26-0' observed '1'
-- Endpoint 'aaln/1 at 192.168.1.26-0' observed '9'
Oct 27 16:39:49 NOTICE[21526]: chan_mgcp.c:1507 find_subchannel: Gateway '192.168.1.26' (and thus its endpoint '*') does not exist
-- Endpoint 'aaln/1 at 192.168.1.26-0' observed 'hu'
-- Stopped music on hold on SIP/snom5-b841
Oct 27 16:39:51 NOTICE[30746]: chan_mgcp.c:1151 mgcp_fixup: mgcp_fixup(SIP/snom5-b841, SIP/snom5-b841<MASQ>)
-- Swapping 0 for 1 on aaln/1 at 192.168.1.26
Oct 27 16:39:51 WARNING[21526]: chan_mgcp.c:3035 handle_request: Transfer attempt failed
gw-bzo*CLI> ./safe_asterisk2: line 17: 10163 Segmentation fault
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.
-------------------------------------------------------------
Backtrace:
...
#0 0x08087cff in ast_rtp_read (rtp=0x0) at rtp.c:413
413 res = recvfrom(rtp->s, rtp->rawdata + AST_FRIENDLY_OFFSET, sizeof(rtp->rawdata) - AST_FRIENDLY_OFFSET,
(gdb) bt
#0 0x08087cff in ast_rtp_read (rtp=0x0) at rtp.c:413
#1 0x40824ecb in mgcp_rtp_read (sub=0x815c9d8) at chan_mgcp.c:1082
#2 0x4082e5b4 in mgcp_read (ast=0x814c1f8) at chan_mgcp.c:1113
#3 0x0805a988 in ast_read (chan=0x814c1f8) at channel.c:1334
#4 0x0805dc7c in ast_channel_bridge (c0=0x8169e68, c1=0x814c1f8, config=0xbc7fb300, fo=0xbc7faa64, rc=0xbc7faa68) at channel.c:2683
#5 0x40300141 in ast_bridge_call (chan=0x8169e68, peer=0x814c1f8, config=0xbc7fb300) at res_features.c:410
#6 0x4065e314 in dial_exec (chan=0x8169e68, data=0xbc7fd804) at app_dial.c:1019
#7 0x0807005c in pbx_exec (c=0x8169e68, app=0x81396a0, data=0xbc7fd804,; newstack=1) at pbx.c:470
#8 0x080720a9 in pbx_extension_helper (c=0x8169e68, context=0x8169fc0 "default", exten=0x816a0b4 "8519", priority=1,
callerid=0x80fca20 "Gerinnung <8551>", action=1) at pbx.c:1277
#9 0x08072e2d in ast_pbx_run (c=0x8169e68) at pbx.c:1758
#10 0x40829692 in mgcp_ss (data=0x8169e68) at chan_mgcp.c:2498
#11 0x4002ee67 in pthread_start_thread () from /lib/libpthread.so.0
(gdb)
-------------------------------------------------------------
mgcp.conf:
; MGCP Configuration for Asterisk
;
[general]
port = 2727
bindaddr = 0.0.0.0
disallow=all
allow=alaw
allow=ulaw
[192.168.1.26]
host=192.168.1.26
transfer = yes
canreinvite = yes
threewaycalling=yes
callgroup = 1
pickupgroup = 1
context=defaultg3
callerid=Gerinnung <8551>
line=aaln/1
transfer = yes
canreinvite = yes
threewaycalling=yes
callgroup = 1
pickupgroup = 1
context=defaultg4
callerid=Gerinnung <8519>
line=aaln/2
line=aaln/*
-------------------------------------------------------------
extensions.conf:
...
exten => 8519,1,Dial(MGCP/aaln/2 at 192.168.1.26,,)
exten => 8551,1,Dial(MGCP/aaln/1 at 192.168.1.26,,)
...
More information about the asterisk-dev
mailing list