https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_CHANNEL
Note that the uniqueid is an alternative name for the channel, and that there are circumstances where either could change in a call. Generally what is constant during dialplan execution is the uniqueid. The channel name will, for example, change if the caller transfers the call.