Greetings,
I’m trying to change the call recording filename, at the moment (and I think it’s the asterisk default) I have this:
exten => 569,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
What I’d like to know is hot to append the extension that answered that call. So I get to this:
exten => 569,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/ext${CDR(dst)}-q${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
- First I’d like to ask if this is valid ext${CDR(dst)}
- How can I override the default filename?
I tried to add this setting to various files, such as: extensions_custom.conf and also tried in extensions_override_freepbx.conf
[ext-queues-custom]
exten => 569,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/ext${CDR(dst)}-q${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
Then I did
Then
This was the output
'569' => 1. Macro(user-callerid|) [pbx_config]
2. Answer() [pbx_config]
3. Set(__BLKVM_OVERRIDE=BLKVM/${EXTEN}/${CHANNEL}) [pbx_config]
4. Set(__BLKVM_BASE=${EXTEN}) [pbx_config]
5. Set(DB(${BLKVM_OVERRIDE})=TRUE) [pbx_config]
6. Set(_DIAL_OPTIONS=${DIAL_OPTIONS}M(auto-blkvm)) [pbx_config]
7. Set(__NODEST=${EXTEN}) [pbx_config]
8. GotoIf($["foo${RGPREFIX}" = "foo"]?REPCID) [pbx_config]
9. GotoIf($["${RGPREFIX}" != "${CALLERID(name):0:${LEN(${RGPREFIX})}}"]?REPCID) [pbx_config]
10. Noop(Current RGPREFIX is ${RGPREFIX}....stripping from Caller ID) [pbx_config]
11. Set(CALLERID(name)=${CALLERID(name):${LEN(${RGPREFIX})}}) [pbx_config]
12. Set(_RGPREFIX=) [pbx_config]
[REPCID] 13. Noop(CALLERID(name) is ${CALLERID(name)}) [pbx_config]
14. Set(_RGPREFIX=569:) [pbx_config]
15. Set(CALLERID(name)=${RGPREFIX}${CALLERID(name)}) [pbx_config]
16. Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${STRFTIME(${EPOCH}||%Y%m%d-%H%M%S)}-${UNIQUEID}) [pbx_config]
17. Queue(569|t|||30) [pbx_config]
18. dbDel(${BLKVM_OVERRIDE}) [pbx_config]
19. Set(__NODEST=) [pbx_config]
20. Goto(ext-queues|569|1) [pbx_config]
'569*' => 1. Macro(agent-add|569|) [pbx_config]
'569**' => 1. Macro(agent-del|569|569) [/code]
....
[code][ Context 'ext-queues-custom' created by 'pbx_config' ]
'569' => -2. Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/ext${CDR(dst)}-q${EXTEN}-${STRFTIME(${EPOCH}||%Y%m%d-%H%M%S)}-${UNIQUEID}) [pbx_config]
2. Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/ext${CDR(dst)}-q${EXTEN}-${STRFTIME(${EPOCH}||%Y%m%d-%H%M%S)}-${UNIQUEID}) [pbx_config]
Although nothing happens and the default filename still gets written
Thanks in advance