The problem is that the automatic hangup is not working in my voicemail, I have configured for the voicemail the following dialplan in the extensions.conf file:
exten => _C001XXX1.,1,NoOp(Incoming call to: ${EXTEN}@${CONTEXT} from ${CALLERID(num)})
same => n,Set(HOSTNAME=${SHELL(hostname)})
same => n,Log(NOTICE, --- Call Information ---)
same => n,Log(NOTICE, Call from: ${CALLERID(num)})
same => n,Log(NOTICE, Call to: ${EXTEN})
same => n,Log(NOTICE, Context: ${CONTEXT})
same => n,Log(NOTICE, Channel: ${CHANNEL})
same => n,Log(NOTICE, --- End of Call Information ---)
same => n,Log(NOTICE, --- Statis Ended ---)
same => n,NoOp(Stasis status: ${STASISSTATUS})
same => n,NoOp(Channel state: ${CHANNEL(state)})
same => n,GotoIf($["${STASISSTATUS}" = "FAILED"]?stasis_error:continuedialplan)
same => n(stasis_error),NoOp(Error stasis status: ${STASISSTATUS})
same => n,Log(ERROR,Error stasis status: ${STASISSTATUS} - ${EXTEN}@${CONTEXT} - ${CALLERID(num)})
same => n(continuedialplan),NoOp(Exit from stasis, continue with Dialplan)
same => n,NoOp(Channel status: ${CHANNEL(state)})
same => n,GotoIf($["${CHANNEL(state)}" = "Ring"]?call_not_answered)
same => n,GotoIf($["${CHANNEL(state)}" != "Up"]?call_ended:call_still_active)
same => n(call_not_answered),NoOp(Call not answered)
same => n(call_still_active),NoOp(Call still active)
same => n,Hangup()
same => n(call_ended),NoOp(Call hangup inside stasis)
same => n,Set(CAUSE=${HANGUPCAUSE})
same => n,NoOp(Hangup cause: ${CAUSE})
same => n,GotoIf($[${CAUSE} == 16]?normal_clear:other_cause)
same => n(normal_clear),NoOp(Call normal clearing)
same => n,Hangup()
same => n(other_cause),NoOp(Call hangup cause ${CAUSE})
same => n,Hangup()
Do you know where else I can check why the hangup is not working?