Hi to all.
My asterisk pbx has a tdm400p card with 2 FXO cards on it.
I configured the extensions.conf to send all the call incoming from that zap channels to an IVR system.
I see in the asterisk CLI the call incoming and the playback of the message custom/myfile but no sound is played on the channel, i cannot hear nothing.
If I change the configuration and i send the call to an internal sip extensions alla works great. Also works well when i configure a sip trunks to answer and playback the ivr message, i can hear it very well.
If I use the zap channel to do an outside call, all works well also.
Asterisk varsion is 1.2.7.1
This is my zapata.conf :
channels]
language=en
context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
busydetect=yes
busycount=4
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no
;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no
and this is what I see in the asterisk cli during the call :
-- Starting simple switch on 'Zap/1-1'
-- Executing Set("Zap/1-1", "LOOPCOUNT=0") in new stack
-- Executing Answer("Zap/1-1", "") in new stack
-- Executing Wait("Zap/1-1", "1") in new stack
-- Executing Set("Zap/1-1", "TIMEOUT(digit)=10") in new stack
-- Digit timeout set to 10
-- Executing Set("Zap/1-1", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10
-- Executing BackGround("Zap/1-1", "custom/benvenut0") in new stack
-- Playing 'custom/benvenut0' (language 'en')
== Spawn extension (from-pstn, s, 6) exited non-zero on 'Zap/1-1'
-- Executing Hangup("Zap/1-1", "") in new stack
== Spawn extension (from-pstn, h, 1) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1'
I’m going crazy, please send me some suggestions.
Thanks in advance.
Bye
turn your debug and verbosity levels to 10 - i don’t think we’re getting all the info we need yet.
Verbosity was 4 and is now 10
-- Starting simple switch on 'Zap/1-1'
-- Executing Set("Zap/1-1", "LOOPCOUNT=0") in new stack
-- Executing Answer("Zap/1-1", "") in new stack
-- Executing Wait("Zap/1-1", "1") in new stack
-- Executing Set("Zap/1-1", "TIMEOUT(digit)=10") in new stack
-- Digit timeout set to 10
-- Executing Set("Zap/1-1", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10
-- Executing BackGround("Zap/1-1", "custom/benvenut0") in new stack
-- Playing 'custom/benvenut0' (language 'en')
-- Timeout on Zap/1-1
== CDR updated on Zap/1-1
-- Executing Goto("Zap/1-1", "loop|1") in new stack
-- Goto (from-pstn,loop,1)
-- Executing Set("Zap/1-1", "LOOPCOUNT=1") in new stack
-- Executing GotoIf("Zap/1-1", "0?hang|1") in new stack
-- Executing Goto("Zap/1-1", "ivr-2|s|begin") in new stack
-- Goto (ivr-2,s,4)
-- Executing Set("Zap/1-1", "TIMEOUT(digit)=10") in new stack
-- Digit timeout set to 10
-- Executing Set("Zap/1-1", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10
-- Executing BackGround("Zap/1-1", "custom/benvenut0") in new stack
-- Playing 'custom/benvenut0' (language 'en')
-- Timeout on Zap/1-1
== CDR updated on Zap/1-1
-- Executing Goto("Zap/1-1", "loop|1") in new stack
-- Goto (ivr-2,loop,1)
-- Executing Set("Zap/1-1", "LOOPCOUNT=2") in new stack
-- Executing GotoIf("Zap/1-1", "0?hang|1") in new stack
-- Executing Goto("Zap/1-1", "ivr-2|s|begin") in new stack
-- Goto (ivr-2,s,4)
-- Executing Set("Zap/1-1", "TIMEOUT(digit)=10") in new stack
-- Digit timeout set to 10
-- Executing Set("Zap/1-1", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10
-- Executing BackGround("Zap/1-1", "custom/benvenut0") in new stack
-- Playing 'custom/benvenut0' (language 'en')
-- Timeout on Zap/1-1
== CDR updated on Zap/1-1
-- Executing Goto("Zap/1-1", "loop|1") in new stack
-- Goto (ivr-2,loop,1)
-- Executing Set("Zap/1-1", "LOOPCOUNT=3") in new stack
-- Executing GotoIf("Zap/1-1", "1?hang|1") in new stack
-- Goto (ivr-2,hang,1)
-- Executing Playback("Zap/1-1", "vm-goodbye") in new stack
-- Playing 'vm-goodbye' (language 'en')
-- Executing Hangup("Zap/1-1", "") in new stack
== Spawn extension (ivr-2, hang, 2) exited non-zero on 'Zap/1-1'
-- Executing Hangup("Zap/1-1", "") in new stack
== Spawn extension (ivr-2, h, 1) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1'
hmmm…
this may sound dumb, but what format is the sound file in? if it’s not GSM, convert it and remove all other formats. i know i’ve had problems with WAV files as the format is very specific. GSM has always worked for me though.
what is your debug level set at?
[quote=“whoiswes”]hmmm…
this may sound dumb, but what format is the sound file in? if it’s not GSM, convert it and remove all other formats. i know i’ve had problems with WAV files as the format is very specific. GSM has always worked for me though.
what is your debug level set at?[/quote]
The format is recordered diretcly into asterisk typing *77. I can play the messagge very well with *99. Also, if i use a sip trunk i can hear the message very well, so ivr context is correct. If i use the channel zap1-1 to call outside i can speak without any problem. Really i’m going mad!
I tryed to set debug level to 10 but same output :
Debugging level set to 10, file '<any>'
-- Starting simple switch on 'Zap/1-1'
-- Executing Set("Zap/1-1", "LOOPCOUNT=0") in new stack
-- Executing Answer("Zap/1-1", "") in new stack
-- Executing Wait("Zap/1-1", "1") in new stack
-- Executing Set("Zap/1-1", "TIMEOUT(digit)=10") in new stack
-- Digit timeout set to 10
-- Executing Set("Zap/1-1", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10
-- Executing BackGround("Zap/1-1", "custom/benvenut0") in new stack
-- Playing 'custom/benvenut0' (language 'en')
-- Executing Hangup("Zap/1-1", "") in new stack
-- Hungup 'Zap/1-1'
you have to consider also that from – Starting simple switch on 'Zap/1-1’
to – Starting simple switch on ‘Zap/1-1’ asterisk wait 2-3 seconds approx.[/img]
Sorry, i’ve found the problem in the telco box, they forwarded the call somewhere. Thanks anyway for your help !