[HELP] How to record a voice message using the ext numbers?

Ok, now i would like to record a voice message, and the title of the voice message is depends on my extensions number I key-in.

For example,

exten => 2000,1,VMAuthenticate() ;read your ext and password
exten => 2000,n,Playback(agent-loginok)
exten => 2000,n,Wait(1)
exten => 2000,n,Record() ;record voice message and name it according to your ext u key in
exten => 2000,n,Wait(1)
exten => 2000,n,Playback(${RECORDED_FILE}) ;play back what u have said
exten => 2000,n,Wait(1)

So if I key-in ext 1212, the voice message will be save as 1212.wav files and specifically to 1 custom folders.

What should I put in Record() so that it can read the ext, save into a custom folder?

Thanks,
Haw.

HI
in Record cmd use this
Record(${EXTEN}.wav)
this will set file as 2000.wav
& if your Dialing in from some other extension or user then use
Record(${CLLERID(num)}.wav)
this will save 1212.wav if ur dailing from 1212 extension means ur dial in.
Now it is base on you which is useful to you

Amit

[quote=“amit”]HI
in Record cmd use this
Record(${EXTEN}.wav)
this will set file as 2000.wav
& if your Dialing in from some other extension or user then use
Record(${CLLERID(num)}.wav)
this will save 1212.wav if ur dailing from 1212 extension means ur dial in.
Now it is base on you which is useful to you

Amit[/quote]

Thanks Amit. I tried the Record(${CLLERID(num)}.wav) but it cant work. It does not record any sounds, and I suppose if it does, it will be in the /var/lib/asterisk/sounds folders, but it is not there. How do I specifically save the wav files into my desired location?

Haw.

Hi
ok then plz dont use Record cmd use MixMonitor which Monitor & Record & save that file in specific directory
just use below line instead of Record
exten => s,1,Set(MONITOR_FILENAME=${CALLERID(num)})
exten => s,2,MixMonitor(${MONITOR_FILENAME}.wav,ab,mv /var/spool/asterisk/monitor/^{MONITOR_FILENAME}.wav /var/spool/asterisk/monitor/111go)

ur converstation not record & save in 111go directory with name as $calleridnum.wav
  ${callerid(num)} means current caller id number

try this

Amit