There is a parameter "L" which you can use in the dial command. More about it you can see on voip-info.org, but it'll be something like this:
Dial(SIP/223,60,L(11000:10000)) The first 11000 means 11 minutes allowed duration of the call and after 10 minutes it'll play message "You have one minute". Zeeshan A Zakaria -- Sent from my Android phone with K-9 Mail. On 2010-04-07 9:39 AM, "Mickael MONSIEUR" <mickael.monsi...@gmail.com> wrote: Hi all, I am running an AGI script in a command dial, or call a SIP trunk. I want to execute after 10 minutes a voice message (stream file) on the channel to warn the person that the call is about to end. How to do that? Thank you, Mickael. -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello 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 -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users