Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3988,7 +3988,7 @@ call::T_AutoMode call::checkAutomaticResponseMode(char * P_recv)
return E_AM_UNEXP_CANCEL;
} else if (strcmp(P_recv, "PING") == 0) {
return E_AM_PING;
} else if (((strcmp(P_recv, "INFO") == 0) || (strcmp(P_recv, "NOTIFY") == 0) || (strcmp(P_recv, "UPDATE") == 0))
} else if (((strcmp(P_recv, "INFO") == 0) || (strcmp(P_recv, "NOTIFY") == 0) || (strcmp(P_recv, "UPDATE") == 0) || (strcmp(P_recv, "OPTIONS") == 0))
&& (auto_answer == true)) {
return E_AM_AA;
} else {
Expand Down
1 change: 1 addition & 0 deletions src/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,7 @@ void process_message(struct sipp_socket *socket, char *msg, ssize_t msg_size, st
} else if (auto_answer &&
((strstr(msg, "NOTIFY") == msg) ||
(strstr(msg, "INFO") == msg) ||
(strstr(msg, "OPTIONS") == msg) ||
(strstr(msg, "UPDATE") == msg))) {
// If auto answer mode, try to answer the incoming message
// with automaticResponseMode
Expand Down