I have just finished installing and configuring a TDM11B card on Asterisk 1.4. I’ve tested an inbound PSTN call using this extensions.conf section:
[from-pstn]
; incoming calls from the FXO port are directed to this context from zapata.conf
exten => s,1,Answer( )
exten => s,2,Echo( )
The corresponding zapata.conf configuration is:
[channels]
;
; Default context
;
context=from-pstn
When I call, Asterisk answers and I can hear the echo (if somewhat faint). However, in the CLI, I see this:
-- Starting simple switch on 'Zap/4-1'
-- Detected ring pattern: 0,0,0
-- Checking 0,0,0
-- Distinctive Ring matched context
== Starting Zap/4-1 at ,s,1 failed so falling back to exten ‘s’
== Starting Zap/4-1 at ,s,1 still failed so falling back to context ‘default’
[Sep 8 14:27:10] WARNING[4610]: pbx.c:2450 __ast_pbx_run: Channel ‘Zap/4-1’ sent into invalid extension ‘s’ in context ‘default’, but no invalid handler
– Hungup ‘Zap/4-1’
– Starting simple switch on ‘Zap/4-1’
[Sep 8 14:27:19] NOTICE[4613]: chan_zap.c:6367 ss_thread: Got event 18 (Ring Begin)…
[Sep 8 14:27:19] ERROR[4613]: callerid.c:564 callerid_feed: fsk_serie made mylen < 0 (-1)
[Sep 8 14:27:19] WARNING[4613]: chan_zap.c:6399 ss_thread: CallerID feed failed: Success
– Detected ring pattern: 205,0,0
– Checking 0,0,0
– Checking 0,0,0
– Checking 0,0,0
[Sep 8 14:27:19] WARNING[4613]: chan_zap.c:6499 ss_thread: CallerID returned with error on channel ‘Zap/4-1’
– Executing [s@from-pstn:1] Answer(“Zap/4-1”, " ") in new stack
– Executing [s@from-pstn:2] Echo(“Zap/4-1”, " ") in new stack
== Spawn extension (from-pstn, s, 2) exited non-zero on ‘Zap/4-1’
– Hungup ‘Zap/4-1’
If I place include => from-pstn in the otherwise blank default context, I see a shorter log cycle, but still with the failed messages:
-- Starting simple switch on 'Zap/4-1'
-- Detected ring pattern: 0,0,0
-- Checking 0,0,0
-- Distinctive Ring matched context
== Starting Zap/4-1 at ,s,1 failed so falling back to exten ‘s’
== Starting Zap/4-1 at ,s,1 still failed so falling back to context ‘default’
– Executing [s@default:1] Answer(“Zap/4-1”, " ") in new stack
– Executing [s@default:2] Echo(“Zap/4-1”, " ") in new stack
== Spawn extension (default, s, 2) exited non-zero on ‘Zap/4-1’
– Hungup ‘Zap/4-1’
Why do I get the failed messages? This is a simple test, and the two contexts match.
Thanks,
Des