Hello, according to the guide, changes done on a message while server processing are kept
in sip_msg->buf. But if I do something like (in ser.cfg):
[...]
append_hf("Anyheader: hello");
showrequest();
[...]
being 'showrequest' a function in a module that just does:
static int showrequest_f(struct sip_msg* msg, char *foo, char *foo2)
{
parse_headers(msg, HDR_EOH, 0);
fprintf(stderr, "MESSAGE:\n");
fprintf(stderr, msg->buf);
return 1;
}
then I can't see the new header! What am I doing wrong?
Thank you.