Hi,
we need have a function to fetching current date and time from sipp running system. It will usefull for below usecase:
for Example :
As per RFC rfc7339.pdf --> I can use it for "oc-seq"
oc-seq = "oc-seq" EQUAL 112DIGIT "." 15DIGIT
oc-seq=1282321892.439
RFC 3261:
20.17 Date
The Date header field contains the date and time. Unlike HTTP/1.1,
SIP only supports the most recent RFC 1123 [20] format for dates. As
in [H3.3], SIP restricts the time zone in SIP-date to "GMT", while
RFC 1123 allows any time zone. An RFC 1123 date is case-sensitive.
The Date header field reflects the time when the request or response
is first sent.
The Date header field can be used by simple end systems without a
battery-backed clock to acquire a notion of current time.
However, in its GMT form, it requires clients to know their offset
from GMT.
Example:
Date: Sat, 13 Nov 2010 23:29:00 GMT