How to pull a list of iax peers from Asterisk (Python))

from sip i pulled so

manager.connect('100.100.100.100') manager.login('xmaster', '443166') ter = manager.sipshowpeer(5101) b =ter.headers['Response'] 

And for IAX How?

    1 answer 1

    I raised ARI in Asterisk (> 12), and so on.

     import requests, json r = requests.get("http://localhost:8088/ari/endpoints/IAX?api_key=1c:pwd") iax_peers = json.loads(r.content.decode("utf-8")) 
    • thanks for the idea - xmaster83
    • True, through ARI - it will not be possible to manage calls without modifying extensions.conf. I recommend to see the methods in more detail with the help of ari.asterisk.org - Tihon
    • I vkurse, thank you - xmaster83