[asterisk-users] Setting CDR(userfield) from Macro called from feature doesn't work with cdr_mysql
Sebastian
scgm at adinet.com.uy
Tue Jun 30 10:08:25 CDT 2009
Check this issue, seems related
https://issues.asterisk.org/view.php?id=14662
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Russell Brown
Sent: martes, 30 de junio de 2009 11:33 a.m.
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Setting CDR(userfield) from Macro called from
feature doesn't work with cdr_mysql
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 |
--------------------------------------------------------------------
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Comprobada por AVG - www.avg.es
Versión: 8.5.375 / Base de datos de virus: 270.12.94/2207 - Fecha de la
versión: 06/28/09 17:54:00
More information about the asterisk-users
mailing list