You cant set CDR custom field using this function.
[quote]CHANNEL()
Gets/sets various pieces of information about the channel, additional item may be available from the channel driver; see its documentation for details. Any item requested that is not available on the current channel will return an empty string.[/quote]
I tested and got the following warning trying to set unixtime custom field:
Well if you use “same=>n,Set(CDR(unixtime)=12015001)” it does work ! but complains about deprecation and tell to use “CHANNEL command” but it doesn’t work!