[Serusers] adding a header
nils at iptel.org
Mon Jul 7 15:38:30 CEST 2003
On Monday 07 July 2003 14:08, Mario Kolberg wrote:
> I'm trying to add a header to SIP messages (for a research project).
> However, it seems as ser (version 0.8.11pre26) doesn't like my code.
> Below is the function which is part of a module. It seems as depending
> on the length of the variable test, ser either crashes or just doesn't
> send on the full message (truncated after the new header). It sounds a
> bit like a memory problem. I tried to make sure that memory is properly
> allocated (thats why the pkg_malloc) and the string is terminated.
> I'd be grateful for any pointers!
sorry, but is their any obvious reason which i do not see why you are not just
use append_hf from the textops module to insert a new header field?
More information about the sr-users