Unable to register ext after installing certbot Vici 9.0.2

All installation and configuration problems and questions

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

Unable to register ext after installing certbot Vici 9.0.2

Postby mubeen » Fri May 01, 2020 2:12 am

Hi,

I have just installed
vicibox 9.0.2
VERSION: 2.14-751a
BUILD: 200425-0949

Everything worked fine until I installed certbot. Certbot was installed successfully and I was able to login with https but issue is once I installed certbot asterisk dosent recognise extensions anymore, Even new phone I make dosent appear in sip show peers.
ViciBox v.8.0.1
VERSION: 2.14-667a
BUILD: 180331-1715
mubeen
 
Posts: 116
Joined: Mon Feb 19, 2018 1:49 pm

Re: Unable to register ext after installing certbot Vici 9.0

Postby carpenox » Fri May 01, 2020 3:15 am

which sockets are running? screen -ls

and show me the asterisk log as you try to login, but first enable sip debug
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Unable to register ext after installing certbot Vici 9.0

Postby mubeen » Fri May 01, 2020 3:39 am

screen -ls
Code: Select all
There are screens on:
        2373.asterisk   (Detached)
        2327.astshell20200501023001     (Detached)
2 Sockets in /run/screens/S-root.



Code: Select all
[May  1 04:21:33]   == WebSocket connection from '182.185.128.104:49455' for protocol 'sip' accepted using version '13'
[May  1 04:21:33]
[May  1 04:21:33] <--- SIP read from WS:182.185.128.104:49455 --->
[May  1 04:21:33] REGISTER sip:144.76.xxx.xxx SIP/2.0
[May  1 04:21:33] Via: SIP/2.0/WSS 192.0.2.68;branch=z9hG4bK8031513
[May  1 04:21:33] Max-Forwards: 70
[May  1 04:21:33] To: "1001" <sip:1001@144.76.xxx.xxx>
[May  1 04:21:33] From: "1001" <sip:1001@144.76.xxx.xxx>;tag=in3348t85i
[May  1 04:21:33] Call-ID: 50f7mdrv9slqcrcuimhmr5
[May  1 04:21:33] CSeq: 81 REGISTER
[May  1 04:21:33] Contact: <sip:l1c45jj2@192.0.2.68;transport=wss>;reg-id=1;+sip.instance="<urn:uuid:08e8352b-0897-4c72-a1bf-d170bff20b90>";expires=600
[May  1 04:21:33] Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
[May  1 04:21:33] Supported: path, gruu, outbound
[May  1 04:21:33] User-Agent: VICIphone 1.0-rc1
[May  1 04:21:33] Content-Length: 0
[May  1 04:21:33]
[May  1 04:21:33] <------------->
[May  1 04:21:33] --- (12 headers 0 lines) ---
[May  1 04:21:33]
[May  1 04:21:33] <--- Transmitting (NAT) to 182.185.128.104:49455 --->
[May  1 04:21:33] SIP/2.0 401 Unauthorized
[May  1 04:21:33] Via: SIP/2.0/WSS 192.0.2.68;branch=z9hG4bK8031513;received=182.185.128.104;rport=49455
[May  1 04:21:33] From: "1001" <sip:1001@144.76.xxx.xxx>;tag=in3348t85i
[May  1 04:21:33] To: "1001" <sip:1001@144.76.xxx.xxx>;tag=as5c088bb7
[May  1 04:21:33] Call-ID: 50f7mdrv9slqcrcuimhmr5
[May  1 04:21:33] CSeq: 81 REGISTER
[May  1 04:21:33] Server: Asterisk PBX 13.29.2-vici
[May  1 04:21:33] Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
[May  1 04:21:33] Supported: replaces, timer
[May  1 04:21:33] WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="298ffacf"
[May  1 04:21:33] Content-Length: 0
[May  1 04:21:33]
[May  1 04:21:33]
[May  1 04:21:33] <------------>
[May  1 04:21:33] Scheduling destruction of SIP dialog '50f7mdrv9slqcrcuimhmr5' in 32000 ms (Method: REGISTER)
[May  1 04:21:33]
[May  1 04:21:33] <--- SIP read from WS:182.185.128.104:49455 --->
[May  1 04:21:33] REGISTER sip:144.76.xxx.xxx SIP/2.0
[May  1 04:21:33] Via: SIP/2.0/WSS 192.0.2.68;branch=z9hG4bK9476834
[May  1 04:21:33] Max-Forwards: 70
[May  1 04:21:33] To: "1001" <sip:1001@144.76.xxx.xxx>
[May  1 04:21:33] From: "1001" <sip:1001@144.76.xxx.xxx>;tag=in3348t85i
[May  1 04:21:33] Call-ID: 50f7mdrv9slqcrcuimhmr5
[May  1 04:21:33] CSeq: 82 REGISTER
[May  1 04:21:33] Authorization: Digest algorithm=MD5, username="1001", realm="asterisk", nonce="298ffacf", uri="sip:144.76.xxx.xxx", response="2a6d89c8dd29de78c7a41c45a14c5742"
[May  1 04:21:33] Contact: <sip:l1c45jj2@192.0.2.68;transport=wss>;reg-id=1;+sip.instance="<urn:uuid:08e8352b-0897-4c72-a1bf-d170bff20b90>";expires=600
[May  1 04:21:33] Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
[May  1 04:21:33] Supported: path, gruu, outbound
[May  1 04:21:33] User-Agent: VICIphone 1.0-rc1
[May  1 04:21:33] Content-Length: 0
[May  1 04:21:33]
[May  1 04:21:33] <------------->
[May  1 04:21:33] --- (13 headers 0 lines) ---
[May  1 04:21:33]
[May  1 04:21:33] <--- Transmitting (NAT) to 182.185.128.104:49455 --->
[May  1 04:21:33] SIP/2.0 403 Forbidden
[May  1 04:21:33] Via: SIP/2.0/WSS 192.0.2.68;branch=z9hG4bK9476834;received=182.185.128.104;rport=49455
[May  1 04:21:33] From: "1001" <sip:1001@144.76.xxx.xxx>;tag=in3348t85i
[May  1 04:21:33] To: "1001" <sip:1001@144.76.xxx.xxx>;tag=as5c088bb7
[May  1 04:21:33] Call-ID: 50f7mdrv9slqcrcuimhmr5
[May  1 04:21:33] CSeq: 82 REGISTER
[May  1 04:21:33] Server: Asterisk PBX 13.29.2-vici
[May  1 04:21:33] Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
[May  1 04:21:33] Supported: replaces, timer
[May  1 04:21:33] Content-Length: 0
[May  1 04:21:33]
[May  1 04:21:33]
[May  1 04:21:33] <------------>
[May  1 04:21:33] NOTICE[5258]: chan_sip.c:28751 handle_request_register: Registration from '"1001" <sip:1001@144.76.xxx.xxx>' failed for '182.185.128.104:49455' - Wrong password
[May  1 04:21:33] Scheduling destruction of SIP dialog '50f7mdrv9slqcrcuimhmr5' in 32000 ms (Method: REGISTER)


