Open badrik91 opened 4 years ago
You mean, the equivalent of issuing the AMI command “core show channels concise
”? The ARI GET /channels
request seems to return a lot of this info, e.g. with a command like
rest GET /channels
(the rest
command comes from my seaskirt_examples
repo), I get output that looks like:
response = [{'id': '1671069148.434', 'name': 'PJSIP/test-client-000000c1', 'state': 'Up', 'protocol_id': 'af4fa446-b329-4f00-9ae9-ceb9ecf0d5b2', 'caller': {'name': '', 'number': ''}, 'connected': {'name': '', 'number': ''}, 'accountcode': '', 'dialplan': {'context': 'time', 'exten': '11', 'priority': 30004, 'app_name': 'SayUnixTime', 'app_data': '1671069163,Zulu,HNS'}, 'creationtime': '2022-12-15T14:52:28.605+1300', 'language': 'en'}]
I haven’t tried yet, but perhaps GET /channels/{channelid}
will return even more.
Hello sir, I have used this library and its working great,make strong concept.But i have one question which is shown below how to take channel data in asterisk cli terminal through Python-ARI? is there any method to get channel data with out this method: channel = client.channels.get(channelId=channel_id) this works fine,display channel details on terminal but i want details on asterisk cli . Is there any method for this?? please give replay as soon as possible.