Hey do we have the ability to incriment a variable? exten => t,2,SetVar,looptest=$((looptest + 1)) I was thinking of doing a library of simple arithmetic and bash-like expansions for asterisk... like Zap/{1&,2&,3} - but it may already have this functionality.
John > exten => t,1,GotoIf(${looptest},Hangup,1,1) > exten => t,2,SetVar,looptest=1 > > [Hangup] > exten => 1,1,Hangup > > > > That would fix the problem for the most part, but why isn't * > > releasing the line when the caller hangs up. > > First, what type of signalling are you using? loopstart/groundstart/CPD? > It is important to know loopstart may not signal when it is hungup real > well. If the zhone fails to detect it, then it is possible for asterisk > to never know it hungup > > > > -----Original Message----- > > From: Steven Critchfield [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, April 01, 2003 6:57 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [Asterisk-Users] Line is stuck off hook... > > > > > > On Tue, 2003-04-01 at 17:13, Gene Kochanowsky wrote: > > > Greetings, > > > > > > I am running Asterisk with a T100P and a Zhone channel bank for over a > > > month now. For the most part it works fine but from time to time > > > (about once a week) the system will not let go of a line and will play > > > the greeting over and over. Anyone calling gets a busy signal. If I > > > reset Asterisk everything works fine. Has anyone seen this problem > > > before and fixed it? If so what did you do? > > > > > > > show version > > > Asterisk CVS-02/28/03-22:17:11 built by [EMAIL PROTECTED] on a i686 running > > > Linux. > > > > > > If there is anything else you need to know, let me know. > > > > What line signalling are you using? > > > > I'm assuming you are reffering to a phone line coming from the PSTN, is > > it analog, or is it digital? > > > > Have you tried soft hangup on it? > > > > Have you tried to place a timout on it, so asterisk finally times out > > the call? > > > > Maybe you would like to place a loop counter on the number of times the > > call makes it through the timeout extension, and after some threshold, > > you issue a hangup on the call. > -- > Steven Critchfield <[EMAIL PROTECTED]> > > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > > This e-mail was scanned and found clean by Monroe-Woodbury CSD Antivirus. _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users