Hello guys,

I wrote a module for credit control which aims to tear a call down when client'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't working because, somehow, the header fields are displaced. 

Considering this code:

LM_ALERT("Message CID: %.*s", msg->callid->body.len, msg->callid->body.s);

when I try to read the Call ID hdr field in 3.2 I get the right reading:
ALERT: cnxcc [cnxcc_mod.c:807]: Message CID: vqsxmovczhwztpa@carlosrdcnx-laptop.site

but if I do the same on 3.3, with the same code (and recompiled for 3.3 of course) I get the Via hdr field.

ALERT: cnxcc [cnxcc_mod.c:807]: Message CID: SIP/2.0/UDP 127.0.0.1:5062;rport;branch=z9hG4bKnoyvhhjv

It's the same for Kam 3.4-dev.

What am I doing wrong?

Regards.

Carlos.