Error log in cli for codec

What might be causing this?

func_channel.c:538 func_channel_read: Unknown or unavailable item requested: ‘codec’

Please show your dial plan. I guess you are using the CHANNEL function and you have supplied an argument that the function does not know.