[Serusers] sip_msg->buf does not contain modifications

José Luis Peñalver Paret jose.penalver at aervox.com
Tue Mar 1 17:37:01 CET 2005


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050301/cbd59c76/attachment.htm>


More information about the sr-users mailing list