SIP Channel ID

When an outbound call is placed, I need to automatically update the astdb file with a SIP channel ID. Can anyone tell me what function do I need to use on a dialplan context for asterisk-1.6.x to achieve this task?


I found the answer (${CHANNEL}) from a list of Predefined Channel Variables on VoIP-Info wiki page.