Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unavailable trunks #2

Open
anutator opened this issue Mar 4, 2020 · 0 comments
Open

Unavailable trunks #2

anutator opened this issue Mar 4, 2020 · 0 comments

Comments

@anutator
Copy link

anutator commented Mar 4, 2020

This code doesn't work. There is no word UNREACHABLE in pjsip show endpoints
function sip.trunk.down(){ TRUNK=$ASTERISK -rx "pjsip show endpoints" | grep UNREACHABLE | awk '{print$1}'| grep [A-Za-z] if [ -n "$TRUNK" ]; then echo $TRUNK else echo "1" fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant