pyst2 icon indicating copy to clipboard operation
pyst2 copied to clipboard

No data returned for SIPPeers() AMI command

Open jakeb91 opened this issue 8 years ago • 3 comments

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?

jakeb91 avatar Jun 11 '16 10:06 jakeb91

devishot avatar Jun 27 '18 11:06 devishot

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

alejandrozf avatar Jun 11 '19 14:06 alejandrozf

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.

yaeugene avatar Nov 11 '19 07:11 yaeugene