Pjsip SHOW AOR

I monitor from the cli using this script I created. You can see the full version here which includes SIP and PJSIP peers: RTP Monitoring Script

It’s great to leave running all day to watch your environment.

Here it is for strictly PJSIP:

#!/bin/bash

while true
do
    clear
    echo -e "\e[33mCurrent PJSIP Peers / Contacts:\e[39m"
    echo "-----------------------------"
    asterisk -rx 'pjsip show contacts'
    echo ""
    echo -e "\e[33mCurrent PJSIP Statistics / Active Calls:\e[39m"
    echo "----------------------------------------"
    asterisk -rx 'pjsip show channelstats'
    sleep 2
done