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

Function sipMsgCheck

src/socket.cpp:3072–3085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3070/***************** Check of the message received ***************/
3071
3072bool 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

Callers 1

process_messageFunction · 0.85

Calls 2

is_a_peer_socketFunction · 0.85
is_a_local_socketFunction · 0.85

Tested by

no test coverage detected