[asterisk-users] Setting CDR(userfield) from Macro called from feature doesn't work with cdr_mysql
Russell Brown
russell at lls.lls.com
Tue Jun 30 09:33:19 CDT 2009
cdr_mysql doesn't set the userfield when it's set inside a macro
called from a feature (1.4.25, addons 1.4.8).
I have a feature code:
autorecord => *1,self,Macro,apprecord
The apprecord macro looks like:
[macro-apprecord]
exten => s,1,Playback(beep)
exten => s,n,Set(RECORDFILE=/var/spool/asterisk/autorecord/${STRFTIME(${EPOCH},,%Y/%m/%d/%H%M%S)}-${UNIQUEID}-^-${CALLERID(num)})
exten => s,n,Set(CDR(userfield)=${RECORDFILE})
exten => s,n,MixMonitor(${RECORDFILE}.wav)
exten => s,n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
exten => s,n,NoOp(CDR(userfield) = ${CDR(userfield)})
exten => s,n,MacroExit
The NoOp shows the userfield is set correctly but the userfield is blank
in my MySQL cdr database. I set CDR(userfield) elsewhere in the dialplan
and this works so it seems to be related to being set within a macro.
Any idea what I'm doing wrong?
--
Regards,
Russell
--------------------------------------------------------------------
| Russell Brown | MAIL: russell at lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com |
| Peterborough, England | WWW Play: http://www.ruffle.me.uk |
--------------------------------------------------------------------
More information about the asterisk-users
mailing list