<div>Hello guys,</div><div><br></div><div>I wrote a module for credit control which aims to tear a call down when client&#39;s credit is over. The problem is that I started writing it when Kam 3.3 was not out yet, and today, when I tried to use it with the latest stable release, I found out that it wasn&#39;t working because, somehow, the header fields are displaced. </div>
<div><br></div><div>Considering this code:</div><div><br></div><div><i>LM_ALERT(&quot;Message CID: %.*s&quot;, msg-&gt;callid-&gt;body.len, msg-&gt;callid-&gt;body.s);</i></div><div><br></div><div>when I try to read the Call ID hdr field in <b>3.2</b> I get the right reading:</div>
<div>ALERT: cnxcc [cnxcc_mod.c:807]: Message CID: <b>vqsxmovczhwztpa@carlosrdcnx-laptop.site</b></div><div><b><br></b></div><div>but if I do the same on <b>3.3</b>, with the same code (and recompiled for 3.3 of course) I get the Via hdr field.</div>
<div><br></div><div>ALERT: cnxcc [cnxcc_mod.c:807]: Message CID: <b>SIP/2.0/UDP 127.0.0.1:5062;rport;branch=z9hG4bKnoyvhhjv</b></div><div><br></div><div>It&#39;s the same for Kam 3.4-dev.</div><div><br></div><div>What am I doing wrong?</div>
<div><br></div><div>Regards.</div><div><br></div><div>Carlos.</div>