<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
<blockquote
 cite="mid:AANLkTi=j2sfOC0400X_4eZqrGH1XAAO6W+QM_zBkAgZK@mail.gmail.com"
 type="cite">
  <div class="gmail_quote">
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div text="#000000" bgcolor="#ffffff"><br>
Also don't forget <br>
(gdb)info registers<br>
    <br>
Thank you <br>
Marius<br>
    </div>
  </blockquote>
  <div><br>
  </div>
  <div>Hi Marius,</div>
  <div><br>
  </div>
  <div>
  <div>I hope this is what your after!</div>
  </div>
  <div><br>
  </div>
  <div>
  <div>(gdb) add-symbol-file /lib/kamailio/modules/topoh.so
0xb7004000+0x00001d30</div>
  <div>add symbol table from file "/lib/kamailio/modules/topoh.so" at</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>.text_addr
= 0xb7005d30</div>
  <div>(y or n) y</div>
  <div>Reading symbols from /lib/kamailio/modules/topoh.so...done.</div>
  <div>(gdb) x/s 0xb70070d9</div>
  <div>0xb70070d9 &lt;th_skip_msg+9&gt;:<span class="Apple-tab-span"
 style="white-space: pre;"> </span> &lt;Address 0xb70070d9 out of
bounds&gt;</div>
  <div>(gdb) info registers <br>
  </div>
  </div>
  <div><br>
  </div>
  <div>&nbsp;</div>
  </div>
</blockquote>
<br>
Yes I think it is<br>
<br>
Looking at the debug messages I see the CSeq is wrong. <br>
<br>
But :<br>
<br>
int th_skip_msg(sip_msg_t *msg)<br>
{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
if((get_cseq(msg)-&gt;method_id)&amp;(METHOD_REGISTER|METHOD_PUBLISH))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 1;<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br>
}<br>
<br>
As the cseq is wrong the get_cseq macro probably returns a NULL Pointer
who gets dereferenced (BANG the crash). Any other Ideas ?! <br>
<br>
The patch is trivial ( if(!get_cseq(msg))) parse_cseq(....) ) something
in this line. Daniel, What do you think ?<br>
<br>
Marius<br>
<br>
</body>
</html>