Not hearing voicemail prompts


#1

Most of the time, but not all of the time, if a call goes unanswered, the calling party doesn’t hear any of the voicemail prompts (“extension 1 is unavailable”, “beep”,“goodbye”). Does this make any sense to anyone out there? Here’s my console output:

-- Zap/1-1 is ringing
-- Zap/1-1 is ringing
-- Zap/1-1 is ringing
-- Zap/1-1 is ringing
-- Zap/1-1 is ringing
-- Nobody picked up in 20000 ms
-- Hungup 'Zap/1-1'
-- Executing VoiceMail("Zap/2-1", "u1@other") in new stack
-- Playing 'vm-theperson' (language 'en')
-- Playing 'digits/1' (language 'en')
-- Playing 'vm-isunavail' (language 'en')
-- Playing 'vm-intro' (language 'en')
-- Playing 'beep' (language 'en')
-- Recording the message
-- x=0, open writing:  /var/spool/asterisk/voicemail/other/1/INBOX/msg0006 format: wav49, 0x81821c8
-- x=1, open writing:  /var/spool/asterisk/voicemail/other/1/INBOX/msg0006 format: gsm, 0x813f3e8
-- x=2, open writing:  /var/spool/asterisk/voicemail/other/1/INBOX/msg0006 format: wav, 0x818d5d0
-- Recording automatically stopped after a silence of 10 seconds
-- Playing 'auth-thankyou' (language 'en')
-- Executing Playback("Zap/2-1", "vm-goodbye") in new stack
-- Playing 'vm-goodbye' (language 'en')
-- Executing Hangup("Zap/2-1", "") in new stack

#2

It would appear that your Zap channel is hanging up after 20 seconds after no answer. Are you issuing an ‘Answer()’ command in your dialplan? What is in your /etc/asterisk/extensions.conf and your zapata config?


#3

Thanks! Here’s my zapata.conf:

[trunkgroups]

[channels]
usecallerid=yes
hidecallerid=no
callwaiting=no
threewaycalling=no
transfer=yes
echocancel=yes
echotraining=yes
immediate=no
mailbox=1@other

switchtype=national
rxwink=300 ; Atlas seems to use long (250ms) winks
callreturn=no
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
busydetect=yes
answeronpolarityswitch=yes
hanguponpolarityswitch=yes
jitterbuffers=4

;define channels
context=internal
signalling=fxo_ks
channel => 1

context=incoming
signalling=fxs_ks
channel => 2

Here’s my extensions.conf:
[incoming]
exten => s,1,Dial(Zap/1&SIP/101,20)
exten => s,2,VoiceMail(u1@other)
exten => s,3,PlayBack(vm-goodbye)
exten => s,4,HangUp()

exten => s,102,VoiceMail(b1@other)
exten => s,103,PlayBack(vm-goodbye)
exten => s,104,HangUp()


#4

i read that as the FXS port was being closed, not the FXO port the call is coming in on.

what output do you get if you create an extension that goes to s,1 of the incoming context and call it from an internal extension ?


#5

Maybe if you try something like this:

exten => s,1,Dial(Zap/1&SIP/101,20)
exten => s,2,Answer()
exten => s,3,VoiceMail(u1@other)
exten => s,4,PlayBack(vm-goodbye)
exten => s,5,HangUp()

As it would appear that you are not getting a consistent answer and the line off-hook after it has tried to ring your Zap attached FXS.