Hello All,
I used to use the following command to display all the phones, brand, extension and firmware version.
for ext in $(rasterisk -x ‘sip show peers’|grep -E “^[0-9]”|grep OK|cut -d “/” -f1);do rasterisk -x “sip show peer $ext”;done|grep -E “Useragent|Username”
It would result in:
Useragent : Sangoma S705 V3.0.4.79
Def. Username: 1080
Useragent : Sangoma S705 V3.0.4.79
Def. Username: 700
Useragent : Cisco/SPA514G-7.6.2
Def. Username: 7001
Useragent : snomMP/8.7.3.25
Def. Username: 7002
Useragent : Grandstream WP820 1.0.5.5
Def. Username: 701
Useragent : Cisco/SPA525G2-7.6.2
Def. Username: 702
Useragent : Cisco/SPA525G2-7.6.2
As you can see pretty handy when you have a bunch of phones and see firmware and model info.
How can I gather the same type of information with pjsip?
Thanks!