Details
-
Type:
Improvement
-
Status:
Waiting for reporter
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.2.1
-
Fix Version/s: None
-
Component/s: freeswitch-core
-
Labels:None
-
Environment:N/A
-
Platform:Linux x86_64/gcc
-
FreeSWITCH GIT Revision:679da2f0f609c7a893c62929481cb8feaafef7b5
-
Reproduced with GIT HEAD?:yes
Description
I'd like to have timestamps in my cdr's in usec resolution, but not in (u)epoch format. Postgres supports microseconds in its DateTime field in the format
YYYY-MM-DD HH24:MI:SS.US
I have for example a column start_stamp in my db of type "timestamp without timezone":
voipdb=# insert into cdrs (uuid,direction,start_stamp) values ('foo','inbound','2012-01-01 11:22:33.112233');
INSERT 0 1
voipdb=# select uuid,direction,start_stamp from cdrs;
uuid | direction | start_stamp
-------+-----------+----------------------------
foo | inbound | 2012-01-01 11:22:33.112233
Attached patch adds the following variables (when available, just like current *_stamp fields):
* start_ustamp
* profile_start_ustamp
* answer_ustamp
* bridge_ustamp
* hold_ustamp
* resurrect_ustamp
* progress_ustamp
* progress_media_ustamp
* end_ustamp
thanks,
Leon
YYYY-MM-DD HH24:MI:SS.US
I have for example a column start_stamp in my db of type "timestamp without timezone":
voipdb=# insert into cdrs (uuid,direction,start_stamp) values ('foo','inbound','2012-01-01 11:22:33.112233');
INSERT 0 1
voipdb=# select uuid,direction,start_stamp from cdrs;
uuid | direction | start_stamp
-------+-----------+----------------------------
foo | inbound | 2012-01-01 11:22:33.112233
Attached patch adds the following variables (when available, just like current *_stamp fields):
* start_ustamp
* profile_start_ustamp
* answer_ustamp
* bridge_ustamp
* hold_ustamp
* resurrect_ustamp
* progress_ustamp
* progress_media_ustamp
* end_ustamp
thanks,
Leon