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

ajonate

Member
Joined
Jun 18, 2018
Messages
125
Reaction score
15
Code:
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.0/
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

I went ahead and did it. My gvsip trunks seemed to be working fine, but did it anyway. No downtime, no ill effects. Hopefully this will keep me ahead of future problems.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,221

ajonate

Member
Joined
Jun 18, 2018
Messages
125
Reaction score
15
One quirk I've had is that since moving to the new gvsip is that I can't call my own google voice number ("rejected by the service provider" error message). All other numbers work fine, but I can't call myself.
 
Joined
Aug 7, 2018
Messages
43
Reaction score
11
One quirk I've had is that since moving to the new gvsip is that I can't call my own google voice number ("rejected by the service provider" error message). All other numbers work fine, but I can't call myself.
Just a note. I have had this issue from day one even with 13.22. I never had time to play with it though.
 

jerrm

Guru
Joined
Sep 23, 2015
Messages
838
Reaction score
405
Had some time last night, so compiled 13.23. Will post how things go

Didn't take long. Things were OK yesterday, but the problem trunk stopped working again today. Asterisk still showed the trunk as "registered". A "pjsip send register gvsip2" did bring it back to life though.

Haven't had a chance to look at the logs yet.
 
Joined
Aug 7, 2018
Messages
43
Reaction score
11
Didn't take long. Things were OK yesterday, but the problem trunk stopped working again today. Asterisk still showed the trunk as "registered". A "pjsip send register gvsip2" did bring it back to life though.

Haven't had a chance to look at the logs yet.
It sounds like there are several problems with registration. All my trunks are fine since 13.23 was installed except for the failure to re-register after an Internet interruption when they showed "Unregistered."
 

esitt

New Member
Joined
Jun 6, 2017
Messages
4
Reaction score
0
I can't get any of the GVSIP to work. How can I check the registration of the GVSIP1-4 trunks?
 

ajonate

Member
Joined
Jun 18, 2018
Messages
125
Reaction score
15
I can't get any of the GVSIP to work. How can I check the registration of the GVSIP1-4 trunks?

In the admin interface click on Reports and select Asterisk Info. On the right, click Chan_PJSip Info.
 

esitt

New Member
Joined
Jun 6, 2017
Messages
4
Reaction score
0
In the admin interface click on Reports and select Asterisk Info. On the right, click Chan_PJSip Info.

Thank you.
I am running Asterisk 13.22.0 & Incredible PBX 13-13.7

I only have chan_sip and none of my gvsip1-4 are showing only another sip provider trunk i have that is working and showing registered. any suggestions of what to check?
 

ajonate

Member
Joined
Jun 18, 2018
Messages
125
Reaction score
15
If the gvsip connections are installed properly then you should see them under Chan_PJSip Registrations, even if they aren't registered. In that case they would indicate unregistered, but still show up.

You should be following the instructions under "Installing GVSIP-NAF for FreePBX" at the following link.

http://nerdvittles.com/?p=26315

Have you don't that?
 
Last edited:

esitt

New Member
Joined
Jun 6, 2017
Messages
4
Reaction score
0
If the gvsip connections are install properly then you should see them under Chan_PJSip Registrations, even if they aren't registered. In that case they would indicate unregistered, but still show up.

You should be following the instructions under "Installing GVSIP-NAF for FreePBX" at the following link.

http://nerdvittles.com/?p=26315

Have you don't that?

Yes I have. I think the GV Motif didn't properly get removed. Is there a way to uninstall the GVSIP-NAF and reinstall it? I think I might have not removed one of the GVMOTIF trunks before I installed the GVSIP-NAF.

Also looks like PJSIP commands might not be working."No such command 'pjsip show registrations'"
 

ajonate

Member
Joined
Jun 18, 2018
Messages
125
Reaction score
15
Also looks like PJSIP commands might not be working."No such command 'pjsip show registrations'"

It's not a command. It's a section on the Chan_PJSip Info page. Mine looks like this.

http://entomy.com/pj.jpg

Notice that I have three gvsip connections, and they're all registered.

