Can someone tell me what table this page comes from, I have spent the better part of the day poking around in mysql looking in the tables but can’t seem to find this info. I’m looking for the IP address of the host for each SIP device. I’m just reading NO WRITING…
asterisk -x "sip show peers"
It doesn’t come from FreePBX (msql), but from Asterisk. You would access via he CLI.
Dang it, I was hoping to pull it from a table…
thanks for the quick replies!
You can also get the endpoints status from AMI and ARI.
can you elaborate on that? like I said in the post I’m looking for the IP info for each host?
sip show peers will only show ChanSIP endpoints. If you want to get ChanSIP and PJSIP with one query, you can do it with ARI:
See this post for an example. Note, you can also pass the credentials like this:
You can also do it with AMI.
Another good resource: @sorvani put this together, I believe this only works with PJSIP. https://github.com/sorvani/freepbx-helper-scripts/tree/master/Extension_Status
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.