Douglas Garstang
2008-Jul-10 16:49 UTC
[asterisk-users] Tracking Call Time While in Dial()
So, I've been asked if this is possible. Someone wants to actively monitor the duration of a call, while the call is still in progress. Obviously, in Asterisk, once the Dial() application starts, you lose dial plan control until after the call has ended, successful or otherwise. Anyone know if that kind of thing is possible? Doug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080710/ef6392bf/attachment.htm
Call an "AGI" right before the start of the Dial command to record the start time and ether use an manager application (makes use of manager API) or call an DeadAGI once the call has ended (from the "h" extension). This requires a bit of programming - but then again some programming is required anyway to display the actual talk time somewhere. It might also be that I'm an programmer and I attempt to solve all problems writing programs, so maybe someone else has a better idea! -- Cosmin Prund De la: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] ?n numele Douglas Garstang Trimis: Thursday, July 10, 2008 7:49 PM C?tre: asterisk-users at lists.digium.com Subiect: [asterisk-users] Tracking Call Time While in Dial() So, I've been asked if this is possible. Someone wants to actively monitor the duration of a call, while the call is still in progress. Obviously, in Asterisk, once the Dial() application starts, you lose dial plan control until after the call has ended, successful or otherwise. Anyone know if that kind of thing is possible? Doug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080711/53357909/attachment.htm
Douglas Garstang
2008-Jul-11 14:21 UTC
[asterisk-users] Tracking Call Time While in Dial()
Thanks, but that won't do what I need. By calling an AGI before the call starts and after the call ends, all I am doing is accounting the start and the end of the call, not actively monitoring the duration of the call as it occurs. ----- Original Message ---- From: Cosmin Prund <cosmin.prund at adicomsoft.ro> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Sent: Friday, July 11, 2008 3:57:23 AM Subject: Re: [asterisk-users] Tracking Call Time While in Dial() Call an "AGI" right before the start of the Dial command to record the start time and ether use an manager application (makes use of manager API) or call an DeadAGI once the call has ended (from the "h" extension). This requires a bit of programming - but then again some programming is required anyway to display the actual talk time somewhere. It might also be that I'm an programmer and I attempt to solve all problems writing programs, so maybe someone else has a better idea! -- Cosmin Prund De la:asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] ?n numele Douglas Garstang Trimis: Thursday, July 10, 2008 7:49 PM C?tre: asterisk-users at lists.digium.com Subiect: [asterisk-users] Tracking Call Time While in Dial() So, I've been asked if this is possible. Someone wants to actively monitor the duration of a call, while the call is still in progress. Obviously, in Asterisk, once the Dial() application starts, you lose dial plan control until after the call has ended, successful or otherwise. Anyone know if that kind of thing is possible? Doug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080711/dc9f5188/attachment.htm
Douglas Garstang
2008-Jul-11 17:08 UTC
[asterisk-users] Tracking Call Time While in Dial()
I want to track call duration while the call is in progress. ----- Original Message ---- From: Tilghman Lesher <tilghman at mail.jeffandtilghman.com> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Sent: Friday, July 11, 2008 7:39:40 AM Subject: Re: [asterisk-users] Tracking Call Time While in Dial() On Friday 11 July 2008 09:21:56 Douglas Garstang wrote:> Thanks, but that won't do what I need. By calling an AGI before the call > starts and after the call ends, all I am doing is accounting the start and > the end of the call, not actively monitoring the duration of the call as it > occurs.It is unclear from your description what you want to do. Could you be more explicit? -- Tilghman _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080711/1de81887/attachment.htm
Daniel Hazelbaker
2008-Jul-11 17:17 UTC
[asterisk-users] Tracking Call Time While in Dial()
On Jul 11, 2008, at 10:08 AM, Douglas Garstang wrote:> I want to track call duration while the call is in progress.To accomplish what? Are you wanting to "beep" the channel every 10 seconds? Are you wanting to play a "you have 60 seconds left" message when they approach some quota? Are you wanting to limit the call to 5 minutes and 23 seconds? Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080711/3aaf8b70/attachment.htm
Douglas Garstang
2008-Jul-11 17:52 UTC
[asterisk-users] Tracking Call Time While in Dial()
Wanting to provide a real time call timer on a web page. ----- Original Message ---- From: Daniel Hazelbaker <daniel at highdesertchurch.com> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Sent: Friday, July 11, 2008 10:17:01 AM Subject: Re: [asterisk-users] Tracking Call Time While in Dial() On Jul 11, 2008, at 10:08 AM, Douglas Garstang wrote: I want to track call duration while the call is in progress. To accomplish what? Are you wanting to "beep" the channel every 10 seconds? Are you wanting to play a "you have 60 seconds left" message when they approach some quota? Are you wanting to limit the call to 5 minutes and 23 seconds? Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080711/c565db34/attachment.htm
Douglas Garstang
2008-Jul-12 20:15 UTC
[asterisk-users] Tracking Call Time While in Dial()
The person I am working is building a calling card. They want to allow the user to recharge their account when their time runs out (without hanging up the current call). I got no idea how to implement that. In addition, they don't want to charge the user for the time they spend recharging their account. So, they need to track multiple timers for the call. Doug. ----- Original Message ---- From: Tzafrir Cohen <tzafrir.cohen at xorcom.com> To: asterisk-users at lists.digium.com Sent: Saturday, July 12, 2008 1:46:13 AM Subject: Re: [asterisk-users] Tracking Call Time While in Dial() On Fri, Jul 11, 2008 at 10:52:53AM -0700, Douglas Garstang wrote:> Wanting to provide a real time call timer on a web page.Can't you get information about other channels through the manager interface without this special AGI? Maybe you just need to somehow mark those channels as "interesting" before the Dial, or write out start time to a variable before the Dial starts. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080712/4a9d673f/attachment.htm