Hi, I saw somewhere that it was possible to set a limit for how long time a call could be, for an extension in extension.conf. But I can't find it anymore. Can someone please help. Calls to '411' an operator may max. be 5 min. I have this in extension.conf. [shortcuts] exten => 411,1,Dial(IAX2/hhandresen@iaxtel/18005558355@iaxtel) [operator] exten => 0,1,Dial(SIP/operator,30,tr)
exten => 1,AbsoluteTimeout ($SECONDS) Ta SJ> Hi, > > I saw somewhere that it was possible to set a limit for how long time > a call could be, for an extension in extension.conf. But I can't find > it anymore. > > Can someone please help. > > Calls to '411' an operator may max. be 5 min. > > I have this in extension.conf. > > [shortcuts] > exten => 411,1,Dial(IAX2/hhandresen@iaxtel/18005558355@iaxtel) > > [operator] > exten => 0,1,Dial(SIP/operator,30,tr)
Hans-Henrik Andresen
2004-Mar-07 08:31 UTC
[Asterisk-Users] Re: Limit on call in minuttes.
Thank you This works, but..... It just cut the line, I had hoped for some bip bip bip to remind that now your about to be disconected, is this possible as well ? /Hans-Henrik "Senad Jordanovic" <senad@boltblue.com> wrote in message news:000201c40423$3b6667f0$6500a8c0@senadspc...> exten => 1,AbsoluteTimeout ($SECONDS)
You must change the setwhentohangup function, see channel.c for that. Someone wrote a patch to do this (see http://bugs.digium.com/). Regards, Gus ----- Original Message ----- From: "Hans-Henrik Andresen" <hhandresen@hotmail.com> To: <asterisk-users@lists.digium.com> Sent: Sunday, March 07, 2004 12:31 PM Subject: [Asterisk-Users] Re: Limit on call in minuttes.> > Thank you This works, but..... It just cut the line, I had hoped for some > bip bip bip to remind that now your about to be disconected, is this > possible as well ? > > /Hans-Henrik > > > "Senad Jordanovic" <senad@boltblue.com> wrote in message > news:000201c40423$3b6667f0$6500a8c0@senadspc... > > exten => 1,AbsoluteTimeout ($SECONDS) > > > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Yes, it is. (If I remember correctly :) It is "T" that you need to include in that context. [$CONTEXT] exten => 1,AbsoluteTimeout($SECONDS) exten => 2,Dial($SOMETHING) exten => T,Playback($YOURMESSAGE) Save $YOURMASSAGE in /var/lib/asterisk/sounds If above does not work, please let me know. Ta SJ> Thank you This works, but..... It just cut the line, I had hoped for > some bip bip bip to remind that now your about to be disconected, is > this possible as well ?