работает с такой схемой
[record]
exten => s,1,Verbose(2,Extension ${MACRO_EXTEN})
same => n,NoOp(${CALLERID(num)})
same => n,SET(recordname=in-${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID}.wav)
same => n,SET(patchname=${STRFTIME(${EPOCH},,%Y/%m/%d)})
same => n,MixMonitor(/tmp/${recordname},ab)
exten => ,n,Dial(SIP/${EXTEN},120,tTrU(record))