[asterisk-users] T1 incoming connects, but no sound

Nathan Bell nathanb at actarg.com
Thu Sep 28 09:12:03 MST 2006


Hi everybody,

When I call my asterisk box, connected via a T1 line, it connects, logs 
various things, supposedly plays back the message defined in 
extensions.conf, and then disconnects. Seems all fine and dandy other 
than the fact that no sound is being heard on the phone placing the call.

I'm upgrading my PBX from an intertel-axxess to asterisk. In zaptel.conf 
and zapata.conf I set the incoming T1 line exactly the same as the 
intertel box has it set:

zaptel.conf:
span=1,1,0,esf,b8zs
e&m=1-8
fxsls=9-16
e&m=17-24
loadzone = us
defaultzone=us

zapata.conf:
[channels]
usecallerid=yes
hidecallerid=no
transfer=yes
echocancel=yes
echotraining=yes
immediate=no

; span 1
group=1
context=from-ptsn
signalling=em
channel => 1-8,17-24
signalling=fxs_ls
channel => 9-16

Ztcfg, zttool, and asterisk all give the green light on this 
configuration, but when an incoming call is received (haven't tested 
outgoing yet, one piece at time), the following is logged:

Sep 27 17:39:30 VERBOSE[31181] logger.c: Asterisk Ready.
    -- Starting simple switch on 'Zap/1-1'
Sep 27 17:39:35 DEBUG[31181] chan_zap.c: Exception on 17, channel 1
Sep 27 17:39:35 DEBUG[31181] chan_zap.c: Got event On hook(1) on channel 
1 (index 0)
Sep 27 17:39:35 DEBUG[31181] chan_zap.c: disabled echo cancellation on 
channel 1
Sep 27 17:39:35 WARNING[31181] chan_zap.c: getdtmf on channel 1: Success
Sep 27 17:39:35 DEBUG[31181] chan_zap.c: Hangup: channel: 1 index = 0, 
normal = 17, callwait = -1, thirdcall = -1
Sep 27 17:39:35 DEBUG[31181] chan_zap.c: disabled echo cancellation on 
channel 1
Sep 27 17:39:35 DEBUG[31181] chan_zap.c: Set option TDD MODE, value: 
OFF(0) on Zap/1-1
Sep 27 17:39:35 DEBUG[31181] chan_zap.c: Updated conferencing on 1, with 
0 conference users
Sep 27 17:39:35 VERBOSE[31181] logger.c:     -- Hungup 'Zap/1-1'

No sound is ever heard on the calling phone, and the call is quickly 
terminated from the asterisk end.

As I figured this was a configuration problem, I also tried zapata.conf 
and zaptel.conf as such:

zaptel.conf:
span=1,1,0,esf,b8zs
fxsks=1-24
defaultzone=us

zapata.conf:
[channels]
usecallerid=yes
hidecallerid=no
transfer=yes
echocancel=yes
echotraining=yes
immediate=no

; span 1
group=1
context=from-ptsn
signalling=fxs_ks
channel => 1-24

Doing this caused the phone call to appear to be handled correctly, but 
still no sound was heard:

Sep 27 17:43:52 VERBOSE[31391] logger.c: Asterisk Ready.
    -- Starting simple switch on 'Zap/1-1'
Sep 27 17:43:57 NOTICE[31391] chan_zap.c: Got event 18 (Ring Begin)...
Sep 27 17:43:57 VERBOSE[31391] logger.c:     -- Executing 
Answer("Zap/1-1", "") in new stack
Sep 27 17:43:57 DEBUG[31391] chan_zap.c: Took Zap/1-1 off hook
Sep 27 17:43:57 DEBUG[31371] channel.c: Avoiding initial deadlock for 
'Zap/1-1'
Sep 27 17:43:57 DEBUG[31391] chan_zap.c: Enabled echo cancellation on 
channel 1
Sep 27 17:43:57 DEBUG[31391] chan_zap.c: Engaged echo training on channel 1
Sep 27 17:43:57 VERBOSE[31391] logger.c:     -- Executing 
Playback("Zap/1-1", "vm-goodbye") in new stack
Sep 27 17:43:57 DEBUG[31391] channel.c: Scheduling timer at 160 sample 
intervals
Sep 27 17:43:57 VERBOSE[31391] logger.c:     -- Playing 'vm-goodbye' 
(language 'en')
Sep 27 17:43:58 DEBUG[31391] channel.c: Scheduling timer at 0 sample 
intervals
Sep 27 17:43:58 DEBUG[31391] channel.c: Scheduling timer at 0 sample 
intervals
Sep 27 17:43:58 VERBOSE[31391] logger.c:     -- Executing 
Hangup("Zap/1-1", "") in new stack
Sep 27 17:43:58 VERBOSE[31391] logger.c:   == Spawn extension 
(from-ptsn, s, 3) exited non-zero on 'Zap/1-1'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '(null)'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '(null)'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is 's'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is 'from-ptsn'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is 'Zap/1-1'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '(null)'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is 'Hangup'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '(null)'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '2006-09-27 17:43:57'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '2006-09-27 17:43:57'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '2006-09-27 17:43:58'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '1'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '1'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is 'ANSWERED'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is 'DOCUMENTATION'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '(null)'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '1159400632.0'
Sep 27 17:43:58 DEBUG[31391] pbx.c: Function result is '(null)'
Sep 27 17:43:58 DEBUG[31391] chan_zap.c: Hangup: channel: 1 index = 0, 
normal = 17, callwait = -1, thirdcall = -1
Sep 27 17:43:58 DEBUG[31391] chan_zap.c: disabled echo cancellation on 
channel 1
Sep 27 17:43:58 DEBUG[31391] chan_zap.c: Set option TDD MODE, value: 
OFF(0) on Zap/1-1
Sep 27 17:43:58 DEBUG[31391] chan_zap.c: Updated conferencing on 1, with 
0 conference users
Sep 27 17:43:58 VERBOSE[31391] logger.c:     -- Hungup 'Zap/1-1'

Any help on what I'm doing wrong would be greatly appreciated. The 
extensions.conf that I used for both tests is as follows:

extensions.conf:
[from-ptsn]
exten => s,1,Answer()
exten => s,2,Playback(vm-goodbye)
exten => s,3,Hangup()

Testing my setup from a channel bank seems to work just fine (slightly 
different zaptel.conf and zapata.conf).


More information about the asterisk-users mailing list