Parse the xml cdr it will give you more than you want probably. On Friday, February 12, 2016, Alexandru Covalschi <568691@gmail.com> wrote:
Hello folks!
I have a problem - I need to get actual duration of the call - I mean from ANSWER to HANGUP, without the time user waited being parked on the bridge. The thing is I need to write that info into a custom table which belongs to a custom database where I have leg_a uuid. How can I achieve that in case of: 1. Outoing origination via bridge() 2. Connecting two customers which are already inside a freeswitch via bridge() I've read about mod_cdr_csv but it afaik doesn't allow to connect to a custom db. Would mod_odbc_cdr allow me to do that? And if yes - can you tell me "chan-var-name"?
And don't be afraid - such slow method is not for billing :) Just to provide customer more detailed calls history.
Thanks! -- Alexandru Covalschi ABRISS-Solutions VoIP engineer and system administrator phone: +37367398493 web: http://abs-telecom.com/
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest