ALERT GVSIP Is Dead, was: GVSIP Registration Issues. Asterisk 13.23.0 Seems To Fix The Problem.

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
Ariban,

You need to do something like that:
  • sudo touch /var/log/asterisk/gvsip-reg
  • place the script into /root/scripts/gvsip-reg using sudo nano
  • sudo chmod 600 /root/scripts/gvsip-reg
  • sudo ln -s /root/scripts/gvsip-reg /etc/cron.hourly/gvsip-reg-cron
I have not tested the commands, just typed them in here. I assumed your Linux distribution has /etc/cron.hourly If it does not please adjust accordingly.

-Vladimir
Yes I have /etc/cron.hourly i am running centos 6.10
i followed your instructions, i will give you an update and let you know how it works!
again thank you very much
 
Joined
Aug 7, 2018
Messages
43
Reaction score
11
Yes I have /etc/cron.hourly i am running centos 6.10
i followed your instructions, i will give you an update and let you know how it works!
again thank you very much
Ariban,

Sorry, I have just noticed one mistake in my instructions.

Please run:
Code:
sudo chmod 700 /root/scripts/gvsip-reg

You can always test the script just by running it.

-Vladimir
 

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
Ariban,

Sorry, I have just noticed one mistake in my instructions.

Please run:
Code:
sudo chmod 700 /root/scripts/gvsip-reg

You can always test the script just by running it.

-Vladimir
thank you, yes i figure that one out, i got an error no permission, so i changed it.
 

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
Ariban,

Sorry, I have just noticed one mistake in my instructions.

Please run:
Code:
sudo chmod 700 /root/scripts/gvsip-reg

You can always test the script just by running it.

-Vladimir
Hi Vladimir,
i just wanted to update you.
the script works to keep everything registered (if i type show-trunks) but somehow gvsip is still not connected, i have to actually type amportal restart and then it works again.

i am not sure what else to do. anyway we can add amportal restart to the script after it registers gvsip?
 
Joined
Sep 23, 2017
Messages
98
Reaction score
22
Have you tried doing the update in post 13 of this thread. That fixed the issue for me although when I did it 13.23.1 was the current version. It has been running without missing a beat since then.
 

ajonate

Member
Joined
Jun 18, 2018
Messages
125
Reaction score
15
Have you tried doing the update in post 13 of this thread. That fixed the issue for me although when I did it 13.23.1 was the current version. It has been running without missing a beat since then.

I went ahead and upgraded again because 13.23.0---->13.23.1 is a security update to fix a particular vulnerability.

Remote crash vulnerability in HTTP websocket upgrade There is a stack overflow vulnerability in the res_http_websocket.so module of Asterisk that allows an attacker to crash Asterisk via a specially crafted HTTP request to upgrade the connection to a websocket. The attacker’s request causes Asterisk to run out of stack space and crash.
https://www.asterisk.org/downloads/...and-1321-cert3-now-available-security-release
 
Joined
Aug 7, 2018
Messages
43
Reaction score
11
Hi Vladimir,
i just wanted to update you.
the script works to keep everything registered (if i type show-trunks) but somehow gvsip is still not connected, i have to actually type amportal restart and then it works again.

i am not sure what else to do. anyway we can add amportal restart to the script after it registers gvsip?
Ariban,

Have you tested the script by manually running it at the time of having no GVSIP connectivity? What was the message you received?

It is not a good idea to restart the asterisk every hour since it will drop all existing connections, and it takes a minute or so to complete.

Just FYI, ever since I upgraded to 13.23.0 the issue became pretty minor for me. After I started running the script, 10 days or so, I have had just one instance of the script performing the registration on three (3) channels. It sounds like maybe something else is going on in your case.

-Vladimir
 

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
Ariban,

Have you tested the script by manually running it at the time of having no GVSIP connectivity? What was the message you received?

It is not a good idea to restart the asterisk every hour since it will drop all existing connections, and it takes a minute or so to complete.

Just FYI, ever since I upgraded to 13.23.0 the issue became pretty minor for me. After I started running the script, 10 days or so, I have had just one instance of the script performing the registration on three (3) channels. It sounds like maybe something else is going on in your case.

-Vladimir
Hi Vladmir
I tested the script, it showed registered after testing the script but still i needed to run amportal restart for it to work.
When is asterisk 13.23 coming out?
I read above in this forum that someone tried updating and they broke their pbx, is there going to be a update from incrediblepbx?
 

ajonate

Member
Joined
Jun 18, 2018
Messages
125
Reaction score
15
Hi Vladmir
I tested the script, it showed registered after testing the script but still i needed to run amportal restart for it to work.
When is asterisk 13.23 coming out?
I read above in this forum that someone tried updating and they broke their pbx, is there going to be a update from incrediblepbx?

It's not too difficult to do. I've done it on two servers without incident.

1. Install IncrediblePBX 13-13. That will install Asterisk 13.21.

2. Install GVSIP-NAF. That will also install Asterisk 13.22. (if the gvsip-naf directory already exists in /root then only do the last two steps)

cd /root
wget http://incrediblepbx.com/gvsip-naf-gui.tar.gz
tar zxvf gvsip-naf-gui.tar.gz
rm -f gvsip-naf-gui.tar.gz
cd gvsip-naf
./install-gvsip


Agree to upgrade. Among other things, that will install Asterisk 13.22. You might want to create at least one GVSIP trunk at this point to convince yourself that it works. Do not advance to the next step before installing GVSIP-NAF using the steps above.

3. Upgrade to Asterisk 13.23.1.

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar xvfz asterisk-13-current.tar.gz
cd asterisk-13.23.1
contrib/scripts/get_mp3_source.sh
contrib/scripts/install_prereq install
patch -p1 < ../gvsip-naf.patch
./configure --with-pjproject-bundled --with-jansson-bundled
make menuselect
make
ldconfig
make install
amportal restart
 
