hf.c File Reference

Helper functions for SIP headers.

Memory management and debugging functions for SIP headers. More...

#include "hf.h"
#include "parse_via.h"
#include "parse_to.h"
#include "parse_cseq.h"
#include "../dprint.h"
#include "../mem/mem.h"
#include "parse_def.h"
#include "digest/digest.h"
#include "parse_event.h"
#include "parse_expires.h"
#include "parse_rr.h"
#include "contact/parse_contact.h"
#include "parse_disposition.h"
#include "../ut.h"
#include "parse_supported.h"
#include "parse_allow.h"
#include "parse_sst.h"

Include dependency graph for hf.c:

Go to the source code of this file.

Functions

void clean_hdr_field (struct hdr_field *hf)
void dump_hdr_field (struct hdr_field *hf)
void free_hdr_field_lst (struct hdr_field *hf)


Detailed Description

Helper functions for SIP headers.

Memory management and debugging functions for SIP headers.

Definition in file hf.c.


Function Documentation

void clean_hdr_field ( struct hdr_field hf  ) 

void dump_hdr_field ( struct hdr_field hf  ) 

Output the contents of a header to the logging system with log level ERROR.

Parameters:
hf header that is dumped

Definition at line 219 of file hf.c.

References hdr_field::body, _str::len, LM_ERR, hdr_field::name, hdr_field::next, hdr_field::parsed, _str::s, hdr_field::type, and ZSW.

void free_hdr_field_lst ( struct hdr_field hf  ) 

Frees a hdr_field list,

Warning:
frees only ->parsed and ->next

Definition at line 207 of file hf.c.

References clean_hdr_field(), hdr_field::next, and pkg_free.

Referenced by ac_cancel(), ac_uac_req(), build_local(), free_sip_msg(), free_sip_msg_lite(), mi_tm_uac_dlg(), and shmcontact2dset().


Generated on Wed May 23 06:01:04 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6