<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>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):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> [...]</FONT></DIV>
<DIV><FONT face=Arial size=2> append_hf("Anyheader: hello");</FONT></DIV>
<DIV><FONT face=Arial size=2> showrequest();</FONT></DIV>
<DIV><FONT face=Arial size=2> [...]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>being 'showrequest' a function in a module that
just does:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>static int showrequest_f(struct sip_msg* msg, char
*foo, char *foo2)<BR>{<BR> parse_headers(msg, HDR_EOH,
0);<BR> fprintf(stderr, "MESSAGE:\n");<BR>
fprintf(stderr, msg->buf); <BR> return
1;<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>then I can't see the new header! What am I
doing wrong?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you.</FONT></DIV></BODY></HTML>