How come commands after i call Voicemail() don't run?

Hi, how come when i put commands after a voicemail() call, they don’t run? its like the voicemail() command doesn’t return control to my context, it just hangs up insted. heres my context:

include extensions_additional.conf
include => ext-local
exten => s,1,Answer()
exten => s,2,Wait(1)
exten => s,3,GotoIf($["${mytrunk}" = “yes”]?4:7)
exten => s,4,Background(firstgreeting)
exten => s,5,Voicemail(s103)
exten => s,6,Playback(Goodbye) ; <---------------WON’T PLAY!-------
exten => s,7,Hangup
exten => s,8,Playback(secondgreeting)
exten => s,9,Voicemail(s103)
exten => s,10,Playback(Goodbye) ; <---------------WON’T PLAY!-------
exten => s,11,Hangup
;error trap, no vaild ext. pressed
exten => i,1,Wait(1)
exten => i,2,Playback(pbx-invalid)
exten => i,3,GotoIf($["${mytrunk}" = “yes”]?s,4:s,8)

do you actually have a file called “Goodbye” in var/lib/asterisk/sounds ? case-sensitivity is a fact of life here too.


In your asterisk CLI set verbose to 7 then run through the issue again. Post the log here.

I believe this is how it should be. Voicemail doesn’t return control to the context and hangsup on its own after finishing its work.

That’s correct zeeshan.

It’s an application in itself.

no, try it yourself. dialplan processing continues if you select 1 to accept the recording.

It continues not from the context but from the voicemail application itself.