Hi, Is there a way to limit the duration of a call in the Dial command? Mainly for perpay account. Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060416/d23f7c36/attachment.htm
Google is your friend, or you enemy, either way they usually have an answer: "/Dial a single destination, ringing for a maximum of 20 seconds. Limit the call length to 60 seconds, warning the caller when only 20 seconds remain:/ exten => 200,1,Dial(SIP/1234,20,L(60000:20000)) " -- http://www.automated.it/asterisk/lah-3-6-05_4.html John Rich wrote:> Hi, > Is there a way to limit the duration of a call in the Dial command? > Mainly for perpay account. > Thanks > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------ > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
f6hqz-m@hamwlan.net
2006-Apr-16 12:04 UTC
[Asterisk-Users] How do I limit the lenght of a call
Hi John, If you enter "show application dial" when logged into the Asterisk console, you can read that help (extract only regarding dial option) : L(x[:y][:z]) - Limit the call to 'x' ms. Play a warning when 'y' ms are left. Repeat the warning every 'z' ms. The following special variables can be used with this option: * LIMIT_PLAYAUDIO_CALLER yes|no (default yes) Play sounds to the caller. * LIMIT_PLAYAUDIO_CALLEE yes|no Play sounds to the callee. * LIMIT_TIMEOUT_FILE File to play when time is up. * LIMIT_CONNECT_FILE File to play when call begins. * LIMIT_WARNING_FILE File to play as warning if 'y' is defined. The default is to say the time remaining. Always think to display help through the "show application ...", it could be pertinent. Good luck ! Francois BERGERET, France. -----Message d'origine----- De : asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] De la part de John Rich Envoy? : dimanche 16 avril 2006 15:46 ? : asterisk-users@lists.digium.com Objet : [Asterisk-Users] How do I limit the lenght of a call Hi, Is there a way to limit the duration of a call in the Dial command? Mainly for perpay account. Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com