(gdb) bt #0 ast_rtp_destroy (rtp=0x8183838) at rtp.c:1165 #1 0xb7c64b64 in __sip_destroy (p=0x8180d80, lockowner=1) at chan_sip.c:2104 #2 0xb7c70cac in __sip_autodestruct (data=0x8180d80) at chan_sip.c:2263 #3 0x08056378 in ast_sched_runq (con=0x8133890) at sched.c:374 #4 0xb7c9b14a in do_monitor (data=0x0) at chan_sip.c:11258 #5 0x00a6d1d5 in start_thread () from /lib/tls/libpthread.so.0 #6 0x007ca2da in clone () from /lib/tls/libc.so.6 (gdb) bt full #0 ast_rtp_destroy (rtp=0x8183838) at rtp.c:1165 No locals. #1 0xb7c64b64 in __sip_destroy (p=0x8180d80, lockowner=1) at chan_sip.c:2104 hist = (struct sip_history *) 0x8180d9c cur = (struct sip_pvt *) 0x9 prev = (struct sip_pvt *) 0x0 cp = (struct sip_pkt *) 0x8180d9c __PRETTY_FUNCTION__ = "__sip_destroy" #2 0xb7c70cac in __sip_autodestruct (data=0x8180d80) at chan_sip.c:2263 __PRETTY_FUNCTION__ = "__sip_autodestruct" #3 0x08056378 in ast_sched_runq (con=0x8133890) at sched.c:374 tv = warning: Unhandled dwarf expresion opcode DW_OP_piece {tv_sec = 10520, tv_usec = 9} x = 0 res = 239321 #4 0xb7c9b14a in do_monitor (data=0x0) at chan_sip.c:11258 res = 10520 sip = (struct sip_pvt *) 0x8133890 peer = (struct sip_peer *) 0x0 t = 1136369093 fastrestart = 0 lastpeernum = -1 curpeernum = 20 reloading = 135477392 __PRETTY_FUNCTION__ = "do_monitor" #5 0x00a6d1d5 in start_thread () from /lib/tls/libpthread.so.0 No symbol table info available. #6 0x007ca2da in clone () from /lib/tls/libc.so.6 No symbol table info available. (gdb) f 0 #0 ast_rtp_destroy (rtp=0x8183838) at rtp.c:1165 1167 in rtp.c (gdb) p rtp $1 = (struct ast_rtp *) 0x8183838 (gdb) p *rtp $2 = {s = 136147520, resp = 72 'H', f = {frametype = 0, subclass = 0, datalen = 0, samples = 0, mallocd = 0, offset = 0, src = 0x0, data = 0x0, delivery = {tv_sec = 0, tv_usec = 0}, prev = 0x0, next = 0x0}, rawdata = '\0' , ssrc = 1023989969, lastts = 0, lastdigitts = 0, lastrxts = 0, lastividtimestamp = 0, lastovidtimestamp = 0, lasteventseqn = 0, lasteventendseqn = 0, lasttxformat = 0, lastrxformat = 0, dtmfcount = 0, dtmfduration = 0, nat = 0, flags = 0, us = {sin_family = 2, sin_port = 24694, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, them = {sin_family = 2, sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, rxcore = {tv_sec = 0, tv_usec = 0}, txcore = {tv_sec = 0, tv_usec = 0}, dtmfmute = {tv_sec = 0, tv_usec = 0}, smoother = 0x0, ioid = 0x0, seqno = 56750, rxseqno = 0, sched = 0x8133890, io = 0x0, data = 0x0, callback = 0, current_RTP_PT = {{isAstFormat = 1, code = 4}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 1, code = 2}, {isAstFormat = 1, code = 1}, {isAstFormat = 1, code = 32}, {isAstFormat = 1, code = 32}, {isAstFormat = 1, code = 128}, {isAstFormat = 1, code = 8}, {isAstFormat = 0, code = 0}, {isAstFormat = 1, code = 64}, {isAstFormat = 1, code = 64}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 2}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 1, code = 32}, {isAstFormat = 1, code = 32}, {isAstFormat = 1, code = 256}, {isAstFormat = 0, code = 2}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 1, code = 65536}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, { isAstFormat = 0, code = 0}, {isAstFormat = 1, code = 262144}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 1, code = 524288}, {isAstFormat = 0, code = 0} , {isAstFormat = 1, code = 1024}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 1}, {isAstFormat = 0, code = 0}, {isAstFormat = 1, code = 1048576}, {isAstFormat = 1, code = 2097152}, { isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, { isAstFormat = 0, code = 0}, {isAstFormat = 1, code = 512}, {isAstFormat = 1, code = 16}, {isAstFormat = 0, code = 0}, { isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, { isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, { isAstFormat = 0, code = 4}, {isAstFormat = 0, code = 0} }, rtp_lookup_code_cache_isAstFormat = 0, rtp_lookup_code_cache_code = 1, rtp_lookup_code_cache_result = 101, rtcp = 0x2918} (gdb) f 1 #1 0xb7c64b64 in __sip_destroy (p=0x8180d80, lockowner=1) at chan_sip.c:2104 2107 chan_sip.c: No such file or directory. in chan_sip.c (gdb) p p $3 = (struct sip_pvt *) 0x8180d80 (gdb) p *p $4 = {lock = {__m_reserved = 8559592, __m_count = 8559592, __m_owner = 0x0, __m_kind = 1, __m_lock = {__status = 0, __spinlock = 0}}, method = 5, callid = "4bf6efb057203b8f2786fc337217c26a@192.168.2.1", '\0' , randdata = '\0' , prefs = {order = "\003\004\002", '\0' }, ocseq = 102, icseq = 0, callgroup = 0, pickupgroup = 2, lastinvite = 102, flags = 12853763, timer_t1 = 500, sipoptions = 0, capability = 14, jointcapability = 14, peercapability = 0, prefcodec = 4, noncodeccapability = 1, callingpres = 0, authtries = 0, expiry = 0, branch = 542347870, tag = "as4b80909f", sessionid = 3919, sessionversion = 3919, sa = {sin_family = 2, sin_port = 1544, sin_addr = {s_addr = 520267968}, sin_zero = "\000\000\000\000\000\000\000"}, redirip = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, vredirip = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, redircodecs = 0, recv = { sin_family = 2, sin_port = 1544, sin_addr = {s_addr = 520267968}, sin_zero = "\000\000\000\000\000\000\000"}, ourip = { s_addr = 16951488}, owner = 0x0, exten = "11", '\0' , refer_to = '\0' , referred_by = '\0' , refer_contact = '\0' , refer_call = 0x0, route = 0x0, route_persistant = 0, from = '\0' , useragent = '\0' , context = "phones", '\0' , subscribecontext = '\0' , fromdomain = '\0' , fromuser = "11", '\0' , fromname = "Operator", '\0' , tohost = "192.168.2.31", '\0' , language = '\0' , musicclass = "default", '\0' , rdnis = '\0' , theirtag = "5pbdjofywc", '\0' , username = "12", '\0' , peername = "12", '\0' , authname = "12", '\0' , uri = "sip:12@192.168.2.31:2054;line=jf3ccbys", '\0' , okcontacturi = '\0' , peersecret = "37412", '\0' , peermd5secret = '\0' , peerauth = 0x0, cid_num = '\0' , cid_name = '\0' , via = "SIP/2.0/UDP 192.168.2.1:5060;branch=z9hG4bK2053925e;rport", '\0' , fullcontact = "sip:12@192.168.2.31:2054;line=jf3ccbys", '\0' , accountcode = '\0' , our_contact = "", '\0' , rpid = 0x0, rpid_from = 0x0, realm = '\0' , nonce = '\0' , noncecount = 0, opaque = '\0' , qop = '\0' , domain = '\0' , lastmsg = "Tx: ACK\000VITE", '\0' , amaflags = 0, pendinginvite = 0, initreq = {rlPart1 = 0x81827d0 "INVITE", rlPart2 = 0x81827d7 "sip:12@192.168.2.31:2054;line=jf3ccbys", len = 783, headers = 13, method = 5, header = { 0x81827d0 "INVITE", 0x8182807 "Via: SIP/2.0/UDP 192.168.2.1:5060;branch=z9hG4bK2053925e;rport", 0x8182847 "From: \"Operator\" ;tag=as4b80909f", 0x818287d "To: ", 0x81828ab "Contact: ", 0x81828ca "Call-ID: 4bf6efb057203b8f2786fc337217c26a@192.168.2.1", 0x8182901 "CSeq: 102 INVITE", 0x8182913 "User-Agent: Asterisk PBX", 0x818292b "Max-Forwards: 70", 0x818293d "Date: Wed, 04 Jan 2006 10:03:25 GMT", 0x8182962 "Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY", 0x81829a6 "Content-Type: application/sdp", 0x81829c5 "Content-Length: 259", 0x81829da "", 0x0 }, lines = 12, line = {0x81829dc "v=0", 0x81829e1 "o=root 3919 3919 IN IP4 192.168.2.1", 0x8182a06 "s=session", 0x8182a11 "c=IN IP4 192.168.2.1", 0x8182a27 "t=0 0", 0x8182a2e "m=audio 30304 RTP/AVP 0 8 3 101", 0x8182a4f "a=rtpmap:0 PCMU/8000", 0x8182a65 "a=rtpmap:8 PCMA/8000", 0x8182a7b "a=rtpmap:3 GSM/8000", 0x8182a90 "a=rtpmap:101 telephone-event/8000", 0x8182ab3 "a=fmtp:101 0-16", 0x8182ac4 "a=silenceSupp:off - - - -", 0x8182adf "", 0x0 }, data = "INVITE\000sip:12@192.168.2.31:2054;line=jf3ccbys\000SIP/2.0\000\000Via: SIP/2.0/UDP 192.168.2.1:5060;branch=z9hG4b---Type to continue, or q to quit--- K2053925e;rport\000\000From: \"Operator\" ;tag=as4b80909f\000\000To: