<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 30/05/14 17:41, Igor Potjevlesch
wrote:<br>
</div>
<blockquote
cite="mid:CAJmJ=jFa1=owEr4SxjMq=pyrP++90WW72BtkjVkYBRrWPmpQ-Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>The crash happen once. it can't be reproduced.</div>
<div>The pai seems good, why it cannot be parsed?</div>
</div>
</blockquote>
apparently it was parsed, but then the content got reset. The
sip_msg_t for request is accessed via a callback inside acc module
when the sip_msg_t for response is handled.<br>
<br>
So I have to see why it got reset, it shouldn't -- the patch so far
was to prevent the crash.<br>
<br>
Cheers,<br>
Daniel<br>
<blockquote
cite="mid:CAJmJ=jFa1=owEr4SxjMq=pyrP++90WW72BtkjVkYBRrWPmpQ-Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Igor.</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-05-29 17:11 GMT+02:00
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Hello,<br>
<br>
for the moment I added a safety check to prevent crash in
such situation:<br>
-
<a moz-do-not-send="true"
href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e633ca6b7e748a77825d3208e86bf9bce18944a5"
target="_blank">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e633ca6b7e748a77825d3208e86bf9bce18944a5</a><br>
<br>
I need to investigate more to discover why the parsed
field has null content.<br>
<br>
Does the crash happen often or can it be reproduced?<br>
<br>
Cheers,<br>
Daniel
<div>
<div class="h5"><br>
<br>
<div>On 29/05/14 10:18, Daniel-Constantin Mierla
wrote:<br>
</div>
<blockquote type="cite"> Hello,<br>
<br>
I missed somehow the message with the pai parsed
content. I will look over it later today.<br>
<br>
Cheers, Daniel<br>
<br>
<div>On 28/05/14 18:45, Igor Potjevlesch wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>Do you any ideas about the reason of this
issue?</div>
<div>Is it caused by the last call? Do you
have enough information with the PAI?<br>
<br>
<span><span style="color:rgb(31,73,125)"
lang="EN-GB">Regards,</span></span>
<p class="MsoNormal"> <span><span
style="color:rgb(31,73,125)"
lang="EN-GB"> </span></span></p>
<p class="MsoNormal"><span><span
style="color:rgb(31,73,125)"
lang="EN-GB">Igor.</span></span></p>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote"> 2014-05-28 13:47
GMT+02:00 Igor Potjevlesch <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:igor.potjevlesch@gmail.com"
target="_blank">igor.potjevlesch@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr">
<div>Hello,</div>
<div><br>
p *msg->pai :</div>
<div><br>
</div>
<div>$4 = {type = HDR_PAI_T, name = {<br>
s = 0x7fad2cf8af74
"P-Asserted-Identity: \"0123456789\"<a
moz-do-not-send="true"><sip:0123456789@a.b.c.d></a>\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}, body = {<br>
s = 0x7fad2cf8af89 "\"0123456789\"<a
moz-do-not-send="true"><sip:0123456789@a.b.c.d></a>\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 = 43}, len = 66,<br>
parsed = 0x7fad389a7220, next =
0x7fad2cf8baf0}</div>
<div><br>
</div>
<div><br>
p
*((p_id_body_t*)msg->pai->parsed)
:</div>
<div><br>
</div>
<div>$5 = {id = 0x0, num_ids = 0, next =
0x0}</div>
<div><br>
</div>
<div>
<div>
<p class="MsoNormal"> <span><span
style="color:rgb(31,73,125)"
lang="EN-GB">Regards,</span></span></p>
<p class="MsoNormal"><span><span
style="color:rgb(31,73,125)"
lang="EN-GB"> </span></span></p>
<p class="MsoNormal"><span><span
style="color:rgb(31,73,125)"
lang="EN-GB">Igor.</span></span></p>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-05-28
13:29 GMT+02:00 Daniel-Constantin
Mierla <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span>:
<div>
<div><br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div text="#000000"
bgcolor="#FFFFFF"> Hello,<br>
<br>
I need now:<br>
<br>
p *msg->pai<br>
p
*((p_id_body_t*)msg->pai->parsed)<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>