How-to display peer status

Joined: Sat 08 of Nov, 2008

Re: How-to display peer status

Posted:Sat 08 of Nov, 2008 (12:32 UTC)
From PHP, you can execute the following command, through system(), and get the output.
asterisk -rx 'sip show peer XYZ'
This is one way.
Joined: Tue 06 of Nov, 2007

How-to display peer status

Posted:Tue 07 of Oct, 2008 (01:10 UTC)
Hey - from the CLI - the info displayed in sip show peer XYZ is very useful. How can I use access these fields / information from PHP so that I can for example show a user:

Registered IP :
Latency: 109 ms
Device: Nokia RM-313 V 20.0.062
DTMF mode: rfc2833

It seems like such valuable information to display via PHP on a user page, but I can't find how to access the data other than through the CLI.