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

Method checkAutomaticResponseMode

src/call.cpp:6598–6615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6596}
6597
6598call::T_AutoMode call::checkAutomaticResponseMode(char* P_recv)
6599{
6600 if (strcmp(P_recv, "BYE")==0) {
6601 return E_AM_UNEXP_BYE;
6602 } else if (strcmp(P_recv, "CANCEL") == 0) {
6603 return E_AM_UNEXP_CANCEL;
6604 } else if (strcmp(P_recv, "PING") == 0) {
6605 return E_AM_PING;
6606 } else if (auto_answer &&
6607 ((strcmp(P_recv, "INFO") == 0) ||
6608 (strcmp(P_recv, "NOTIFY") == 0) ||
6609 (strcmp(P_recv, "OPTIONS") == 0) ||
6610 (strcmp(P_recv, "UPDATE") == 0))) {
6611 return E_AM_AA;
6612 } else {
6613 return E_AM_DEFAULT;
6614 }
6615}
6616
6617void call::setLastMsg(const char *msg)
6618{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected