[asterisk-users] record filename + extension

A J Stiles asterisk_list at earthshod.co.uk
Fri Feb 1 07:39:25 CST 2013

On Friday 01 February 2013, Joseph wrote:
> When recording the filename I use:
> exten =>
> _NXXXXXX,n,Set(recordfilename=${EXTEN}-${STRFTIME(${EPOCH},MST,%C%y_%m_%d_
> %H%M)}.wav)
> This works OK but I would like to add to the name the local extension from
> which the calls is originating, what is the variable called?

${CALLERID(num)} has the originating extension number, unless you changed it 
e.g. to show your direct line on an outgoing call  (but you can always do that 
*after* you generate the filename for the recording).


Answers come *after* questions.

More information about the asterisk-users mailing list