Last edited:
Joined
Aug 7, 2018
Messages
43
Reaction score
11
It's not too difficult to do. I've done it on two servers without incident.

1. Install IncrediblePBX 13-13. That will install Asterisk 13.21.

2. Install GVSIP-NAF (if the gvsip-naf directory already exists in /root then only do the last two steps)

cd /root
wget http://incrediblepbx.com/gvsip-naf-gui.tar.gz
tar zxvf gvsip-naf-gui.tar.gz
rm -f gvsip-naf-gui.tar.gz
cd gvsip-naf
./install-gvsip


Agree to upgrade. Among other things, that will install Asterisk 13.22. You might want to create at least one GVSIP trunk at this point to convince yourself that it works. Do not advance to the next step before installing GVSIP-NAF using the steps above.

3. Upgrade to Asterisk 13.23.1.

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar xvfz asterisk-13-current.tar.gz
cd asterisk-13.23.1
contrib/scripts/get_mp3_source.sh
contrib/scripts/install_prereq
patch -p1 < ../gvsip-naf.patch
./configure --with-pjproject-bundled --with-jansson-bundled
make menuselect
make
ldconfig
make install
amportal restart
Ajonate,

One minor correction
Code:
contrib/scripts/install_prereq install
-Vladimir
 
Joined
Aug 7, 2018
Messages
43
Reaction score
11
Hi Vladmir
I tested the script, it showed registered after testing the script but still i needed to run amportal restart for it to work.
When is asterisk 13.23 coming out?
I read above in this forum that someone tried updating and they broke their pbx, is there going to be a update from incrediblepbx?
Ariban,

13.23 is a key part, my script just fixes Asterisk's pjsip implementation minor omissions in the registration / re-registration process.

-Vladimir
 

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
Ariban,

13.23 is a key part, my script just fixes Asterisk's pjsip implementation minor omissions in the registration / re-registration process.

-Vladimir
i backed up my server, and now running update. i will let you know what happens.
you guys are the best! thank you
 

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
Ariban,

13.23 is a key part, my script just fixes Asterisk's pjsip implementation minor omissions in the registration / re-registration process.

-Vladimir
Ok, update!!

I upgraded, i now have 13.23.1 asterisk version
it worked for about a day, and then it disconnected, i ran ./show-trunks and it shows all gvsip as registered (i ran your script too just in case but it came back saying its all registered and nothing to do)
only solution again was to type amportal restart
 

weenus500

Member
Joined
Dec 28, 2014
Messages
38
Reaction score
1
After a number of weeks of problem free service today I woke up to this unhappy reality: "gvsip1/sip:eek:bihai.sip.google.com gvsip1 Rejected" :( on my two raspi servers. I hope that following the procedure for the upgrade to 13.23.1 will get the google voice trunk working again.
 

chadkouse

New Member
Joined
Aug 20, 2010
Messages
1
Reaction score
0
I'm using the vbox image and have this problem registering.. so I ran the update and now I am getting:

Code:
[2018-10-12 11:59:28] WARNING[2099]: pjproject:0 <?>:                        SSL SSL_ERROR_SSL (Handshake): Level: 0 err: <336151568> <SSL routines-ssl3_read_bytes-sslv3 alert handshake failure> len: 0

Any ideas?
 

McGonzo

New Member
Joined
Oct 12, 2018
Messages
1
Reaction score
0
FWIW, I had a system running for several weeks and just got this error as well.
 

weenus500

Member
Joined
Dec 28, 2014
Messages
38
Reaction score
1
FWIW, I had a system running for several weeks and just got this error as well.
I'm just wondering if some small tweak could be done to the way pjsip registers with google instead of this massive reinstall operation to fix the problem.
 

weenus500

Member
Joined
Dec 28, 2014
Messages
38
Reaction score
1
It's not too difficult to do. I've done it on two servers without incident.

1. Install IncrediblePBX 13-13. That will install Asterisk 13.21.

2. Install GVSIP-NAF. That will also install Asterisk 13.22. (if the gvsip-naf directory already exists in /root then only do the last two steps)

cd /root
wget http://incrediblepbx.com/gvsip-naf-gui.tar.gz
tar zxvf gvsip-naf-gui.tar.gz
rm -f gvsip-naf-gui.tar.gz
cd gvsip-naf
./install-gvsip


Agree to upgrade. Among other things, that will install Asterisk 13.22. You might want to create at least one GVSIP trunk at this point to convince yourself that it works. Do not advance to the next step before installing GVSIP-NAF using the steps above.

3. Upgrade to Asterisk 13.23.1.

1. cd /usr/src
2. wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
3. tar xvfz asterisk-13-current.tar.gz
4. cd asterisk-13.23.1
5. contrib/scripts/get_mp3_source.sh
6.contrib/scripts/install_prereq install
7. patch -p1 < ../gvsip-naf.patch
8. ./configure --with-pjproject-bundled --with-jansson-bundled
9. make menuselect
10. make
11. ldconfig
12. make install
13. amportal restart

I had problem with step 7. It didn't run at all so being a smart chimp I looked for where it might be on the box and I found these two.
patch -pl < /root/gvsip-naf/gvsip-naf.patch
patch -pl < /usr/src/gvsip-naf.patch

They both came back with this message.

patch: **** strip count l is not a number
I skipped this step 7. and end result is that gvsip wouldn't work.
Maybe some kind soul could help me out with this.
 

Members online

No members online now.

Forum statistics

Threads
25,782
Messages
167,509
Members
19,202
Latest member
pbxnewguy
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