IP Relay and ASTloop not registering

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

IP Relay and ASTloop not registering

Postby mjohn425 » Sun Mar 14, 2021 11:01 pm

Hi All,

I have had some intermittent troubles with the ASTloop IAX2 trunk not registering. I've had a bit deeper of a look and have noticed that ip_relay doesn't seem to be working quite right. Here is the output of netstat. I'm noticing that the port for one of them isn't correct. I've gone into /usr/share/astguiclient/ip_relay and trying to run the perl relay_control restart/reload or start commands gives me a No such file or directory error. The file is definitely there and I get the same error if I try and run it manually.

The relay_control script isn't working on any of my installs (All vicibox v9.3) but I'm only having the actual ip_relay issue on one server. They are being restarted fine by the keepalive.

Any ideas?

Code: Select all
tcp        0      0 0.0.0.0:41569           0.0.0.0:*               LISTEN      2368/ip_relay
tcp        0      0 0.0.0.0:42569           0.0.0.0:*               LISTEN      2369/ip_relay
tcp        0      0 0.0.0.0:10185           0.0.0.0:*               LISTEN      2367/ip_relay
OS: VICIBox 9.0.1 OpenSuse 15.1 | VERSION: 2.14-742a BUILD: 200327-1715 | Asterisk: 13.21.1-vici | SVN: 3205 DB Schema: 1588
Linux: 4.12.14-lp151.28.44-default | MYSQL: Ver 15.1 Distrib 10.2.31-MariaDB | Perl: v5.26.1 | php: v7.2.5
mjohn425
 
Posts: 51
Joined: Tue Jan 21, 2020 1:20 am

Re: IP Relay and ASTloop not registering

Postby carpenox » Mon Mar 15, 2021 5:12 pm

im going to assume the problem is on the one with the wrong port, and try checking the ip_relay with status and it should be fine....

Image



im not sure why its going to another port, but is that port open on that server when you type "ss -ltnu" ?
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2434
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: IP Relay and ASTloop not registering

Postby mjohn425 » Mon Mar 15, 2021 9:46 pm

Yeah it was definitely the one with the wrong port. relay_control status works fine, it is only relay_control start that isn't working but they do get restarted again through the keepalive script. In saying that, the keepalive doesn't look for the situation if only one ip_relay fails (as in process is killed completely) or if ip_relay is bound to the wrong port, perhaps this is a potential enhancement. Carpenox, if you have a vicibox 9.0+ system, can you try running perl /usr/share/astguiclient/ip_relay/relay_control restart and see if you have the same issue
OS: VICIBox 9.0.1 OpenSuse 15.1 | VERSION: 2.14-742a BUILD: 200327-1715 | Asterisk: 13.21.1-vici | SVN: 3205 DB Schema: 1588
Linux: 4.12.14-lp151.28.44-default | MYSQL: Ver 15.1 Distrib 10.2.31-MariaDB | Perl: v5.26.1 | php: v7.2.5
mjohn425
 
Posts: 51
Joined: Tue Jan 21, 2020 1:20 am

Re: IP Relay and ASTloop not registering

Postby carpenox » Tue Mar 16, 2021 2:22 am

i do and the app is running, so you can not run it, if you go to the file and try to view it, you will see many lines of "executable code as its being run" pass thru the screen. that isnt the issue, its the port thats the issue. i forget what conf file that is set in, but ive never seen it out of the 45000 range before....so something is definitely wrong there. perhaps Matt or Bill can chime in on this one
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2434
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: IP Relay and ASTloop not registering

Postby mjohn425 » Tue Mar 16, 2021 5:02 am

The port was a once off, on successive reboots and restarts of ip_relay it works fine, it has just been 2 or 3 days with the issue out of the past 5 months it has been running so not a major, probably a network interface not starting quickly enough. Yeah I'm familiar with the code, I'm a software engineer, nothing astray there. Just strange that the keepalive works fine to restart it (which uses relay_control anyway) but I can't seem to run it manually to restart it.

On further investigation, running the keepalive script manually doesn't restart ip_relay but running it through the crontab does. Maybe I'm missing a bit of linux knowledge here, any idea why this would be?
OS: VICIBox 9.0.1 OpenSuse 15.1 | VERSION: 2.14-742a BUILD: 200327-1715 | Asterisk: 13.21.1-vici | SVN: 3205 DB Schema: 1588
Linux: 4.12.14-lp151.28.44-default | MYSQL: Ver 15.1 Distrib 10.2.31-MariaDB | Perl: v5.26.1 | php: v7.2.5
mjohn425
 
Posts: 51
Joined: Tue Jan 21, 2020 1:20 am

Re: IP Relay and ASTloop not registering

Postby carpenox » Tue Mar 16, 2021 6:20 am

i believe its because its one of those programs that once its running you cant run it again, try to stop the PID then try
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2434
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: IP Relay and ASTloop not registering

Postby mjohn425 » Tue Mar 16, 2021 6:22 pm

Yep, tried that. I even made a script to run the relay_control imitating the keepalive script which didn't work when I ran it manually but worked fine if I ran it in a cron. Tried running in sh instead of bash. Must be something to do with the cron shell setup.
OS: VICIBox 9.0.1 OpenSuse 15.1 | VERSION: 2.14-742a BUILD: 200327-1715 | Asterisk: 13.21.1-vici | SVN: 3205 DB Schema: 1588
Linux: 4.12.14-lp151.28.44-default | MYSQL: Ver 15.1 Distrib 10.2.31-MariaDB | Perl: v5.26.1 | php: v7.2.5
mjohn425
 
Posts: 51
Joined: Tue Jan 21, 2020 1:20 am

Re: IP Relay and ASTloop not registering

Postby carpenox » Tue Mar 16, 2021 7:58 pm

hit me up on skype, ill try to help you debug it
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2434
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 47 guests