Any body aware how to obtain the channels that are linked to a current extension. For example if my extension is 1234 what is the best way to find out what is the current channel I am linked too. I can probably do it with show channels or the status command but that takes a lot of parsing.
I am looking for something like this
Action: ShowLinkedChannels Channel: SIP/1234-a8de