MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / get_header_by_name

Function get_header_by_name

parser/msg_parser.h:511–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509#define get_header_by_static_name(_msg, _name) \
510 get_header_by_name(_msg, _name, sizeof(_name)-1)
511inline static struct hdr_field *get_header_by_name( struct sip_msg *msg,
512 char *s, unsigned int len)
513{
514 struct hdr_field *hdr;
515
516 for( hdr=msg->headers ; hdr ; hdr=hdr->next ) {
517 if(len==hdr->name.len && strncasecmp(hdr->name.s,s,len)==0)
518 return hdr;
519 }
520 return NULL;
521}
522
523
524#define get_next_header_by_static_name(_hdr, _name) \

Callers 8

ospGetPciUserFunction · 0.85
ospGetPciHostFunction · 0.85
ospGetPcvIcidFunction · 0.85
ospGetIdentityFunction · 0.85
ospGetOspTokenFunction · 0.85
set_sock_hdrFunction · 0.85
b2b_extra_headersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected