Hello,
I need now:
p *msg->pai
p *((p_id_body_t*)msg->pai->parsed)
Cheers,
Daniel
On 28/05/14 12:46, Igor Potjevlesch wrote:
Hello Daniel,
Here is the result of p *msg :
$3 = {id = 128120, pid = 2414, tval = {tv_sec = 1401265832, tv_usec =
5951}, fwd_send_flags = {f = 0 '\000', blst_imask = 0 '\000'},
rpl_send_flags = {f = 0 '\000',
blst_imask = 0 '\000'}, first_line = {type = 1, len = 48, u =
{request = {method = {
s = 0x7fad2cf8ac30 "INVITE sip:0123456789@domain
SIP/2.0\r\nVia: SIP/2.0/UDP
a.b.c.d:5060;branch=z9hG4bK6b726b55;rport\r\nMax-Forwards: 69\r\nFrom:
\"FAX\" <sip:0123456789@domain>;tag=as729b3498\r\nTo:
<sip:0123456789@domain>\r\nContact:
<sip:0123456789@a.b.c.d>\r\nCall-ID:
419b254b1c0531af3bf256b14f1881e2@domain\r\nCSeq: 103
INVITE\r\nUser-Agent: Asterisk PBX
1.6.2.9-2+squeeze3\r\nRemote-Party-ID: \"FAX\"
<sip:0123456789@domain>;privacy=off;screen=no\r\nProxy-Authorization:
Digest username=\"0123456789\", realm=\"domain\", algorithm=MD5,
uri=\"sip:0123456789@domain\",
nonce=\"U4Wf01OFnqcywgUETmE15dMbFu/Y1hpt\",
response=\"d055e0f3ba4646773d6ab6c5a05feec7\"\r\nDate: Wed, 28 May
2014 08:30:32 GMT\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
SUBSCRIBE, NOTIFY, INFO\r\nSupported: replaces,
timer\r\nP-Asserted-Identity:
\"0123456789\"<sip:0123456789@a.b.c.d>\r\nContent-Type:
application/sdp\r\nContent-Length: 298\r\n\r\nv=0\r\no=root 1751857229
1751857230 IN IP4 a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN
IP4 a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n", len = 6}, uri = {
s = 0x7fad2cf8ac37 "sip:0123456789@domain SIP/2.0\r\nVia:
SIP/2.0/UDP a.b.c.d:5060;branch=z9hG4bK6b726b55;rport\r\nMax-Forwards:
69\r\nFrom: \"FAX\" <sip:0123456789@domain>;tag=as729b3498\r\nTo:
<sip:0123456789@domain>\r\nContact:
<sip:0123456789@a.b.c.d>\r\nCall-ID:
419b254b1c0531af3bf256b14f1881e2@domain\r\nCSeq: 103
INVITE\r\nUser-Agent: Asterisk PBX
1.6.2.9-2+squeeze3\r\nRemote-Party-ID: \"FAX\"
<sip:0123456789@domain>;privacy=off;screen=no\r\nProxy-Authorization:
Digest username=\"0123456789\", realm=\"domain\", algorithm=MD5,
uri=\"sip:0123456789@domain\",
nonce=\"U4Wf01OFnqcywgUETmE15dMbFu/Y1hpt\",
response=\"d055e0f3ba4646773d6ab6c5a05feec7\"\r\nDate: Wed, 28 May
2014 08:30:32 GMT\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
SUBSCRIBE, NOTIFY, INFO\r\nSupported: replaces,
timer\r\nP-Asserted-Identity:
\"0123456789\"<sip:0123456789@a.b.c.d>\r\nContent-Type:
application/sdp\r\nContent-Length: 298\r\n\r\nv=0\r\no=root 1751857229
1751857230 IN IP4 a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN
IP4 a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n", len = 31}, version = {
s = 0x7fad2cf8ac57 "SIP/2.0\r\nVia: SIP/2.0/UDP
a.b.c.d:5060;branch=z9hG4bK6b726b55;rport\r\nMax-Forwards: 69\r\nFrom:
\"FAX\" <sip:0123456789@domain>;tag=as729b3498\r\nTo:
<sip:0123456789@domain>\r\nContact:
<sip:0123456789@a.b.c.d>\r\nCall-ID:
419b254b1c0531af3bf256b14f1881e2@domain\r\nCSeq: 103
INVITE\r\nUser-Agent: Asterisk PBX
1.6.2.9-2+squeeze3\r\nRemote-Party-ID: \"FAX\"
<sip:0123456789@domain>;privacy=off;screen=no\r\nProxy-Authorization:
Digest username=\"0123456789\", realm=\"domain\", algorithm=MD5,
uri=\"sip:0123456789@domain\",
nonce=\"U4Wf01OFnqcywgUETmE15dMbFu/Y1hpt\",
response=\"d055e0f3ba4646773d6ab6c5a05feec7\"\r\nDate: Wed, 28 May
2014 08:30:32 GMT\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
SUBSCRIBE, NOTIFY, INFO\r\nSupported: replaces,
timer\r\nP-Asserted-Identity:
\"0123456789\"<sip:0123456789@a.b.c.d>\r\nContent-Type:
application/sdp\r\nContent-Length: 298\r\n\r\nv=0\r\no=root 1751857229
1751857230 IN IP4 a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN
IP4 a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n", len = 7},
method_value = 1}, reply = {version = {
s = 0x7fad2cf8ac30 "INVITE sip:0123456789@domain
SIP/2.0\r\nVia: SIP/2.0/UDP
a.b.c.d:5060;branch=z9hG4bK6b726b55;rport\r\nMax-Forwards: 69\r\nFrom:
\"FAX\" <sip:0123456789@domain>;tag=as729b3498\r\nTo:
<sip:0123456789@domain>\r\nContact:
<sip:0123456789@a.b.c.d>\r\nCall-ID:
419b254b1c0531af3bf256b14f1881e2@domain\r\nCSeq: 103
INVITE\r\nUser-Agent: Asterisk PBX
1.6.2.9-2+squeeze3\r\nRemote-Party-ID: \"FAX\"
<sip:0123456789@domain>;privacy=off;screen=no\r\nProxy-Authorization:
Digest username=\"0123456789\", realm=\"domain\", algorithm=MD5,
uri=\"sip:0123456789@domain\",
nonce=\"U4Wf01OFnqcywgUETmE15dMbFu/Y1hpt\",
response=\"d055e0f3ba4646773d6ab6c5a05feec7\"\r\nDate: Wed, 28 May
2014 08:30:32 GMT\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
SUBSCRIBE, NOTIFY, INFO\r\nSupported: replaces,
timer\r\nP-Asserted-Identity:
\"0123456789\"<sip:0123456789@a.b.c.d>\r\nContent-Type:
application/sdp\r\nContent-Length: 298\r\n\r\nv=0\r\no=root 1751857229
1751857230 IN IP4 a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN
IP4 a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n", len = 6}, status = {
s = 0x7fad2cf8ac37 "sip:0123456789@domain SIP/2.0\r\nVia:
SIP/2.0/UDP a.b.c.d:5060;branch=z9hG4bK6b726b55;rport\r\nMax-Forwards:
69\r\nFrom: \"FAX\" <sip:0123456789@domain>;tag=as729b3498\r\nTo:
<sip:0123456789@domain>\r\nContact:
<sip:0123456789@a.b.c.d>\r\nCall-ID:
419b254b1c0531af3bf256b14f1881e2@domain\r\nCSeq: 103
INVITE\r\nUser-Agent: Asterisk PBX
1.6.2.9-2+squeeze3\r\nRemote-Party-ID: \"FAX\"
<sip:0123456789@domain>;privacy=off;screen=no\r\nProxy-Authorization:
Digest username=\"0123456789\", realm=\"domain\", algorithm=MD5,
uri=\"sip:0123456789@domain\",
nonce=\"U4Wf01OFnqcywgUETmE15dMbFu/Y1hpt\",
response=\"d055e0f3ba4646773d6ab6c5a05feec7\"\r\nDate: Wed, 28 May
2014 08:30:32 GMT\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
SUBSCRIBE, NOTIFY, INFO\r\nSupported: replaces,
timer\r\nP-Asserted-Identity:
\"0123456789\"<sip:0123456789@a.b.c.d>\r\nContent-Type:
application/sdp\r\nContent-Length: 298\r\n\r\nv=0\r\no=root 1751857229
1751857230 IN IP4 a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN
IP4 a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n", len = 31}, reason = {
s = 0x7fad2cf8ac57 "SIP/2.0\r\nVia: SIP/2.0/UDP
a.b.c.d:5060;branch=z9hG4bK6b726b55;rport\r\nMax-Forwards: 69\r\nFrom:
\"FAX\" <sip:0123456789@domain>;tag=as729b3498\r\nTo:
<sip:0123456789@domain>\r\nContact:
<sip:0123456789@a.b.c.d>\r\nCall-ID:
419b254b1c0531af3bf256b14f1881e2@domain\r\nCSeq: 103
INVITE\r\nUser-Agent: Asterisk PBX
1.6.2.9-2+squeeze3\r\nRemote-Party-ID: \"FAX\"
<sip:0123456789@domain>;privacy=off;screen=no\r\nProxy-Authorization:
Digest username=\"0123456789\", realm=\"domain\", algorithm=MD5,
uri=\"sip:0123456789@domain\",
nonce=\"U4Wf01OFnqcywgUETmE15dMbFu/Y1hpt\",
response=\"d055e0f3ba4646773d6ab6c5a05feec7\"\r\nDate: Wed, 28 May
2014 08:30:32 GMT\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
SUBSCRIBE, NOTIFY, INFO\r\nSupported: replaces,
timer\r\nP-Asserted-Identity:
\"0123456789\"<sip:0123456789@a.b.c.d>\r\nContent-Type:
application/sdp\r\nContent-Length: 298\r\n\r\nv=0\r\no=root 1751857229
1751857230 IN IP4 a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN
IP4 a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n", len = 7},
statuscode = 1}}}, via1 = 0x7fad2cf8b158, via2 = 0x0, headers
= 0x7fad2cf8b118, last_header = 0x7fad2cf8bb30, parsed_flag =
18446744073709551615,
h_via1 = 0x7fad2cf8b118, h_via2 = 0x0, callid = 0x7fad2cf8b7a0, to =
0x7fad2cf8b548, cseq = 0x7fad2cf8b7e0, from = 0x7fad2cf8b300, contact
= 0x7fad2cf8b760,
maxforwards = 0x7fad2cf8b2c0, route = 0x0, record_route = 0x0,
content_type = 0x7fad2cf8baf0, content_length = 0x7fad2cf8bb30,
authorization = 0x0, expires = 0x0,
proxy_auth = 0x7fad2cf8b8d0, supported = 0x7fad2cf8ba70, require =
0x0, proxy_require = 0x0, unsupported = 0x0, allow = 0x7fad2cf8ba30,
event = 0x0, accept = 0x0,
accept_language = 0x0, organization = 0x0, priority = 0x0, subject =
0x0, user_agent = 0x7fad2cf8b850, server = 0x0, content_disposition =
0x0, diversion = 0x0,
rpid = 0x7fad2cf8b890, refer_to = 0x0, session_expires = 0x0, min_se
= 0x0, sipifmatch = 0x0, subscription_state = 0x0, date =
0x7fad384baa90, identity = 0x0,
identity_info = 0x0, pai = 0x7fad2cf8bab0, ppi = 0x0, path = 0x0,
privacy = 0x0, body = 0x0,
eoh = 0x7fad2cf8afea "\r\nv=0\r\no=root 1751857229 1751857230 IN IP4
a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN IP4
a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n",
unparsed = 0x7fad2cf8afea "\r\nv=0\r\no=root 1751857229 1751857230
IN IP4 a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN IP4
a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n", rcv = {src_ip = {af = 2, len =
4, u = {addrl = {1950469485, 140381949486832}, addr32 = {1950469485,
0, 943417072, 32685}, addr16 = {52589,
29761, 0, 0, 26352, 14395, 32685, 0}, addr =
"m\315At\000\000\000\000\360f;8\255\177\000"}}, dst_ip = {af = 2, len
= 4, u = {addrl = {67638457, 0},
addr32 = {67638457, 0, 0, 0}, addr16 = {5305, 1032, 0, 0, 0,
0, 0, 0}, addr = "\271\024\b\004", '\000' <repeats 11 times>}},
src_port = 5060, dst_port = 5060,
proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family
= 2, sa_data = "\023\304m\315At\000\000\000\000\000\000\000"}, sin =
{sin_family = 2,
sin_port = 50195, sin_addr = {s_addr = 1950469485}, sin_zero =
"\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port =
50195,
sin6_flowinfo = 1950469485, sin6_addr = {__in6_u = {__u6_addr8
= '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},
__u6_addr32 = {0, 0, 0,
0}}}, sin6_scope_id = 0}}, bind_address =
0x7fad383b6588, proto = 1 '\001'},
buf = 0x7fad2cf8ac30 "INVITE sip:0123456789@domain SIP/2.0\r\nVia:
SIP/2.0/UDP a.b.c.d:5060;branch=z9hG4bK6b726b55;rport\r\nMax-Forwards:
69\r\nFrom: \"FAX\" <sip:0123456789@domain>;tag=as729b3498\r\nTo:
<sip:0123456789@domain>\r\nContact:
<sip:0123456789@a.b.c.d>\r\nCall-ID:
419b254b1c0531af3bf256b14f1881e2@domain\r\nCSeq: 103
INVITE\r\nUser-Agent: Asterisk PBX
1.6.2.9-2+squeeze3\r\nRemote-Party-ID: \"FAX\"
<sip:0123456789@domain>;privacy=off;screen=no\r\nProxy-Authorization:
Digest username=\"0123456789\", realm=\"domain\", algorithm=MD5,
uri=\"sip:0123456789@domain\",
nonce=\"U4Wf01OFnqcywgUETmE15dMbFu/Y1hpt\",
response=\"d055e0f3ba4646773d6ab6c5a05feec7\"\r\nDate: Wed, 28 May
2014 08:30:32 GMT\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
SUBSCRIBE, NOTIFY, INFO\r\nSupported: replaces,
timer\r\nP-Asserted-Identity:
\"0123456789\"<sip:0123456789@a.b.c.d>\r\nContent-Type:
application/sdp\r\nContent-Length: 298\r\n\r\nv=0\r\no=root 1751857229
1751857230 IN IP4 a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN
IP4 a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n", len = 1254, new_uri = {
s = 0x7fad2ceabdef "sip:0123456789@gw SIP/2.0\r\nRecord-Route:
<sip:a.b.c.d;lr=on>\r\nVia: SIP/2.0/UDP
a.b.c.d;branch=z9hG4bK6e86.62fc1f802e2e40a8a17cb1556d5ccfa8.0\r\nVia:
SIP/2.0/UDP
a.b.c.d:5060;branch=z9hG4bK6b726b55;rport=5060\r\nMax-Forwards:
69\r\nFrom: \"FAX\" <sip:0123456789@domain>;tag=as729b3498\r\nTo:
<sip:0123456789@domain>\r\nContact:
<sip:0123456789@a.b.c.d>\r\nCall-ID:
419b254b1c0531af3bf256b14f1881e2@domain\r\nCSeq: 103 INVITE\
sendrecv\r\n", len = 1254, new_uri = {
s = 0x7fad2ceabdef "sip:0123456789@gw SIP/2.0\r\nRecord-Route:
<sip:a.b.c.d;lr=on>\r\nVia: SIP/2.0/UDP
a.b.c.d;branch=z9hG4bK6e86.62fc1f802e2e40a8a17cb1556d5ccfa8.0\r\nVia:
SIP/2.0/UDP
a.b.c.d:5060;branch=z9hG4bK6b726b55;rport=5060\r\nMax-Forwards:
69\r\nFrom: \"FAX\" <sip:0123456789@domain>;tag=as729b3498\r\nTo:
<sip:0123456789@domain>\r\nContact:
<sip:0123456789@a.b.c.d>\r\nCall-ID:
419b254b1c0531af3bf256b14f1881e2@domain\r\nCSeq: 103 INVITE\---Type
<return> to continue, or q <return> to quit---
r\nUser-Agent: Asterisk PBX 1.6.2.9-2+squeeze3\r\nRemote-Party-ID:
\"FAX\" <sip:0123456789@domain>;privacy=off;screen=no\r\nDate: Wed, 28
May 2014 08:30:32 GMT\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE,
REFER, SUBSCRIBE, NOTIFY, INFO\r\nSupported: replaces,
timer\r\nP-Asserted-Identity:
\"0123456789\"<sip:0123456789@a.b.c.d>\r\nContent-Type:
application/sdp\r\nContent-Length: 298\r\n\r\nv=0\r\no=root 1751857229
1751857230 IN IP4 a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN
IP4 a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n", len = 19}, dst_uri = {s = 0x0,
len = 0}, parsed_uri_ok = 0, parsed_uri = {user = {
s = 0x7fad2ceabdf3 "0123456789@gw SIP/2.0\r\nRecord-Route:
<sip:a.b.c.d;lr=on>\r\nVia: SIP/2.0/UDP
a.b.c.d;branch=z9hG4bK6e86.62fc1f802e2e40a8a17cb1556d5ccfa8.0\r\nVia:
SIP/2.0/UDP
a.b.c.d:5060;branch=z9hG4bK6b726b55;rport=5060\r\nMax-Forwards:
69\r\nFrom: \"FAX\" <sip:0123456789@domain>;tag=as729b3498\r\nTo:
<sip:0123456789@domain>\r\nContact:
<sip:0123456789@a.b.c.d>\r\nCall-ID:
419b254b1c0531af3bf256b14f1881e2@domain\r\nCSeq: 103
INVITE\r\nUser-Agent: Asterisk PBX
1.6.2.9-2+squeeze3\r\nRemote-Party-ID: \"FAX\"
<sip:0123456789@domain>;privacy=off;screen=no\r\nDate: Wed, 28 May
2014 08:30:32 GMT\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
SUBSCRIBE, NOTIFY, INFO\r\nSupported: replaces,
timer\r\nP-Asserted-Identity:
\"0123456789\"<sip:0123456789@a.b.c.d>\r\nContent-Type:
application/sdp\r\nContent-Length: 298\r\n\r\nv=0\r\no=root 1751857229
1751857230 IN IP4 a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN
IP4 a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n", len = 10}, passwd = {s = 0x0,
len = 0}, host = {
s = 0x7fad2ceabdfe "gw SIP/2.0\r\nRecord-Route:
<sip:a.b.c.d;lr=on>\r\nVia: SIP/2.0/UDP
a.b.c.d;branch=z9hG4bK6e86.62fc1f802e2e40a8a17cb1556d5ccfa8.0\r\nVia:
SIP/2.0/UDP
a.b.c.d:5060;branch=z9hG4bK6b726b55;rport=5060\r\nMax-Forwards:
69\r\nFrom: \"FAX\" <sip:0123456789@domain>;tag=as729b3498\r\nTo:
<sip:0123456789@domain>\r\nContact:
<sip:0123456789@a.b.c.d>\r\nCall-ID:
419b254b1c0531af3bf256b14f1881e2@domain\r\nCSeq: 103
INVITE\r\nUser-Agent: Asterisk PBX
1.6.2.9-2+squeeze3\r\nRemote-Party-ID: \"FAX\"
<sip:0123456789@domain>;privacy=off;screen=no\r\nDate: Wed, 28 May
2014 08:30:32 GMT\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
SUBSCRIBE, NOTIFY, INFO\r\nSupported: replaces,
timer\r\nP-Asserted-Identity:
\"0123456789\"<sip:0123456789@a.b.c.d>\r\nContent-Type:
application/sdp\r\nContent-Length: 298\r\n\r\nv=0\r\no=root 1751857229
1751857230 IN IP4 a.b.c.d\r\ns=Asterisk PBX 1.6.2.9-2+squeeze3\r\nc=IN
IP4 a.b.c.d\r\nt=0 0\r\nm=audio 11886 RTP/AVP 8 3 0 101\r\na=rtpmap:8
PCMA/8000\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:0
PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101
0-16\r\na=ptime:20\r\na=sendrecv\r\n", len = 4}, port = {s = 0x0, len
= 0}, params = {s = 0x0, len = 0}, sip_params = {s = 0x0, len = 0},
headers = {
s = 0x0, len = 0}, port_no = 0, proto = 0, type = SIP_URI_T,
flags = 0, transport = {s = 0x0, len = 0}, ttl = {s = 0x0, len = 0},
user_param = {s = 0x0,
len = 0}, maddr = {s = 0x0, len = 0}, method = {s = 0x0, len =
0}, lr = {s = 0x0, len = 0}, r2 = {s = 0x0, len = 0}, gr = {s = 0x0,
len = 0}, transport_val = {
s = 0x0, len = 0}, ttl_val = {s = 0x0, len = 0}, user_param_val
= {s = 0x0, len = 0}, maddr_val = {s = 0x0, len = 0}, method_val = {s
= 0x0, len = 0}, lr_val = {
s = 0x0, len = 0}, r2_val = {s = 0x0, len = 0}, gr_val = {s =
0x0, len = 0}}, parsed_orig_ruri_ok = 0, parsed_orig_ruri = {user = {s
= 0x0, len = 0}, passwd = {
s = 0x0, len = 0}, host = {s = 0x0, len = 0}, port = {s = 0x0,
len = 0}, params = {s = 0x0, len = 0}, sip_params = {s = 0x0, len =
0}, headers = {s = 0x0,
len = 0}, port_no = 0, proto = 0, type = ERROR_URI_T, flags = 0,
transport = {s = 0x0, len = 0}, ttl = {s = 0x0, len = 0}, user_param =
{s = 0x0, len = 0},
maddr = {s = 0x0, len = 0}, method = {s = 0x0, len = 0}, lr = {s =
0x0, len = 0}, r2 = {s = 0x0, len = 0}, gr = {s = 0x0, len = 0},
transport_val = {s = 0x0,
len = 0}, ttl_val = {s = 0x0, len = 0}, user_param_val = {s =
0x0, len = 0}, maddr_val = {s = 0x0, len = 0}, method_val = {s = 0x0,
len = 0}, lr_val = {s = 0x0,
len = 0}, r2_val = {s = 0x0, len = 0}, gr_val = {s = 0x0, len =
0}}, add_rm = 0x7fad2ce523c8, body_lumps = 0x0, reply_lump = 0x0,
add_to_branch_s = '\000' <repeats 57 times>, add_to_branch_len = 0,
hash_index = 26854, msg_flags = 145, flags = 2, set_global_address =
{s = 0x0, len = 0},
set_global_port = {s = 0x0, len = 0}, force_send_socket = 0x0,
path_vec = {s = 0x0, len = 0}, instance = {s = 0x0, len = 0}, reg_id =
0, ruid = {s = 0x0, len = 0},
location_ua = {s = 0x0, len = 0}, ldv = {flow = {decoded = 0, rcv =
{src_ip = {af = 0, len = 0, u = {addrl = {0, 0}, addr32 = {0, 0, 0,
0}, addr16 = {0, 0, 0, 0, 0,
0, 0, 0}, addr = '\000' <repeats 15 times>}}, dst_ip =
{af = 0, len = 0, u = {addrl = {0, 0}, addr32 = {0, 0, 0, 0}, addr16 =
{0, 0, 0, 0, 0, 0, 0, 0},
addr = '\000' <repeats 15 times>}}, src_port = 0, dst_port
= 0, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s =
{sa_family = 0,
sa_data = '\000' <repeats 13 times>}, sin = {sin_family =
0, sin_port = 0, sin_addr = {s_addr = 0}, sin_zero =
"\000\000\000\000\000\000\000"}, sin6 = {
sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0,
sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>,
__u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},
__u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}},
bind_address = 0x0, proto = 0 '\000'}}}}
Regards,
Igor.
2014-05-28 12:01 GMT+02:00 Daniel-Constantin Mierla <miconda(a)gmail.com
<mailto:miconda@gmail.com>>:
Hello,
can you give the output in gdb for:
set print elements 2000
p *msg
Cheers,
Daniel
On 28/05/14 11:48, Igor Potjevlesch wrote:
> hello,
>
> Kamailio 4.1.3 crashed today, with an segmentation fault error :
> kernel: kamailio[2406]: segfault at 18 ip 0000000000495792 sp
> 00007fff3d9d2d80 error 4 in kamailio[400000+275000]
>
> Here is the result of BT :
> #0 0x0000000000495792 in pv_get_strval (msg=0x7fad2cf8a530,
> param=0x7fad3858c288, res=0x7fff3d9d2eb0, sval=0x18) at pvapi.c:521
> #1 0x00007fad365b0da8 in pv_get_pai (msg=0x7fad2cf8a530,
> param=0x7fad3858c288, res=0x7fff3d9d2eb0) at pv_core.c:1021
> #2 0x0000000000499518 in pv_get_spec_value (msg=0x7fad2cf8a530,
> sp=0x7fad3858c270, value=0x7fff3d9d2eb0) at pvapi.c:1266
> #3 0x00007fad34c6d7d9 in extra2strar (extra=0x7fad3858c260,
> rq=0x7fad2cf8a530, val_arr=0x7fad34e7ae30,
> int_arr=0x7fad34e7b37c,type_arr=0x7fad34e7b4e7
> "\002\002\002\002") at acc_extra.c:261
> #4 0x00007fad34c65393 in acc_db_request (rq=0x7fad2cf8a530) at
> acc.c:474
> #5 0x00007fad34c6fb43 in acc_onreply (t=0x7fad2ce0b138,
> req=0x7fad2cf8a530, reply=0x7fad3859faa8, code=200) at
> acc_logic.c:471
> #6 0x00007fad34c7008d in tmcb_func (t=0x7fad2ce0b138, type=512,
> ps=0x7fff3d9d3120) at acc_logic.c:559
> #7 0x00007fad36e6a478 in run_trans_callbacks_internal
> (cb_lst=0x7fad2ce0b1a8, type=512, trans=0x7fad2ce0b138,
> params=0x7fff3d9d3120) at t_hooks.c:290
> #8 0x00007fad36e6a68a in run_trans_callbacks_with_buf (type=512,
> rbuf=0x7fad2ce0b1f8, req=0x7fad2cf8a530, repl=0x7fad3859faa8,
> flags=183) at t_hooks.c:336
> #9 0x00007fad36e9cc06 in relay_reply (t=0x7fad2ce0b138,
> p_msg=0x7fad3859faa8, branch=0, msg_status=183,
> cancel_data=0x7fff3d9d3480, do_put_on_wait=1) at t_reply.c:2001
> #10 0x00007fad36e9f0b7 in reply_received (p_msg=0x7fad3859faa8)
> at t_reply.c:2499
> #11 0x000000000045d837 in do_forward_reply (msg=0x7fad3859faa8,
> mode=0) at forward.c:777
> #12 0x000000000045e0f8 in forward_reply (msg=0x7fad3859faa8) at
> forward.c:860
> #13 0x00000000004a5887 in receive_msg (
> buf=0x924600 "SIP/2.0 183 Session Progress\r\nVia:
> SIP/2.0/UDP
>
a.b.c.d;branch=z9hG4bK6e86.62fc1f802e2e40a8a17cb1556d5ccfa8.0;received=a.b.c.d\r\nVia:
> SIP/2.0/UDP a.b.c.d:5060;branch=z9hG4bK6b726b55;rport=5"...,
> len=872, rcv_info=0x7fff3d9d3800) at receive.c:273
> #14 0x000000000053c838 in udp_rcv_loop () at udp_server.c:536
> #14 0x000000000053c838 in udp_rcv_loop () at udp_server.c:536
> #15 0x000000000046d42b in main_loop () at main.c:1617
> #16 0x00000000004704d3 in main (argc=7, argv=0x7fff3d9d3b38) at
> main.c:2533
>
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda