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

Method setLastMsg

src/call.cpp:6617–6629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6615}
6616
6617void call::setLastMsg(const char *msg)
6618{
6619 realloc_ptr = (char *) realloc(last_recv_msg, strlen(msg) + 1);
6620 if (realloc_ptr) {
6621 last_recv_msg = realloc_ptr;
6622 } else {
6623 free(last_recv_msg);
6624 ERROR("Out of memory!");
6625 return;
6626 }
6627
6628 strcpy(last_recv_msg, msg);
6629}
6630
6631bool call::automaticResponseMode(T_AutoMode P_case, const char* P_recv)
6632{

Callers

nothing calls this directly

Calls 1

ERRORFunction · 0.85

Tested by

no test coverage detected