RE: outbound Dial from AGI - how can I tell which side did a

RE: outbound Dial from AGI - how can I tell which side did a hangup?

I have an AGI-script that does and outbound Dial.
When I get a hangup - how can I tell which side did a hangup?