[Asterisk-Users] zap calls drop suddenly + tremendous noise when
answering a call
Enrico Pizzorno
enrico at bacosoft.com
Thu Jun 8 03:25:58 MST 2006
We have an asterisk box with the following configuration:
- AMD Athlon XP 2400+
- 512 MB RAM
- SUSE Linux 10.1
- a Digium card TDM400P with 3 FXO
- another Digium card TDM400P with 4 FXS
- asterisk 1.2.7.1
- zaptel 1.2.4
I already checked that those cards aren't sharing interrupts (by cat
/proc/interrupts):
0: 14119786 XT-PIC timer
1: 10 XT-PIC i8042
2: 0 XT-PIC cascade
8: 2 XT-PIC rtc
9: 0 XT-PIC acpi
10: 56469896 XT-PIC wctdm
11: 17172 XT-PIC eth0
12: 56474221 XT-PIC wctdm
14: 74633 XT-PIC ide0
15: 499385 XT-PIC ide1
This box is connected to 3 analog lines (PSTN), one of these lines is
our ADSL line and 4 analog phones in our office (as you can see, we are
a small business). Once or twice a day (yesterday it happens four times
in a period of two hours) while we are in a call, it drops suddenly. No
matter who is calling, I mean, it happens when we call from inside the
office and when somebody calls us.
Down here is the output from one of these phone calls (I replaced the
phone number with some Xs). Somebody calls us from the line that's
connected to zap channel 2. Then, our 4 phones ring and I pick up the
call on phone connected to zap channel 7. Ten minutes later that event
fires up: Jun 7 17:53:09 DEBUG[9015] chan_zap.c: Got event On hook(1)
on channel 2 (index 0). After the output I attached my zapata.conf.
Anyone has had this problem before? Is there something in my zapata.conf
that's not correct? Any help would be very appreciated. I don't know if
it's related, but, one or twice a day, when our phones ring and we
answer, there's a tremendous noise and we can't do anything (for
example, trying to park or transfer the call doesn't work). Then we hang
up, our client calls again, we pick up the phone and the call goes well.
I've searched on the web and found some messages talking about shared
interrupts but this is not the case.
thanks,
enrico.
Jun 7 17:43:33 VERBOSE[9015] logger.c: -- Starting simple switch on
'Zap/2-1'
Jun 7 17:43:34 VERBOSE[9015] logger.c: -- Executing
System("Zap/2-1", "/usr/local/bin/sendcallerid "XXXXXXXXX" """) in new stack
Jun 7 17:43:34 VERBOSE[9015] logger.c: -- Executing Dial("Zap/2-1",
"Zap/5&Zap/6&Zap/7&Zap/8|30|rt") in new stack
Jun 7 17:43:34 VERBOSE[9015] logger.c: -- Called 5
Jun 7 17:43:34 VERBOSE[9015] logger.c: -- Called 6
Jun 7 17:43:34 VERBOSE[9015] logger.c: -- Called 7
Jun 7 17:43:34 VERBOSE[9015] logger.c: -- Called 8
Jun 7 17:43:34 DEBUG[9015] chan_zap.c: Requested indication 3 on
channel Zap/2-1
Jun 7 17:43:34 VERBOSE[9015] logger.c: -- Zap/5-1 is ringing
Jun 7 17:43:34 VERBOSE[9015] logger.c: -- Zap/6-1 is ringing
Jun 7 17:43:34 VERBOSE[9015] logger.c: -- Zap/7-1 is ringing
Jun 7 17:43:34 VERBOSE[9015] logger.c: -- Zap/8-1 is ringing
Jun 7 17:43:35 DEBUG[9015] chan_zap.c: Exception on 17, channel 5
Jun 7 17:43:35 DEBUG[9015] chan_zap.c: Got event Ringer Off(11) on
channel 5 (index 0)
Jun 7 17:43:35 VERBOSE[9015] logger.c: -- Zap/5-1 is ringing
Jun 7 17:43:35 DEBUG[9015] chan_zap.c: Exception on 18, channel 6
Jun 7 17:43:35 DEBUG[9015] chan_zap.c: Got event Ringer Off(11) on
channel 6 (index 0)
Jun 7 17:43:35 VERBOSE[9015] logger.c: -- Zap/6-1 is ringing
Jun 7 17:43:35 DEBUG[9015] chan_zap.c: Exception on 19, channel 7
Jun 7 17:43:35 DEBUG[9015] chan_zap.c: Got event Ringer Off(11) on
channel 7 (index 0)
Jun 7 17:43:35 VERBOSE[9015] logger.c: -- Zap/7-1 is ringing
Jun 7 17:43:35 DEBUG[9015] chan_zap.c: Exception on 20, channel 8
Jun 7 17:43:35 DEBUG[9015] chan_zap.c: Got event Ringer Off(11) on
channel 8 (index 0)
Jun 7 17:43:35 VERBOSE[9015] logger.c: -- Zap/8-1 is ringing
Jun 7 17:43:36 DEBUG[9015] chan_zap.c: Exception on 15, channel 2
Jun 7 17:43:36 DEBUG[9015] chan_zap.c: Got event Ring Begin(18) on
channel 2 (index 0)
Jun 7 17:43:38 DEBUG[9015] chan_zap.c: Exception on 15, channel 2
Jun 7 17:43:38 DEBUG[9015] chan_zap.c: Got event Ring/Answered(2) on
channel 2 (index 0)
Jun 7 17:43:38 DEBUG[9015] chan_zap.c: Setting IDLE polarity due to
ring. Old polarity was 0
Jun 7 17:43:38 DEBUG[9015] chan_zap.c: Exception on 17, channel 5
Jun 7 17:43:38 DEBUG[9015] chan_zap.c: Got event Ringer On(10) on
channel 5 (index 0)
Jun 7 17:43:38 DEBUG[9015] chan_zap.c: Exception on 18, channel 6
Jun 7 17:43:38 DEBUG[9015] chan_zap.c: Got event Ringer On(10) on
channel 6 (index 0)
Jun 7 17:43:38 DEBUG[9015] chan_zap.c: Exception on 19, channel 7
Jun 7 17:43:38 DEBUG[9015] chan_zap.c: Got event Ringer On(10) on
channel 7 (index 0)
Jun 7 17:43:38 DEBUG[9015] chan_zap.c: Exception on 20, channel 8
Jun 7 17:43:38 DEBUG[9015] chan_zap.c: Got event Ringer On(10) on
channel 8 (index 0)
Jun 7 17:43:40 DEBUG[9015] chan_zap.c: Exception on 17, channel 5
Jun 7 17:43:40 DEBUG[9015] chan_zap.c: Got event Ringer Off(11) on
channel 5 (index 0)
Jun 7 17:43:40 VERBOSE[9015] logger.c: -- Zap/5-1 is ringing
Jun 7 17:43:40 DEBUG[9015] chan_zap.c: Exception on 18, channel 6
Jun 7 17:43:40 DEBUG[9015] chan_zap.c: Got event Ringer Off(11) on
channel 6 (index 0)
Jun 7 17:43:40 VERBOSE[9015] logger.c: -- Zap/6-1 is ringing
Jun 7 17:43:40 DEBUG[9015] chan_zap.c: Exception on 19, channel 7
Jun 7 17:43:40 DEBUG[9015] chan_zap.c: Got event Ringer Off(11) on
channel 7 (index 0)
Jun 7 17:43:40 VERBOSE[9015] logger.c: -- Zap/7-1 is ringing
Jun 7 17:43:40 DEBUG[9015] chan_zap.c: Exception on 20, channel 8
Jun 7 17:43:40 DEBUG[9015] chan_zap.c: Got event Ringer Off(11) on
channel 8 (index 0)
Jun 7 17:43:40 VERBOSE[9015] logger.c: -- Zap/8-1 is ringing
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Exception on 15, channel 2
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Got event Ring Begin(18) on
channel 2 (index 0)
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Exception on 19, channel 7
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Got event Ring/Answered(2) on
channel 7 (index 0)
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Enabled echo cancellation on
channel 7
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Engaged echo training on channel 7
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: channel 7 answered
Jun 7 17:43:41 VERBOSE[9015] logger.c: -- Zap/7-1 answered Zap/2-1
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Hangup: channel: 8 index = 0,
normal = 20, callwait = -1, thirdcall = -1
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: disabled echo cancellation on
channel 8
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Set option TDD MODE, value:
OFF(0) on Zap/8-1
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Updated conferencing on 8, with
0 conference users
Jun 7 17:43:41 VERBOSE[9015] logger.c: -- Hungup 'Zap/8-1'
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Hangup: channel: 6 index = 0,
normal = 18, callwait = -1, thirdcall = -1
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: disabled echo cancellation on
channel 6
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Set option TDD MODE, value:
OFF(0) on Zap/6-1
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Updated conferencing on 6, with
0 conference users
Jun 7 17:43:41 VERBOSE[9015] logger.c: -- Hungup 'Zap/6-1'
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Hangup: channel: 5 index = 0,
normal = 17, callwait = -1, thirdcall = -1
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: disabled echo cancellation on
channel 5
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Set option TDD MODE, value:
OFF(0) on Zap/5-1
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Updated conferencing on 5, with
0 conference users
Jun 7 17:43:41 VERBOSE[9015] logger.c: -- Hungup 'Zap/5-1'
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Requested indication -1 on
channel Zap/2-1
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Took Zap/2-1 off hook
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Enabled echo cancellation on
channel 2
Jun 7 17:43:41 DEBUG[9015] chan_zap.c: Engaged echo training on channel 2
Jun 7 17:43:41 VERBOSE[9015] logger.c: -- Attempting native bridge
of Zap/2-1 and Zap/7-1
Jun 7 17:53:09 DEBUG[9015] chan_zap.c: Exception on 15, channel 2
Jun 7 17:53:09 DEBUG[9015] chan_zap.c: Got event On hook(1) on channel
2 (index 0)
Jun 7 17:53:09 DEBUG[9015] chan_zap.c: disabled echo cancellation on
channel 2
Jun 7 17:53:09 DEBUG[9015] channel.c: Didn't get a frame from channel:
Zap/2-1
Jun 7 17:53:09 DEBUG[9015] channel.c: Bridge stops bridging channels
Zap/2-1 and Zap/7-1
Jun 7 17:53:09 DEBUG[9015] chan_zap.c: Hangup: channel: 7 index = 0,
normal = 19, callwait = -1, thirdcall = -1
Jun 7 17:53:09 DEBUG[9015] chan_zap.c: disabled echo cancellation on
channel 7
Jun 7 17:53:09 DEBUG[9015] chan_zap.c: Set option TDD MODE, value:
OFF(0) on Zap/7-1
Jun 7 17:53:09 DEBUG[9015] chan_zap.c: Updated conferencing on 7, with
0 conference users
Jun 7 17:53:09 VERBOSE[9015] logger.c: -- Hungup 'Zap/7-1'
Jun 7 17:53:09 DEBUG[9015] app_dial.c: Exiting with DIALSTATUS=ANSWER.
Jun 7 17:53:09 VERBOSE[9015] logger.c: == Spawn extension
(lineas_telefonicas, s, 2) exited non-zero on 'Zap/2-1'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is 'XXXXXXXXX'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is 'XXXXXXXXX'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is 's'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is 'lineas_telefonicas'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is 'Zap/2-1'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is 'Zap/7-1'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is 'Dial'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is
'Zap/5&Zap/6&Zap/7&Zap/8|30|rt'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is '2006-06-07 17:43:34'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is '2006-06-07 17:43:41'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is '2006-06-07 17:53:09'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is '575'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is '568'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is 'ANSWERED'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is 'DOCUMENTATION'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is '(null)'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is '1149695013.25'
Jun 7 17:53:09 DEBUG[9015] pbx.c: Function result is '(null)'
Jun 7 17:53:09 DEBUG[9015] chan_zap.c: Hangup: channel: 2 index = 0,
normal = 15, callwait = -1, thirdcall = -1
Jun 7 17:53:09 DEBUG[9015] chan_zap.c: disabled echo cancellation on
channel 2
Jun 7 17:53:09 DEBUG[9015] chan_zap.c: Set option TDD MODE, value:
OFF(0) on Zap/2-1
Jun 7 17:53:09 DEBUG[9015] chan_zap.c: Updated conferencing on 2, with
0 conference users
Jun 7 17:53:09 VERBOSE[9015] logger.c: -- Hungup 'Zap/2-1'
And here is my zapata.conf:
[channels]
busydetect=no
useincomingcalleridonzaptransfer=yes
threewaycalling=yes
transfer=yes
usecallerid=yes
language=es
echocancel=yes
echocancelwhenbridged=yes
echotraining=yes
rxgain=8.0
txgain=1.0
;set the FXO's in a group so we can dial out of them
;on a first-available basis
group => 1
;la linea de fax la pongo en un contexto separado, para recibir faxes
;y por si precisamos un "telefono rojo" para nosotros.
context => linea_fax
;aqui quiero detectar los faxes que vienen desde fuera hacia la oficina
faxdetect=incoming
;esta configuracion es comun a todas las lineas entrantes, la saque
;de capatres.com se supone que asi debe ser para Espanya.
signalling=fxs_ks
busydetect=no
answeronpolarityswitch=yes
hanguponpolarityswitch=yes
callprogress=no
progzone=es
;pongo el primer canal del grupo 1 como la linea de fax porque es por ahi
;que quiero que salgan la mayoria de las llamadas
channel => 1
;el resto de las lineas de telefono entrantes
context => lineas_telefonicas
;aqui no quiero detectar los faxes
faxdetect=no
channel => 2-3
;reset the group, so we don't send outgoing calls to
;the internal lines
group => 2
;un contexto para los telefonos de la oficina
context => telefonos_oficina
;quiero que de todas las lineas podamos levantar una llamada de telefono
callgroup=1
pickupgroup=1
;set the signalling on the station lines (fxs)
signalling => fxo_ks
faxdetect=no
channel => 5-8
More information about the asterisk-users
mailing list