1.6.2 Dialplan Originate app UniqueId

Hey guys,

The dialplan originate sounds like a really fantastic feature. I am currently testing it out.

I need to know how to get the uniqueId/channel of the call I Originated from within the dialplan.

Is there a way to do this, perhaps some variable that gets set?

I will be making calls like this:

channel: SIP/trunk/08XXXXXXXX
context: test
extension: s
priority: 1

But as the call does not hit the dialplan until the channel answers, how do I tell the status of the call? I could look it up with the uniquieId/channel, but I have to know these first.

Thanks in advance for any help.