Open Source Training Seminar


Not Logged in - No Account?

Logging in allows you to post to forums, track new posts, subscribe to threads, pm (private message) other members, and receive periodic news letters. Once logged in this message disappears. No account? Create one by registering here. Lost your password, request a new password. We respect your privacy and collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for details.


adding userfield with FreePBX

Rocky's picture

Hello.

Where is the best place within the FreePBX .conf files to populate userfield for the current cdr record? I tried to add this line to [macro-record-enable], but it seems to get ignored.

exten => s,999,Set(CDR(userfield)=${CALLFILENAME}.gsm)

I have seen it be "set" in the asterisk CLI, but with no effect on the table record. So, I am assuming there is a proper or better place to populate this field. Can you help?

Thanks,

Rocky


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

To enable the use of the

fskrotzki's picture

To enable the use of the userfield edit the /etc/asterisk/cdr_mysql.conf file and add this line: userfield=1

once that has been edited you need to restart asterisk.


Thank you, fskrotzki. I

Rocky's picture

Thank you, fskrotzki. I guess I should have caught that on the voip-info.org site.

Rocky