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

Function get_reply_code

src/sip_parser.cpp:404–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404unsigned long get_reply_code(const char* msg)
405{
406 while (msg && *msg != ' ' && *msg != '\t')
407 ++msg;
408 while (msg && (*msg == ' ' || *msg == '\t'))
409 ++msg;
410
411 if (msg && strlen(msg) > 0) {
412 return atol(msg);
413 }
414 return 0;
415}
416
417static const char* internal_find_header(const char* msg, const char* name, const char* shortname,
418 bool content)

Callers 4

process_unexpectedMethod · 0.85
abortCallMethod · 0.85
process_incomingMethod · 0.85
process_messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected