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:60000:30000)"; #This will provide a warning @ 60 and 30 seconds.
return $timelimit;

Append $timelimit onto the end of your dialcommand. You can look at the code for ASTCC in the asterisk cvs or look at astpp-callingcard.agi in the cvs code available @ www.aleph-com.net/astpp

Darren Wiebe
[EMAIL PROTECTED]

Innocent Evil wrote:

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 choice, you already made it before you came
here._______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  
http://lists.digium.com/mailman/listinfo/asterisk-users_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to