Call recording?


#1

I only managed to record incoming calls because I used this

exten => 301,1,Playback,transfer|skip ; "Please hold while…"
exten => 301,2,Monitor(wav,${EXTEN}-${TIMESTAMP}-in,m)
exten => 301,3,Dial,sip/301|20|to ; Ring, 20 secs max

any way to record out going calls? I tried to do this

[internal]
exten => _1NXXNXXXXXX,1,SetVar(DATE=${DATETIME:0:8})
exten => _1NXXNXXXXXX,2,Cut(fromuser=CHANNEL,/,2)
exten => _1NXXNXXXXXX,3,Cut(fromuser=fromuser,-,1)
exten => _1NXXNXXXXXX,4,SetVar(CALLFILENAME=/asterisk/monitor/ORIG/${fromuser}/${DATE}/outgoing/${EXTEN}-${TIMESTAMP})
exten => _1NXXNXXXXXX,5,Monitor(wav,${CALLFILENAME},m)

but it seems I dont get anything :frowning:

any help is appreciated.