MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / get_msg_time

Function get_msg_time

parser/msg_parser.h:615–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613int extract_ftc_hdrs( char *buf, int len, str *from, str *to, str *cseq,str *callid);
614
615inline static struct timeval *get_msg_time(struct sip_msg *msg)
616{
617 static struct timeval static_time;
618 if (!msg || msg == (struct sip_msg *)-1) {
619 gettimeofday(&static_time, NULL);
620 return &static_time;
621 }
622 if (msg->time.tv_sec == 0 && msg->time.tv_usec == 0)
623 gettimeofday(&msg->time, NULL);
624 return &msg->time;
625}
626
627#endif

Callers 2

core2strarFunction · 0.85
acc_dlg_endedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected