Dialed Channel ID

Good afternoon! How do I get the channel ID of a dialed call? Current Channel is /SIP/myserver-00000aa8, and the dialed channel ID is /SIP/mytalk-00000aa9. ${Channel} returns /SIP/myserver-00000aa8. I need to programmatically get the aa9 id. Any suggestions? Thank you in advance.

I need it so I can use the Bridge command.


David, thanks for this tidbit. I wasn’t aware of this until now, but it’s very useful.