I’ve posted this question over in the FreePBX forums (freepbx.org/forum/freepbx/us … -userfield) since that’s what I’m using. No one is able to help there, so I’m looking here for some guidance.
Because of a requirement of my new billing software, I have a need to set the UserField in my CDR the same as my AccountCode. I have enabled the UserField and can add ‘Set(CDR(userfield)=TEST)’ into my dialplan and have it execute perfectly. The problem I’m running into is that I cannot figure out at what point in the dialplan I can actually reference ${ACCOUNTCODE} in order to run ‘Set(CDR(userfield)=${ACCOUNTCODE})’.
I’ve grepped through /etc/asterisk and /var/lib/asterisk (recursively) for accountcode with no luck.
If someone could at least give me an idea of what to look for, I can probably find it from there.
As always, thank you in advance…
–caw