async def get_asterisk_chan(response_json):
    """Get the Asterisk Channel from the JSON responses"""
    if response_json["type"] in ["PlaybackStarted", "PlaybackFinished"]:
        return str(response_json.get("playback", {}).get("target_uri")).split(":")[1]
    else:
        return response_json.get("channel", {}).get("id")