| 6596 | } |
| 6597 | |
| 6598 | call::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 | |
| 6617 | void call::setLastMsg(const char *msg) |
| 6618 | { |
nothing calls this directly
no outgoing calls
no test coverage detected