Asterisk Auto Recording even Manual Call on Phone using Monitor
exten => _1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1NXXNXXXXXX,2,Set(CALLFILENAME=${CALLERID(all)}-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => _1NXXNXXXXXX,3,Monitor(wav,${CALLFILENAME},m)
exten => _1NXXNXXXXXX,4,Dial(${SIPTRUNK}/${EXTEN},,tTor)
exten => _1NXXNXXXXXX,5,Congestion
exten => _1NXXNXXXXXX,103,Congestion
exten => _011.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _011.,2,Set(CALLFILENAME=${CALLERID(all)}-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => _011.,3,Monitor(wav,${CALLFILENAME},m)
exten => _011.,4,Dial(${SIPTRUNK}/${EXTEN},,tTor)
exten => _011.,5,Congestion
exten => _011.,103,Congestion
You can also use mixmonitor command to record all calls