I'm really not sure what the consequences are for what you've done. My gut reaction is to install from scratch again, but there may be an answer out there for you. I suggest that you start a new thread with a descriptive subject that will attract people who might know.
 

esitt

New Member
Joined
Jun 6, 2017
Messages
4
Reaction score
0
It's not a command. It's a section on the Chan_PJSip Info page. Mine looks like this.

http://entomy.com/pj.jpg

Notice that I have three gvsip connections, and they're all registered.

I'm really not sure what the consequences are for what you've done. My gut reaction is to install from scratch again, but there may be an answer out there for you. I suggest that you start a new thread with a descriptive subject that will attract people who might know.

Thank you.
 
Joined
Sep 23, 2017
Messages
98
Reaction score
22
I downloaded and installed the latest Raspberry Pi version as a clean install. I programmed all my stations, fax, and trunks before installing my GVsip trunks. Once I installed the GVsip trunks they worked 1 time each (2 of them) then any subsequent calls to them failed. At least immediately they showed as registered. The next day when I looked at them they showed as Rejected. That made me think I might have flipped the my refresh tokens. I went to Google and created new refresh tokens and tried again. Like last time the trunks worked for about 1 call then failed while showing registered as their status. Later when I checked the status became "rejected" again.

I went ahead and did the upgrade to 13.23 and the trunks worked after the asterisk restart. I even poked it with a stick and rebooted the system to see if they would fail. So far it has been 40 minutes since the last reboot and they are still working. The strange thing is the Dash Board is still showing these 2 trunks as off line.
 
Joined
Aug 7, 2018
Messages
43
Reaction score
11
Started seeing random "Rejected" registrations in the last several days.
"pjsip send register gvsipX" seems to clear the problem in less than 60 seconds. Considering running a cron job until fixed in Asterisk.

-Vladimir
 

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
any update on this issue? i have the same problem, can you share your cronjob script for pjsipsend register, so i can use it meanwhile as well?
 
Joined
Aug 7, 2018
Messages
43
Reaction score
11
any update on this issue? i have the same problem, can you share your cronjob script for pjsipsend register, so i can use it meanwhile as well?
Ariban,

Here is the script code:
Code:
#!/bin/bash

TIMESTAMP=`date "+%Y-%m-%d %H:%M:%S"`

response=$(asterisk -rx "pjsip show registrations" | grep -e "Rejected" -e "Unregistered")

if [ -z "$response" ]
then
        if [[ $0 != *"cron"* ]]
        then
                echo "$TIMESTAMP All GVSIP Channels Are Registered"
        fi
else
        line=1
        col=0
#
        for word in $response
        do
                col=$((col+1))
                cell[col]="$word"
#
                if [ $col -eq "3" ]
                then
                        line=$((line+1))
                        if [ ${cell[col]} != "Registered" ]
                        then
                                command='asterisk -rx "pjsip send register '${cell[col-1]}'"'
                                $(eval $command)
#
                                if [[ $0 != *"cron"* ]]
                                then
                                        echo $command
                                else
                                        echo "$TIMESTAMP"":" "${cell[col-1]}" "reregister request sent." >> /var/log/asterisk/gvsip-reg
                                fi
                        col=0
                        fi
                fi
        done
fi

You would need to create the /var/log/asterisk/gvsip-reg file with proper permissions and place a symlink to the script in the respective cron sub-directory. The symlink name should contain the "cron" substring. This is done to allow the script to know it runs as a cron job.

Please let me know if you have questions.

-Vladimir
 

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
Wow thank you for the code.
Excuse my ignorance, i am not very good at this.
How do i do the below

You would need to create the /var/log/asterisk/gvsip-reg file with proper permissions and place a symlink to the script in the respective cron sub-directory. The symlink name should contain the "cron" substring. This is done to allow the script to know it runs as a cron job

I put something in crontab? Nano /etc/crontab ?
What do i put?
Thank you
 
Joined
Aug 7, 2018
Messages
43
Reaction score
11
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 700 /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
 
Last edited:

Members online

No members online now.

Forum statistics

Threads
25,812
Messages
167,761
Members
19,240
Latest member
nikko
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