AMI Event PeerStatus: Address Option With Res_pjsip

Home » Asterisk Users » AMI Event PeerStatus: Address Option With Res_pjsip
Asterisk Users No Comments

Hello.

Continue to move from chan_sip to res_pjsip. For the work of my algorithms is very important to know the IP address of all trunks and endpoints (phones).

In the case of chan_sip, I used PeerStatus AMI event through which was received the fact of online/offline and IP Address of endpoint. And requesting AMI SIPshowpeer I received UserAgent of this endpoint.

res_pjsip. In the case of “ENDPOINT CONFIGURED FOR USE WITH A SIP PHONE” I can use AMI event “SuccessfulAuth” to retrieve IP Address. How can I get the IP address in the case of trunks?
I will be grateful if tell me how to get the User agent.

Thanks

Dmitriy Serov.