asterisk fxo hangup detection

McJay

New Member
Joined
Jun 5, 2008
Messages
8
Reaction score
0
So I've setup an asterisk 1.6 box in our office with the hope of binning our legacy PBX. Managed to get everything running except busy detect just won't work.

I got some advise here on the settings that 'should' work

Hoping that some asterisk guru can assist.

Here's the relevant config files:

/etc/asterisk/chan_dahdi.conf:
Code:
[trunkgroups]
[channels]
language=en
context=incoming
echocancel=no
echocancelwhenbridged=no
busydetect=yes
busycount=4
busypattern=500,500
callprogress=no
signalling=fxs_ls
callerid=asreceived
group=0
context=from-pstn
channel => 1-4

/etc/dahdi/system.conf :
Code:
fxsls=1
echocanceller=mg2,1
fxsls=2
echocanceller=mg2,2
fxsls=3
echocanceller=mg2,3
fxsls=4
echocanceller=mg2,4
# Global data
loadzone	= za
defaultzone	= za

/etc/asterisk/indications.conf
Code:
[general]
country=za		; default location

...

[za]
description = South Africa
; http://www.cisco.com/univercd/cc/td/doc/product/tel_pswt/vco_prod/safr_sup/saf02.htm
; (definitions for other countries can also be found there)
; Note, though, that South Africa uses two switch types in their network --
; Alcatel switches -- mainly in the Western Cape, and Siemens elsewhere.
; The former use 383+417 in dial, ringback etc.  The latter use 400*33
; I've provided both, uncomment the ones you prefer
ringcadence = 400,200,400,2000
; dial/ring/callwaiting for the Siemens switches:
;dial = 400*33
;ring = 400*33/400,0/200,400*33/400,0/2000
;callwaiting = 400*33/250,0/250,400*33/250,0/250,400*33/250,0/250,400*33/250,0/250
; dial/ring/callwaiting for the Alcatel switches:
dial = 383+417
ring = 383+417/400,0/200,383+417/400,0/2000
callwaiting = 383+417/250,0/250,383+417/250,0/250,383+417/250,0/250,383+417/250,0/250
congestion = 400/250,0/250
busy = 400/500,0/500
dialrecall = 350+440
; XXX Not sure about the RECORDTONE
record = 1400/500,0/10000
info = 950/330,1400/330,1800/330,0/330
stutter = !400*33/100,!0/100,!400*33/100,!0/100,!400*33/100,!0/100,!400*33/100,!0/100,!400*33/100,!0/100,!400*33/100,!0/100,400*33
...

I've tried these things already without any change:

* fxs_ks signalling
* the siemens dial/ring/callwaiting instead of alcatel
* busypattern=2500,500 in chan_dahdi.conf
* installed asterisk 1.4 & zaptel from debian repo with the same results

If the caller hangs up when there is silence it seems to work properly, but if they hangup while in a voice prompt or holding music it never clears the channel.

I'm about to give up on getting these analogue lines usable on asterisk, any help would be appreciated.

Oh, we're in Cape Town, if I listen in to what happens after the call disconnects there is a busy signal, about 1/2 sec repeated.
 
What does a dump of the CLI at full verbosity (debug and verbose) say?

As per the worst scenario:

busydetect=yes
busycount=4
busypattern=2500,500

That would be 3seconds x 4 = 12sec. That assumes its a relatively clean line without serious noise. I had a chat to the local guy who wrote the "tone and silence" code a while back, he said its a worst scenario fix. No guarantee due to upstream SNR, physical quality and shieding of the connection to the exchange. etc.

Admittedly he is humble, but on this I tend to agree.
 
Hi guys

Please could anyone help me, I'm having a very similar problem.
I'm using a CentOS box, Freepbx.

I got the following from my Netgear router if it helps:

Line Attenuation -63.5 db / 31.5 db
Noise Margin -12.5 db / 13 db

I've tried s0lar's last suggestion, unfortuantely it hasn't helped. I have to usually wait a minute before another call can come through
 
Argh! This is driving me insane now!

I've spent most of my evening patching this box, upgraded to CentOS 5.5; FreePBX from 2.6 to 2.7 and still no luck! I've taken the box home to do all of this and to test on my home lines and the box still won't hang up after a minute.
 
I was having trouble with my embedded asterisk device. I'm now getting better results using Busy Pattern = 2510,490 and busy count = 3.

So when people hang up during the IVR all is well. Still having trouble when people hang up during or close to voice mail for some reason.

Did these settings improve hangup detection for anyone else? Anyone having voice mail not detecting hangup?
 
What I've done now is just limit the timeout periods on the IVR and voicemail. IVR is only 10 seconds long, doesn't repeat and hangs up after 5 seconds after it's finished. Voicemail messages can only be 30 seconds long then hangs up.

I really just don't know any other way around these issues.
 
Hi Guys, I'm probably attempting to resurrect the dead here, but has anyone managed to get this sorted? I've setup asterisk with freepbx at the office, but am also having the issue that hangups aren't being detected, are there any pointers you guys have?
 
Give up on dead analogue technology would be my advice. :)

Either convert your Telkom line to ISDN or better yet go SIP.
 
Okay, as s0lar was saying, I've had to implement the worst case scenario, settings are below, and seem to be working okay.

Capture.JPG

Capture1.JPG
 
It also makes a difference what province youre in.

I had endless trouble with my pbx in Jo'burg not ending calls. I tweaked and tweaked.

In Cape town I set the defaults once when I installed it 3 years ago and its worked perfectly ever since.
I found the info in this blog to work the best for me:
http://jkroon.blogs.uls.co.za/it/voip/south-africa-and-isdn
 
After a while it stopped detecting hangups again, after a bit more reading I listened for my hangup tone, and determined it was actually the busypatern=500,500 however the settings didn't take effect until I rebooted the system, and added the hanguponpolarityswitch=no command, this is all under the chan_dahdi.conf menu.

system.conf just has tone region set to SA

and

/etc/modprobe.d/dahdi.conf just has opermode set to South Africa

The main changes are as below

mybb.jpg
 
Top
Sign up to the MyBroadband newsletter
X