[Asterisk-Users] FW: channel offhook state

Faris Raouf asterisk at raouf.net
Mon Sep 26 10:32:27 MST 2005


Yes indeed. There have been huge changes to chan_zap.c in CVS-HEAD compared
to 1.09.

In 1.09 Stable there are a lot of problems with handling call hang-ups.
CVS-HEAD, of 28/08 was much better. But even though it did improve things,
it wasn't quite right. In particular I found two problems with polarity
reversal detection in chan_zap.c for which I have created a patch (this is
now in CVS-HEAD). Please see http://bugs.digium.com/view.php?id=5191 for
more details.

Please note that you'll need to use answeronpolarityswitch=yes and/or
hanguponpolarityswitch=yes in your Zapata.conf to make full use of the
polarity detection code. You will also need to be very careful if CID is
sent on a polarity switch too -- you may need to make it detect on the 0th
ring or you could suffer from immediate hang-ups on ring.

Unfortunately I've received a problem report with this modification. Any
updates Magnus? I'm hoping it is all down to the ring that CID is detected
at, and that by changing it to 0 or 1 all will be well again.

But anybody who has had problems with hangup detection in the past should
try CVS-HEAD and play with the options above to see if it improves things.

Having said all this, things are still not perfect: For UK (and possibly
other European countries) we still require a way for Asterisk to detect the
continuous tone that indicates a remote party hangup on a POTS line. The
Sipura 3000 uses this method and I believe it works quite well, though I've
not tried it myself.  

Faris.

-----Original Message-----

FWIW, there were a couple of channel zap changes made in the last couple
of days to cvs-head. Don't have a clue whether those fixes addressed the
problem you're talking about.

------------------------
> Has anyone else experienced the same problem, where a Zap channel gets
stuck
> in off-hook state?
> 
> Thanks
> 
> >  -----Original Message-----
> > From: 	asterisk-users-bounces at lists.digium.com
> > [mailto:asterisk-users-bounces at lists.digium.com] 
> > Sent:	Friday, September 23, 2005 1:45 PM
> > To:	asterisk-users at lists.digium.com
> > Subject:	[Asterisk-Users] FW: channel offhook state
> > 
> > 
> > 
> >  -----Original Message-----
> > From: 	Jacqueline Lee [mailto:jlee at isdomaininc.com] 
> > Sent:	Friday, September 23, 2005 11:46 AM
> > To:	asterisk-users at lists.digium.com
> > Subject:	channel offhook state
> > 
> > 
> > We are using a digium card (TDM400) with asterisk for our access to the
> > PSTN. Initially when the server starts, all the zap channels on the card
> > are in the "onhook" state. As soon as a channel is used (for inbound or
> > outbound PSTN calls) the corresponding channel goes into "offhook"
state,
> > and stays in "offhook" state, even after the call ends; Asterisk log
shows
> > that the channel was hungup. Most of the time, the channel is still
usable
> > to make more PSTN calls, even though it shows in "offhook" state.
> > Occasionally the channel becomes unusable for making PSTN calls (usually
> > channel 1). The symptom is Asterisk and the client show the PSTN call
was
> > established, but the destination PSTN number never really receives the
> > call. 
> > 
> > Shouldn't the channel go back to "onhook" state once the call hangs up?
Is
> > the persistent "offhook" state causing the channel to eventually become
> > unusable?
> > 






More information about the asterisk-users mailing list