[Asterisk-Users] Line is stuck off hook...

Martin Pycko martinp at digium.com
Wed Apr 2 08:26:00 MST 2003


Yes, we can do if's (GotoIf), +,_,*,/,%, etc ... like this
exten => t,2,SetVar,looptest=$[${looptest} + 1]

regards
Martin

On Tue, 1 Apr 2003, John Harragin wrote:

> 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:critch at basesys.com]
> > > Sent: Tuesday, April 01, 2003 6:57 PM
> > > To: asterisk-users at lists.digium.com
> > > 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 root at auriga 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 <critch at basesys.com>
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > 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
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list