| 3070 | /***************** Check of the message received ***************/ |
| 3071 | |
| 3072 | bool sipMsgCheck (const char *P_msg, SIPpSocket *socket) |
| 3073 | { |
| 3074 | const char C_sipHeader[] = "SIP/2.0"; |
| 3075 | |
| 3076 | if (socket == twinSippSocket || socket == localTwinSippSocket || |
| 3077 | is_a_peer_socket(socket) || is_a_local_socket(socket)) |
| 3078 | return true; |
| 3079 | |
| 3080 | if (strstr(P_msg, C_sipHeader) != nullptr) { |
| 3081 | return true; |
| 3082 | } |
| 3083 | |
| 3084 | return false; |
| 3085 | } |
| 3086 | |
| 3087 | |
| 3088 | #ifdef GTEST |
no test coverage detected