is there a ARI/AMI that i can call to get the connected channel name/id for a channel?
I assume you mean bridged channel.
Historically, the system set channel variables to provide that information. In particular ${BRIDGEPEER]
.
I would use the CoreShowChannels AMI action, and filter out the specific channel information I need from the CoreShowChannel events it will trigger. Check:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerAction_CoreShowChannels
and:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerEvent_CoreShowChannel