| 509 | #define get_header_by_static_name(_msg, _name) \ |
| 510 | get_header_by_name(_msg, _name, sizeof(_name)-1) |
| 511 | inline 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) \ |
no outgoing calls
no test coverage detected