2875 if (!rtp->them.sin_addr.s_addr)
(gdb) print rtp
$1 = (struct ast_rtp *) 0x31202f2045544956
(gdb) print _f
$2 = (struct ast_frame *) 0x42532f00
(gdb) print *_f
$3 = {frametype = AST_FRAME_VOICE, subclass = 8, datalen = 160, samples = 160, mallocd = 0, mallocd_hdr_len = 0, offset = 0, src = 0x7f92979a3dd5 "sip_rtp_prod", data = 0x42532e60, delivery = {tv_sec = 0, tv_usec = 0}, frame_list = {
next = 0x0}, flags = 1, ts = 12345, len = 20, seqno = 12345}
(gdb) up
#1 0x00007f9297996952 in sip_write (ast=0x14e6360, frame=0x42532f00) at chan_sip.c:3922
3922 res = ast_rtp_write(p->rtp, frame);
(gdb) print p
$4 = (struct sip_pvt *) 0x14f0800
(gdb) print *p
$5 = {lock = {__data = {__lock = 908997680, __count = 54, __owner = 913, __nusers = 0, __kind = 21914448, __spins = 0, __list = {__prev = 0x14f00f0, __next = 0x72732c64696c6328}},
__size = "04.66\000\000\000\221\003\000\000\000\000\000\000PcN\001\000\000\000\000\ufffd\000O\001\000\000\000\000(clid,sr", __align = 232837231664}, method = 1935944803, invitestate = 1667509364, __begin_field = 0x14f0830,
callid = 0x632c747865746e6f
, randdata = 0x642c6c656e6e6168 , accountcode = 0x656e6e6168637473 ,
realm = 0x70617473616c2c6c , nonce = 0x61647473616c2c70 , opaque = 0x72617473202c6174 ,
qop = 0x726577736e612c74 , domain = 0x7275642c646e652c , from = 0x69622c6e6f697461 ,
useragent = 0x69642c6365736c6c , exten = 0x6f697469736f7073 , context = 0x616c66616d612c6e ,
subscribecontext = 0x6f636361202c7367 , subscribeuri = 0x2965646f63746e75 ,
fromdomain = 0x205345554c415620 , fromuser = 0x696c6c6177222728 , fromname = 0x333c202234303265 ,
tohost = 0x3230303132303531 , language = 0x3327202c273e3132 , mohinterpret = 0x3230303132303531 ,
mohsuggest = 0x2a2a27202c273132 , rdnis = 0x3032393935313135 , theirtag = 0x5f697027202c2731 ,
username = 0x63615f656e6f6870 , peername = 0x6f635f746e756f63 , authname = 0x495327202c27746e ,
uri = 0x3939353131352f50 , okcontacturi = 0x303030302d343032 , peersecret = 0x27202c2734323030 ,
peermd5secret = 0x79616c5027202c27 , cid_num = 0x27202c276b636162 , cid_name = 0x7265736f6e2d7373 ,
fullcontact = 0x27202c2765636976 , our_contact = 0x2d34302d30313032 , rpid = 0x34333a3231203631 ,
rpid_from = 0x3227202c2736333a , __end_field = 0x14f0950, __field_mgr = {pool = 0x312d34302d303130, size = 4194033478031974454, space = 3472881281789278003, used = 3904952054076747825},
via = " 12:34:37', 1, 0, 8, 3, '511599204')", '\0' , "\ufffd\tO\001\000\000\000\000a\001\000\000\000\000\000\000@\ufffd\a\ufffd\222\177\000\000\220\002O\001\000\000\000\000\ufffd\ufffd\"wallie204\" <31502100221>\00031502100221\000**511599",
ocseq = 3223602, icseq = 1885301104, callgroup = 7161674894800744296, pickupgroup = 7957688328213394799, lastinvite = 1230176372, flags = {{flags = 825569104}, {flags = 960050481}}, timer_t1 = 758394930, sipoptions = 808464432,
prefs = {order = "0024\000\000Playback\000ss-noservice\0002010", framing = "-04-16 12:34:36\0002010-04-16 12:34"}, capability = 3617594, jointcapability = 808529970, peercapability = 758394925, prefcodec = 824194609,
noncodeccapability = 875772466, jointnoncodeccapability = 3617594, redircodecs = 3145777, maxcallbitrate = 3342392, t38 = {t38support = {flags = 892416309}, capability = 808597817, peercapability = 52, jointcapability = 129,
state = T38_DISABLED, direct = 0}, udptlredirip = {sin_family = 32658, sin_port = 0, sin_addr = {s_addr = 2936515248}, sin_zero = "\222\177\000\000\000\000\000"}, udptl = 0x0, callingpres = 21956806, authtries = 0, expiry = 26,
branch = 21956806, invite_branch = 26, tag = "\000\000\000\000\000\000\000\000\000\000", sessionid = 0, sessionversion = 96, portinuri = 0, sa = {sin_family = 32, sin_port = 0, sin_addr = {s_addr = 0},
sin_zero = "\ufffd\tO\001\000\000\000"}, redirip = {sin_family = 27749, sin_port = 256, sin_addr = {s_addr = 0}, sin_zero = "\000\003\000\000\000\000\000"}, vredirip = {sin_family = 144, sin_port = 0, sin_addr = {s_addr = 0},
sin_zero = "\200\000\000\000\000\000\000"}, lastrtprx = 0, lastrtptx = 1271414078, rtptimeout = 0, recv = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, ourip = {s_addr = 0},
owner = 0x0, route = 0x0, route_persistant = 0, peerauth = 0x0, noncecount = 0, stalenonce = 0,
lastmsg = '\0' , "\220\003\000\000\000\000\000\0000", '\0' , "SIP/511599204", '\0' , "1", '\0' , "Hangup Cause Unknown\000\000\000a\023\000\000\000\000\000\000\ufffd\000O\001\000\000\000\000@\ufffd\a\ufffd\222\177", '\0' , "@\000\000\000\000\000\000\000\ufffd\fO\001\000\000\000\000\ufffd\fO\001", '\0' , amaflags = 0, pendinginvite = 0, glareinvite = 0, initreq = {
rlPart1 = 0x0, rlPart2 = 0x0, len = 0, headers = 0, method = 0, lines = 0, flags = 0, header = {0x0, 0x0, 0xfb897364973aa4d8 , 0x9e34ca71a5434d22 ,
0x4edb29ca73dbc81e , 0x68d01b39ac717a48 , 0xe0 , 0x210 ,
0x800000002 , 0xa0000000a0 , 0x1 , 0x1f9 , 0x40 , 0x14f0e30 "lintoalaw",
0x14f0d90 "\004\035\035\ufffd\ufffd\ufffd\206\204\232\216\200\203\203\232\230\ufffd\ufffdA\023\036\030\002\001\001\003\030\036\033\036\037m\ufffd\ufffd\225\232\204\201\203\201\203\201\237\237\227\ufffdvh\020\032\a\004\006\004\036\034\034\035\022\020\ufffd\ufffd\ufffd\232\202\205\200\217\215\207\204\205\ufffdTRj\032\030\006\003\001\003\004\005\032\022\032\031c\ufffd\ufffd\ufffd\200\215\200\214\202\202\207\221\235\ufffdoo\037\004\001", 0x0 , 0x99e5088000000000 ,
0xfc35662020120000 , 0x8486f4fada1d1d04 , 0xe8989a8383808e9a ,
0x10102181e1341c5 , 0xc86d1f1e1b1e1803 , 0x83818381849a95fe ,
0x106876df979f9f81 , 0x1c1c1e040604071a , 0x829af5e8f310121d ,
0xeb8584878d8f8085 , 0x10306181a6a5254 , 0x63191a121a050403 ,
0x828c808d80eaeaed , 0x1f6f6ffe9d918782 , 0x1313050006000104 ,
0x87e197ed6f16131f , 0x919884848c809a82 , 0x103061b1d6149f9 ,
0x6c1b126d141b1b04 , 0x8d8c838c81e2e995 , 0x137c72e1989c868c ,
0x616c616f746e696c , 0xfa70f1d0f0480077 , 0x154807f007f00610 ,
0x17f819a015b81840 , 0xc180a7812c817e8 , 0xf290f960f9480378 ,
0xec78ea18eb58ee68 , 0xf4d8f4d0ef88ea00 , 0xf970f618f4a8f2c8 ,
0x1230052009500608 , 0x19d015d00f981778 , 0xa400ef0113811e0 ,
0xf3a0fad0fe380388 , 0xeb98e9f0ecd8f0f8 }, line = {0xf778f0f8f090ee68 ,
0xf9a0f0d0f458f9e0 , 0x147805d007100830 , 0x18d0190016781920 ,
0xeb80c98138819e0 , 0xf4e0fcc8fd080530 , 0x6e696c6f746d7367 , 0x0, 0x0,
0x1071 , 0x14f0290 "OK", 0x14f8170 "", 0x0, 0x0, 0x0, 0x0, 0x14f8aa0 "\220\002O\001", 0x0, 0x14f8aa0 "\220\002O\001", 0x0, 0x0, 0x0, 0x0,
0x2073696854202a2a , 0x6e6f6320656c6966 , 0x6e6120736e696174 ,
0x206574694c515320 , 0x6174616420312e32 , 0x2a2a2065736162 ,
0xdae37528 , 0xdb00000000 , 0x4 , 0x0 },
data = '\0' , "\ufffd\006\000\000\000\000\000\000\ufffd\006\000\000\000\000\000\000\ufffd\ufffd\r\ufffd\222\177\000\000\001", '\0' , "** This file contains an SQLite 2.1 database **\000(u\ufffd\ufffd", '\0' , "1\003\000\000\000\000\000\000`\ufffd\a\ufffd\222\177\000\000`\ufffd\a\ufffd\222\177\000\000\020\nO\001", '\0' , "\220\nO\001", '\0' , "\020\006O\001", '\0' , "p\006O\001", '\0' , "\ufffd\006O\001", '\0' ..., sdp_start = 1330531150, sdp_count = 2969175, next = {next = 0x21}}, maxtime = 775174449, initid = 774911025, waitid = 775304242, autokillid = 12343, allowtransfer = TRANSFER_OPENFORALL, refer = 0x51,
subscribed = NONE, stateid = 0, laststate = 538998866, dialogver = 538976288, vad = 0x2020202020202020, relatedpeer = 0x20302e322f504953, registry = 0x4e4920323031202f, rtp = 0x31202f2045544956, vrtp = 0x69676e6952203038,
packets = 0x676e, history = 0x0, history_entries = 81, chanvars = 0x14f06a0, request_queue = {first = 0x0, last = 0x0}, request_queue_sched_id = 0, provisional_keepalive_sched_id = 0, last_provisional = 0x0, next = 0x0,
options = 0x0, autoframing = 0, hangupcause = 0, offered_media = {{offered = 0,
text = "\000\000\000\000!\000\000\000\000\000\000\000\ufffd\037O\001\000\000\000\000P\ufffd\a\ufffd\222\177\000\000 \000\000\000\000\000\000\000`\000\000\000\000\000\000\000\ufffd!O\001\000\000\000\000\ufffd!O\001", '\0' , "`\037O\001\000\000\000\000accountcode\000511599204\000\000\000\000\000\000"}, {offered = 0,
text = "\221\000\000\000\000\000\000\000\220oO\001\000\000\000\000PcN\001\000\000\000\000992\000voip-test-1271414076.66\000SIP/511599204-00000024\000511599204\000nl", '\0' }, {offered = 0,
text = "\000\000\000\000\220\000\000\000\000\000\000\000 \000\000\000\000\000\000\000\ufffdaO\001\000\000\000\0004\000\a\ufffd\222\177\000\000\000\000\000\000\000\000\000\0001\000\000\000\000\000\000\000\ufffd\ufffdN\001\000\000\000\000221\000\222\177\000\000\000bO\001\000\000\000\000nat\000neve0\000\000\000\000\000\000\000Q\000\000\000\000\000\000\000\ufffd O\001\000\000\000\000Rx", ' ' , "SIP/"}}}
(gdb) print locals
$6 = {first = 0x14eb670, last = 0x14eb670, lock = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 1, __spins = 0, __list = {__prev = 0x0, __next = 0x0}},
__size = '\0' , "\001", '\0' , __align = 0}}