Re: [asterisk-users] Tracking Call Time While in Dial()

2008-07-13 Thread Grey Man
On Sun, Jul 13, 2008 at 12:05 AM, Steve Edwards
<[EMAIL PROTECTED]> wrote:
> On Sat, 12 Jul 2008, Douglas Garstang wrote:
>
>> 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.
>
> Would this work?
>
> Hack up meetme to add an option to time out after x seconds, set
> MEETME_STATUS to "TIMEOUT" and return to the dialplan. You can follow the
> "w" option to figure out how to pass the seconds. Then in meetme's main
> loop (in conf_run()), just check for when its time to leave.
>
> Use dial()'s G option to put both the caller (with the timeout) and the
> callee into a meetme.
>
> When the caller times out, the callee will hear the music on hold ("please
> wait until the other party returns").
>
> The caller can top up and then return to the meetme. You can accumulate
> the time the caller is in the meetme.
>
> What happens if the caller can't top up and hangs up. Who pays for the
> callee leg? Would you need a second timer to abort the callee?

Take a look at http://bugs.digium.com/view.php?id=6335.

Myself and KNK both implemented two different real-time call control
mechanisms for Asterisk but unfortunately the feature was not deemed
useful enough to make it into Asterisk :-(. The patches are available
though and can be applied if you really need the functionality.

Regards,

Greyman.

___
-- 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


Re: [asterisk-users] Tracking Call Time While in Dial()

2008-07-12 Thread Steve Edwards
On Sat, 12 Jul 2008, Douglas Garstang wrote:

> 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.

Would this work?

Hack up meetme to add an option to time out after x seconds, set 
MEETME_STATUS to "TIMEOUT" and return to the dialplan. You can follow the 
"w" option to figure out how to pass the seconds. Then in meetme's main 
loop (in conf_run()), just check for when its time to leave.

Use dial()'s G option to put both the caller (with the timeout) and the 
callee into a meetme.

When the caller times out, the callee will hear the music on hold ("please 
wait until the other party returns").

The caller can top up and then return to the meetme. You can accumulate 
the time the caller is in the meetme.

What happens if the caller can't top up and hangs up. Who pays for the 
callee leg? Would you need a second timer to abort the callee?

Thanks in advance,

Steve Edwards  [EMAIL PROTECTED]  Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

___
-- 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


Re: [asterisk-users] Tracking Call Time While in Dial()

2008-07-12 Thread Douglas Garstang
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 <[EMAIL PROTECTED]>
To: asterisk-users@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:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/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



  ___
-- 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

Re: [asterisk-users] Tracking Call Time While in Dial()

2008-07-12 Thread Tzafrir Cohen
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:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/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


Re: [asterisk-users] Tracking Call Time While in Dial()

2008-07-11 Thread Douglas Garstang
Wanting to provide a real time call timer on a web page.



- Original Message 
From: Daniel Hazelbaker <[EMAIL PROTECTED]>
To: Asterisk Users Mailing List - Non-Commercial Discussion 

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


  ___
-- 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

Re: [asterisk-users] Tracking Call Time While in Dial()

2008-07-11 Thread Daniel Hazelbaker

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

___
-- 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

Re: [asterisk-users] Tracking Call Time While in Dial()

2008-07-11 Thread Douglas Garstang
I want to track call duration while the call is in progress.


- Original Message 
From: Tilghman Lesher <[EMAIL PROTECTED]>
To: Asterisk Users Mailing List - Non-Commercial Discussion 

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



  ___
-- 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

Re: [asterisk-users] Tracking Call Time While in Dial()

2008-07-11 Thread Tilghman Lesher
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


Re: [asterisk-users] Tracking Call Time While in Dial()

2008-07-11 Thread Douglas Garstang
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 <[EMAIL PROTECTED]>
To: Asterisk Users Mailing List - Non-Commercial Discussion 

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:[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] În numele Douglas
Garstang
Trimis: Thursday, July 10, 2008 7:49 PM
Către: asterisk-users@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.


  ___
-- 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

Re: [asterisk-users] Tracking Call Time While in Dial()

2008-07-11 Thread Cosmin Prund
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] În numele Douglas Garstang
Trimis: Thursday, July 10, 2008 7:49 PM
Către: asterisk-users@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.

 

___
-- 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