jfernandz / pyst2

A fork of the famous python pyst library for Asterisk.
139 stars 105 forks source link

No data returned for SIPPeers() AMI command #27

Open jakeb91 opened 8 years ago

jakeb91 commented 8 years ago

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?

devishot commented 6 years ago

+

alejandrozf commented 5 years ago

Maybe related to #46, I also submitted a PR that potentially fix the problem

yaeugene commented 5 years ago

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.