Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

int sip_from_tag ( su_home_t home,
sip_from_t from,
char const *  tag 

Add a tag to a header. If tag is identical with the existing one, nothing will be done. An error is returned, if the header already contains a different tag. The tag can be provided either as a single token ("deadbeer") or as in parameter form ("tag=deadbeer"). In both cases the tag is duplicated using the memory home home.

home memory home used to allocate new tag
from header to modify
tag tag token or parameter to be added
Return values:
0 when successful
-1 upon an error.

Definition at line 1797 of file sip_basic.c.

Referenced by nta_leg_rtag().

  return sip_addr_tag(home, from, tag);

Generated by  Doxygen 1.6.0   Back to index