I'm sure the password is correct
ViciBox v.8.0.1
VERSION: 2.14-667a
BUILD: 180331-1715
mubeen
 
Posts: 116
Joined: Mon Feb 19, 2018 1:49 pm

Re: Unable to register ext after installing certbot Vici 9.0

Postby carpenox » Fri May 01, 2020 5:15 am

your missing about 8 sockets in asterisk, run the keepalive script to start them up: /usr/share/astguiclient/ADMIN_keepalive_ALL.pl --cu3way

afterwards type screen -ls again and see how many are there, check again ten mintues later and try again
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Unable to register ext after installing certbot Vici 9.0

Postby mubeen » Fri May 01, 2020 5:48 am

Thank you for pointing out the issue, once I run the script 11 sockets are shown and extensions register though after rebooting the server have to run the script again
ViciBox v.8.0.1
VERSION: 2.14-667a
BUILD: 180331-1715
mubeen
 
Posts: 116
Joined: Mon Feb 19, 2018 1:49 pm

Re: Unable to register ext after installing certbot Vici 9.0

Postby carpenox » Fri May 01, 2020 5:55 am

it should be in your crontab file....check it
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Unable to register ext after installing certbot Vici 9.0

Postby mubeen » Fri May 01, 2020 6:23 am

Yes keepalive script is indeed missing in crontab
ViciBox v.8.0.1
VERSION: 2.14-667a
BUILD: 180331-1715
mubeen
 
Posts: 116
Joined: Mon Feb 19, 2018 1:49 pm

Re: Unable to register ext after installing certbot Vici 9.0

Postby carpenox » Fri May 01, 2020 7:38 am

* * * * * /usr/share/astguiclient/ADMIN_keepalive_ALL.pl --cu3way

^---add that line to it :p
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Unable to register ext after installing certbot Vici 9.0

Postby mubeen » Fri May 01, 2020 10:15 am

Already did, Thank you for support :)
ViciBox v.8.0.1
VERSION: 2.14-667a
BUILD: 180331-1715
mubeen
 
Posts: 116
Joined: Mon Feb 19, 2018 1:49 pm

Re: Unable to register ext after installing certbot Vici 9.0

Postby carpenox » Fri May 01, 2020 11:10 am

np, glad it worked out for ya
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL


Return to Support

Who is online

Users browsing this forum: indrajeetbanerjee and 106 guests

cron