SOLVED PBX Status Missing Public IP Address

w1ve

Guru
Joined
Nov 15, 2007
Messages
819
Reaction score
218
All of a sudden, a Digital Ocean instance is not available on the internet at all, only from their command console.

If I do a Status, the Private IP is what is normally is, the public IP.
However, the Public IP is blank.

Ideas?

Thanks!
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Just saw this on some other platforms as well. Here's the fix:
Code:
sed -i 's|myip.pbxinaflash.com|myip.incrediblepbx.com|' /usr/local/sbin/pbxstatus
sed -i 's|myip.pbxinaflash.com|myip.incrediblepbx.com|' /usr/local/sbin/status
 
Last edited:

w1ve

Guru
Joined
Nov 15, 2007
Messages
819
Reaction score
218
Thanks Ward! Ran an update before I read your fix! Appreciate it much.
 

SMTC

Member
Joined
Jan 22, 2009
Messages
190
Reaction score
13
@wardmundy - Boot time updates did not fix this for me on the Rasp Pi 3. Had to NANO the changed domain in.
 

Guillermo Peña

New Member
Joined
Sep 24, 2016
Messages
11
Reaction score
5
Inb
Just saw this on some other platforms as well. Here's the fix:
Code:
sed -i 's|myip.pbxinaflash.com|myip.incrediblepbx.com|' /usr/local/sbin/pbxstatus
sed -i 's|myip.pbxinaflash.com|myip.incrediblepbx.com|' /usr/local/sbin/status
I was wondering why ssh logging in was taking forever. It was due to this server change.
It could be great to update the install scripts so new versions of status and status7 now have this lines changed

This is my proposition:
changed
Code:
PUBLIC=" Public IP: `curl -s -S --user-agent "Mozilla/4.0" http://myip.incrediblepbx.com | awk 'NR==2'`"

to

PUBLIC=" Public IP: `curl -s -S -m 5  --user-agent "Mozilla/4.0" http://myip.incrediblepbx.com | awk 'NR==2'`"

Before reading this I have changed it for another service
Code:
 _PUBLIC=" Public IP: `curl -s -S -m 5  --user-agent "Mozilla/4.0" http://www.ident.me`"
www.ident.me returns a plain ip address and doesn't need parsing with AWK
feel free to use anyone you like.

m 5 gives a time of 5 seconds to curl to complete the operation, after that it will continue running the script, so If there's a missing connection either local or remote site the script will still work

Regards
 
Last edited:

Members online

Forum statistics

Threads
25,779
Messages
167,505
Members
19,199
Latest member
leocipriano
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top