Comeo'n AGI guys..
Please say something.
Hi,
Using AUTOHANGUP, I can force a call duration within a time limit.
I would like to playback a message before 1 minute of autohangup.
How can I accomplish it?
Would anybody please give me right direction.
Thanks,
You don't have any
This is easy. :-) How are you creating the call? From an AGI script?
Here's how I do it.
$maxtime = $timelimit * 1000; #$maxtime is maxlength in seconds
$timelimit = |30|HL($maxtime:6:3); #This will provide a
warning @ 60 and 30 seconds.
return $timelimit;
Append $timelimit
thanks a lot, Darren.
I opened up app_dial.c and learned more !!
-Original Message-
From: [EMAIL PROTECTED]
Sent: Tue, 22 Nov 2005 22:18:14 -0700
To: asterisk-users@lists.digium.com
Subject: Re: [Asterisk-Users] AGI and AUTOHANGUP
This is easy. :-) How are you creating