Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Get actual duration of the call after hangup


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
568691 at gmail.com
Guest





PostPosted: Fri Feb 12, 2016 8:20 pm    Post subject: [Freeswitch-users] Get actual duration of the call after han Reply with quote

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 Smile Just to provide customer more detailed calls history.

Thanks!

--
Alexandru Covalschi
ABRISS-SolutionsVoIP engineer and system administrator
phone: +37367398493
web: http://abs-telecom.com/
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Feb 12, 2016 9:02 pm    Post subject: [Freeswitch-users] Get actual duration of the call after han Reply with quote

Parse the xml cdr it will give you more than you want probably.

On Friday, February 12, 2016, Alexandru Covalschi <568691@gmail.com (568691@gmail.com)> wrote:
Quote:
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 Smile Just to provide customer more detailed calls history.

Thanks!

--
Alexandru Covalschi
ABRISS-SolutionsVoIP engineer and system administrator
phone: +37367398493
web: http://abs-telecom.com/




















--

Brian West
brian@freeswitch.org (brian@freeswitch.org)


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services