Ronald Wiplinger
2006-Jun-24 00:34 UTC
[Asterisk-Users] ASTCC: How to reset periodically all "card in use" flag back?
If a user calls and hangs up before the destination party rings, than the in-use flag remains set! This is one case, but maybe there are many other cases. I have created a number the user can dial to reset this flag. However, that is written in the manual!!! Who reads a manual anyway!!!! I want to make to reset all in use flag with a program. Has anybody done it, or has a better idea? My idea is to check every 5 minutes, the database, which cards are set in use and check if this is true, if not reset it. Q: How do I know if a card is in use? bye Ronald Wiplinger
JP Carballo
2006-Jun-24 13:37 UTC
[Asterisk-Users] ASTCC: How to reset periodically all "card in use" flag back?
Ronald Wiplinger wrote:> If a user calls and hangs up before the destination party rings, than > the in-use flag remains set! This is one case, but maybe there are > many other cases. > I have created a number the user can dial to reset this flag. However, > that is written in the manual!!! Who reads a manual anyway!!!! > > I want to make to reset all in use flag with a program. Has anybody > done it, or has a better idea? > My idea is to check every 5 minutes, the database, which cards are set > in use and check if this is true, if not reset it. > > Q: How do I know if a card is in use?Still banging your head over this one? Get the card's uniqueid and use it to check if that particular channel is up. -- JP Carballo http://www.netfone2x.com Bringing the world closer. It might look like I'm doing nothing, but at the cellular level, I'm really quite busy.
Maxim Vexler
2006-Jun-25 09:05 UTC
[Asterisk-Users] ASTCC: How to reset periodically all "card in use" flag back?
On 6/24/06, Ronald Wiplinger <ronald@elmit.com> wrote:> If a user calls and hangs up before the destination party rings, than > the in-use flag remains set! This is one case, but maybe there are many > other cases. > I have created a number the user can dial to reset this flag. However, > that is written in the manual!!! Who reads a manual anyway!!!! >I would be interesed in your the applications you use in your dialplan to reset this flag. Could you please post here the relevent part of your extensions.conf ?> > Ronald Wiplinger >Maxim.> _______________________________________________ > --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 >-- Cheers, Maxim Vexler "Free as in Freedom" - Do u GNU ?
Nicolás Gudiño
2006-Jun-25 14:43 UTC
[Asterisk-Users] ASTCC: How to reset periodically all "card in use" flag back?
Hi Ronald,> If a user calls and hangs up before the destination party rings, than > the in-use flag remains set! This is one case, but maybe there are many > other cases.You should install php-pcntl (or compile php to add support for process control functions). The inuse problem will be fixed then. Regards, -- Nicol?s Gudi?o Buenos Aires - Argentina
Nicolás Gudiño
2006-Jun-25 15:06 UTC
[Asterisk-Users] ASTCC: How to reset periodically all "card in use" flag back?
Replying to myself... I was thinking on a2billing, not astcc, so php-pcntl will make no difference. The problem might be the same anyways. Asterisk now sends a HUP signal to every agi script when it detects a hangup. If the script exits when receiving the signal, it will not handle the clean up routines. The most recent astcc found in svn includes the code to ignore the HUP at the top of the script. Be sure to use that version. Regards, On 6/25/06, Nicol?s Gudi?o <asternic@gmail.com> wrote:> Hi Ronald, > > If a user calls and hangs up before the destination party rings, than > > the in-use flag remains set! This is one case, but maybe there are many > > other cases. > > You should install php-pcntl (or compile php to add support for > process control functions). The inuse problem will be fixed then. >-- Nicol?s Gudi?o Buenos Aires - Argentina
Ronald Wiplinger
2006-Jun-26 07:54 UTC
[Asterisk-Users] ASTCC: How to reset periodically all "card in use" flag back?
Nicol?s Gudi?o wrote:> Hi Ronald, >> If a user calls and hangs up before the destination party rings, than >> the in-use flag remains set! This is one case, but maybe there are many >> other cases. > > You should install php-pcntl (or compile php to add support for > process control functions). The inuse problem will be fixed then. > > Regards, >Can you please give us more info about that? What is php-pcntl? What should it do? How can it be used to be a solution? bye Ronald Wiplinger