(gdb) bt #0 0x4018703f in realloc () from /lib/libc.so.6 #1 0x4047c104 in initreqprep (req=0xbd1ea82c, p=0x81752b0, cmd=0x404990e4 "INVITE", vxml_url=0x0) at chan_sip.c:3763 #2 0x40472b1b in transmit_invite (p=0x81752b0, cmd=0x404990e4 "INVITE", sdp=1, auth=0x0, authheader=0x0, vxml_url=0x0, distinctive_ring=0x0, osptoken=0x0, addsipheaders=0, init=1) at chan_sip.c:3829 #3 0x40485a67 in sip_call (ast=0x817a798, dest=0xbd1ec13c "41", timeout=0) at chan_sip.c:1438 #4 0x0805e049 in ast_call (chan=0x817a798, addr=0xbd1ec13c "41", timeout=0) at channel.c:2033 #5 0x4108d100 in dial_exec_full (chan=0x80fabc8, data=0x817a798, peerflags=0xbd1ec3c0) at app_dial.c:1001 #6 0x4108ac4e in dial_exec (chan=0x80fabc8, data=0xbd1f056c) at app_dial.c:1278 #7 0x0807d131 in pbx_extension_helper (c=0x80fabc8, con=0x0, context=0x80fad10 "macro-call", exten=0x80fae04 "s", priority=1, label=0x0, callerid=0x4108ac30 "U\211%G�%@\203%G�%@\f\215U%G�%@\213E\fRP\213E\bP%G�%@E%G�%@", action=1091642992) at pbx.c:482 #8 0x0807bd84 in ast_spawn_extension (c=0x80fabc8, context=0x80fad10 "macro-call", exten=0x80fae04 "s", priority=1, callerid=0x0) at pbx.c:1847 #9 0x412578eb in macro_exec (chan=0x80fabc8, data=0x80fad10) at app_macro.c:170 #10 0x0807d131 in pbx_extension_helper (c=0x80fabc8, con=0x0, context=0x80fad10 "macro-call", exten=0x80fae04 "s", priority=9, label=0x0, callerid=0x3
, action=1092984128) at pbx.c:482 #11 0x0807bd84 in ast_spawn_extension (c=0x80fabc8, context=0x80fad10 "macro-call", exten=0x80fae04 "s", priority=9, callerid=0x0) at pbx.c:1847 #12 0x412578eb in macro_exec (chan=0x80fabc8, data=0x80fad10) at app_macro.c:170 #13 0x0807d131 in pbx_extension_helper (c=0x80fabc8, con=0x0, context=0x80fad10 "macro-call", exten=0x80fae04 "s", priority=3, label=0x0, callerid=0x3
, action=1092984128) at pbx.c:482 #14 0x08076166 in ast_pbx_run (c=0x80fabc8) at pbx.c:1847 #15 0x0807d72f in pbx_thread (data=0x80fabc8) at pbx.c:2092 #16 0x400236de in pthread_handle_free () from /lib/libpthread.so.0 (gdb) frame 1 #1 0x4047c104 in initreqprep (req=0xbd1ea82c, p=0x81752b0, cmd=0x404990e4 "INVITE", vxml_url=0x0) at chan_sip.c:3763 3763 strncpy(p->fromuser, l, MAX(0,sizeof(p->fromuser) - 1)); (gdb) print *p $2 = {lock = {__m_reserved = 0, __m_count = 0, __m_owner = 0x0, __m_kind = 1, __m_lock = {__status = 0, __spinlock = 0}}, callid = "729bad2853f5887202771981518f43d4@10.10.10.77", '\0' , randdata = '\0' , prefs = {order = "\002\003\004\023\024", '\0' }, ocseq = 101, icseq = 0, callgroup = 0, pickupgroup = 0, lastinvite = 0, flags = 1318912, capability = 786446, jointcapability = 786446, peercapability = 0, prefcodec = 2, noncodeccapability = 1, callingpres = 1, authtries = 0, expiry = 0, branch = 324317742, tag = 1210453292, sessionid = 0, sessionversion = 0, sa = {sin_family = 2, sin_port = 46854, sin_addr = { s_addr = 1896483338}, 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 = 46854, sin_addr = {s_addr = 1896483338}, sin_zero = "\000\000\000\000\000\000\000"}, ourip = { s_addr = 1292503562}, owner = 0x817a798, exten = '\0' , refer_to = '\0' , referred_by = '\0' , refer_contact = '\0' , refer_call = 0x0, route = 0x0, route_persistant = 0, from = '\0' , useragent = '\0' , context = "voip-sip", '\0' , fromdomain = '\0' , fromuser = '\0' , fromname = '\0' , tohost = "10.10.10.113", '\0' , language = '\0' , musicclass = "default", '\0' , rdnis = '\0' , theirtag = '\0' , username = "41", '\0' , peername = "41", '\0' , authname = "41", '\0' , uri = '\0' , okcontacturi = '\0' , peersecret = '\0' , peermd5secret = '\0' , cid_num = '\0' , cid_name = '\0' , via = "SIP/2.0/UDP 10.10.10.77:5060;branch=z9hG4bK1354b22e;rport", '\0' , fullcontact = "sip:41@10.10.10.113:1719", '\0' , accountcode = '\0' , our_contact = '\0' , realm = '\0' , nonce = '\0' , opaque = '\0' , qop = '\0' , domain = '\0' , lastmsg = "Init: INVITE", '\0' , amaflags = 0, pendinginvite = 0, initreq = {rlPart1 = 0x0, rlPart2 = 0x0, len = 0, headers = 0, header = {0x0 }, lines = 0, line = {0x0 }, data = '\0' }, maxtime = 0, initid = -1, autokillid = -1, lastrtprx = 0, lastrtptx = 0, rtptimeout = 60, rtpholdtimeout = 0, rtpkeepalive = 0, subscribed = 0, stateid = -1, dialogver = 0, vad = 0x0, peerpoke = 0x0, registry = 0x0, rtp = 0x8177e80, vrtp = 0x0, packets = 0x0, history = 0x0, vars = 0x0, next = 0x8150a30, onhold = 0} (gdb) print *p->owner $3 = {name = "SIP/41-5510", '\0' , language = "fr", '\0' , type = 0x40497c06 "SIP", fds = {55, 56, -1, -1, -1, -1, 57, -1}, musicclass = "default", '\0' , music_state = 0x0, generatordata = 0x0, generator = 0x0, _bridge = 0x0, masq = 0x0, masqr = 0x0, cdrflags = 0, _softhangup = 0, whentohangup = 0, blocker = 0, lock = {__m_reserved = 0, __m_count = 0, __m_owner = 0xbd1ffbe0, __m_kind = 1, __m_lock = {__status = 1, __spinlock = 0}}, blockproc = 0x0, appl = 0x4108ee8a "AppDial", data = 0x4108ee92 "(Outgoing Line)", fdno = 0, sched = 0x81750c0, streamid = -1, stream = 0x0, vstreamid = 0, vstream = 0x0, oldwriteformat = 0, timingfd = 57, timingfunc = 0, timingdata = 0x0, _state = 0, rings = 0, nativeformats = 2, readformat = 2, writeformat = 2, cid = {cid_dnid = 0x0, cid_num = 0x0, cid_name = 0x0, cid_ani = 0x0, cid_rdnis = 0x0, cid_pres = 1, cid_ani2 = 0, cid_ton = 0, cid_tns = 0}, context = "voip-sip", '\0' , macrocontext = '\0' , macroexten = '\0' , macropriority = 0, exten = '\0' , priority = 1, dtmfq = '\0' , dtmff = {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}, pvt = 0x817ab90, pbx = 0x0, amaflags = 3, accountcode = '\0' , cdr = 0x0, adsicpe = 0, call_forward = '\0' , zone = 0x0, monitor = 0x0, insmpl = 0, outsmpl = 0, fin = 0, fout = 0, uniqueid = "1107774445.4", '\0' , hangupcause = 0, varshead = {first = 0x817ac00, lock = { __m_reserved = 0, __m_count = 0, __m_owner = 0x0, __m_kind = 0, __m_lock = {__status = 0, __spinlock = 0}}}, callgroup = 0, pickupgroup = 0, flags = 0, next = 0x81602a8} (gdb) print p->owner->cid $4 = {cid_dnid = 0x0, cid_num = 0x0, cid_name = 0x0, cid_ani = 0x0, cid_rdnis = 0x0, cid_pres = 1, cid_ani2 = 0, cid_ton = 0, cid_tns = 0}