MCPcopy Create free account
hub / github.com/SIPp/sipp / internal_compact_header_name

Function internal_compact_header_name

src/sip_parser.cpp:293–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293const char* internal_compact_header_name(const char* name)
294{
295 if (!strcasecmp(name, "call-id:")) {
296 return "\ni:";
297 } else if (!strcasecmp(name, "contact:")) {
298 return "\nm:";
299 } else if (!strcasecmp(name, "content-encoding:")) {
300 return "\ne:";
301 } else if (!strcasecmp(name, "content-length:")) {
302 return "\nl:";
303 } else if (!strcasecmp(name, "content-type:")) {
304 return "\nc:";
305 } else if (!strcasecmp(name, "from:")) {
306 return "\nf:";
307 } else if (!strcasecmp(name, "to:")) {
308 return "\nt:";
309 } else if (!strcasecmp(name, "via:")) {
310 return "\nv:";
311 }
312 return nullptr;
313}
314
315char* get_first_line(const char* message)
316{

Callers 2

get_headerFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected