exten => *0103,1,StopMixMonitor
same => n,GoSub(subroutine-cdr,s,1(13,5b4f997508e34))
same => n,GotoIf($["${vmgreeting}" = "s"]?silent)
same => n,GotoIf($["${unavailable}" != ""]?notnull)
same => n,VoiceMail(103@voicemail,b)
same => n,Hangup
same => n(notnull),VoiceMail(103@voicemail,${unavailable})
same => n,Hangup
same => n(silent),VoiceMail(103@voicemail,s)

[subroutine-cdr]
exten => s,1,Set(saverecpath=${CDR(cdr_record_file_location)})
same => n,Set(savebillable=${CDR(cdr_billable)})
same => n,ForkCDR(e)
same => n,Set(CDR(cdr_event_type)=${ARG1})
same => n,Set(CDR(cdr_eventID)=${ARG2})
same => n,Set(CDR(cdr_callerid_num)=${CALLERID(num)})
same => n,Set(CDR(cdr_callerid_name)=${CALLERID(name)})
same => n,Set(CDR(cdr_record_file_location)=${saverecpath})
same => n,Set(CDR(cdr_billable)=${savebillable})
same => n,Return()
