Page 1 of 1

Unable to register ext after installing certbot Vici 9.0.2

PostPosted: Fri May 01, 2020 2:12 am
by mubeen
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.

Re: Unable to register ext after installing certbot Vici 9.0

PostPosted: Fri May 01, 2020 3:15 am
by carpenox
which sockets are running? screen -ls

and show me the asterisk log as you try to login, but first enable sip debug

Re: Unable to register ext after installing certbot Vici 9.0

PostPosted: Fri May 01, 2020 3:39 am
by mubeen
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

Re: Unable to register ext after installing certbot Vici 9.0

PostPosted: Fri May 01, 2020 5:15 am
by carpenox
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

Re: Unable to register ext after installing certbot Vici 9.0

PostPosted: Fri May 01, 2020 5:48 am
by mubeen
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

Re: Unable to register ext after installing certbot Vici 9.0

PostPosted: Fri May 01, 2020 5:55 am
by carpenox
it should be in your crontab file....check it

Re: Unable to register ext after installing certbot Vici 9.0

PostPosted: Fri May 01, 2020 6:23 am
by mubeen
Yes keepalive script is indeed missing in crontab

Re: Unable to register ext after installing certbot Vici 9.0

PostPosted: Fri May 01, 2020 7:38 am
by carpenox
* * * * * /usr/share/astguiclient/ADMIN_keepalive_ALL.pl --cu3way

^---add that line to it :p

Re: Unable to register ext after installing certbot Vici 9.0

PostPosted: Fri May 01, 2020 10:15 am
by mubeen
Already did, Thank you for support :)

Re: Unable to register ext after installing certbot Vici 9.0

PostPosted: Fri May 01, 2020 11:10 am
by carpenox
np, glad it worked out for ya