pyst2
pyst2 copied to clipboard
No data returned for SIPPeers() AMI command
When issuing the following:
response = manager.sippeers()
print(response)
print(response.data)
print(response) will print "Success"
However print(response.data) does not return any of the data.
Telnetting to AMI confirms that SIPPeers is returning information for 39 different peers.
Any pointers?
Maybe related to #46, I also submitted a PR that potentially fix the problem
SIPPeers command return not list of peer status in Response but list of events PeerEntry. For handling you must register handler for PeerEntry event and catch all peers.