Project

General

Profile

Let´s Encrypt SSL problems.

Added by Marcio Mello 20 days ago

Hi, this is my scenario:
I installed v4 ISO on VirtualBox and created a custom image to upload to Digital Ocean. It´s ok and works fine. I can create a DG droplet and run GoAutoDial v4 with no problems. After I installed a SSL with cerbot Let´s Encrypt and it works ok to my domain too. I can login like goadmin and manage all. The problem is that when I login like an Agent, I can´t Login to dialer if I use the domain. When I click the button nothing happens. If I use the IP address to access, and login to Agent it works fine. Really strange.. Thanks for any tip.


Replies (9)

RE: Let´s Encrypt SSL problems. - Added by Jose Capurro 20 days ago

Try looking for errors in the Developer console in Google Chrome.

I'm fairly sure there is a problem with the Kamailio domain you are using. I got the same problem.

Remember to:
- Configure the certificates in /etc/kamailio/tls.cfg
- Set your domain in /etc/kamailio/kamailio.cfg (search for alias=")
- Set your domain in /var/www/html/php/goCRMAPISettings.php (gourl)

If those settings are not properly configured, the WebRTC connection will not be established.

RE: Let´s Encrypt SSL problems. - Added by Marcio Mello 20 days ago

Thanks!

I´m checking all these files now.

RE: Let´s Encrypt SSL problems. - Added by Marcio Mello 19 days ago

Hello,

It was going fine,,, after the changes logging into an agent I can click on Login to Dialer and select the Campaign but it goes to "Login in to your phone,, please wait" forever.

I checked the kamailio status and it was:
kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server
Loaded: loaded (/usr/lib/systemd/system/kamailio.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Wed 2018-11-21 02:16:55 PST; 4min 49s ago
Process: 1531 ExecStart=/usr/sbin/kamailio -DD -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY (code=exited, status=255)
Main PID: 1531 (code=exited, status=255)

Can´t restart kamailio service .. any idea?

Thanks!

RE: Let´s Encrypt SSL problems. - Added by Marcio Mello 19 days ago

And... from the Chrome console..

jssip-3.0.13.js:21334 WebSocket connection to 'wss://209.97.145.53:4443/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

Thanks!

RE: Let´s Encrypt SSL problems. - Added by Jose Capurro 18 days ago

So, the problem is with Kamailio not running.

Check your /etc/kamailio/kamailio.cfg.

At the start of the file, you will see some lines beginning with #!define ...

Under #!define WITH_ANTIFLOOD, put a new one: #!define WITH_DEBUG.

Then, restart Kamailio with systemctl restart kamailio.

Finally, post the output of journalctl -m -n 200 -t /usr/sbin/kamailio.

You can redirect the output of journalctl with >, like this:

journalctl -m -n 200 -t /usr/sbin/kamailio > kamailio.txt

RE: Let´s Encrypt SSL problems. - Added by Marcio Mello 18 days ago

Ok, here is the output.

Please note that the IP is different, because of a new install. Thanks!

[root@callcenterflex ~]# journalctl m -n 200 -t /usr/sbin/kamailio
-
Logs begin at Thu 2018-11-22 18:44:13 PST, end at Thu 2018-11-22 22:19:14 PST. --
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 1
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2868]: fix_rval(): RV is int: 5
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 2
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2872]: fix_rval(): RV is str: "Use-Path: msrps://142.93.79.210:9080/"
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 7
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:3559]: rve_optimize(): FIXUP RVE (1331,16-1332,19): changed + into string
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 2
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: [67B blob data]
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:3559]: rve_optimize(): FIXUP RVE (1331,16-1332,32): changed + into string
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 2
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2872]: fix_rval(): RV is str: "Expires: "
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:3559]: rve_optimize(): FIXUP RVE (1331,16-1333,18): changed + into string
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: [153B blob data]
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 7
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:3559]: rve_optimize(): FIXUP RVE (1331,16-1333,34): changed + into string
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 2
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: [63B blob data]
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:3559]: rve_optimize(): FIXUP RVE (1331,16-1333,43): changed + into string
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/route.c:872]: fix_actions(): fixing msrp_reply()
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/pvapi.c:321]: pv_cache_lookup(): pvar [$var(hdrs)] found in cache
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 7
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 2
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2872]: fix_rval(): RV is str: "SEND"
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 7
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 2
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2872]: fix_rval(): RV is str: "REPORT"
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 7
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 1
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2868]: fix_rval(): RV is int: 1
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 7
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 2
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2872]: fix_rval(): RV is str: "REPORT"
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/route.c:872]: fix_actions(): fixing msrp_reply()
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/route.c:872]: fix_actions(): fixing msrp_relay()
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 7
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 7
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/route.c:872]: fix_actions(): fixing msrp_reply()
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 7
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2864]: fix_rval(): RV fixing type 2
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/rvalue.c:2872]: fix_rval(): RV is str: "REPORT"
Nov 22 22:19:14 callcenterflex.com.br /usr/sbin/kamailio23555: DEBUG: <core> [core/route.c:872]: fix_actions(): fixing msrp_reply()

RE: Let´s Encrypt SSL problems. - Added by Marcio Mello 18 days ago

More info...

If I return my tls.cfg to

[server:default]
method = TLSv1
verify_certificate = no
require_certificate = no
private_key = /etc/pki/tls/private/localhost.key
certificate = /etc/pki/tls/certs/localhost.crt

Then Kamailio starts and the debug is:

-- Logs begin at Thu 2018-11-22 22:36:54 PST, end at Thu 2018-11-22 22:39:43 PST. --
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/parser/parse_via.c:2639]: parse_via(): end of header reached, state=5
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/parser/msg_parser.c:491]: parse_headers(): Via found, flags=2
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/parser/msg_parser.c:493]: parse_headers(): this is the first via
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/parser/parse_addr_spec.c:864]: parse_addr_spec(): end of header reached, state=10
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/parser/msg_parser.c:171]: get_hdr_field(): <To> [31]; uri=[sip:vaglxc01.goautodial.c
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: [104B blob data]
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/parser/msg_parser.c:152]: get_hdr_field(): cseq <CSeq>: <102> <OPTIONS>
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/receive.c:191]: receive_msg(): --- received sip message - request - call-id: [1120f7
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/receive.c:234]: receive_msg(): preparing to run routing scripts...
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: exec: * cfgtrace:request_route=[DEFAULT_ROUTE] c=[/etc/kamailio/kamailio.cfg] l=585 a=5 n=route
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: exec:
cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=781 a=16 n=if
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:564]: grep_sock_info(): checking if host==us: 9==9 && [127.0.0.1] == [
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: exec:
cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=787 a=16 n=if
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: exec:
cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=792 a=16 n=if
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: exec:
cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=787 a=25 n=mf_process_maxfwd
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: maxfwd [mf_funcs.c:76]: is_maxfwd_present(): value = 70
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: exec:
cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=797 a=16 n=if
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: exec:
cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=792 a=25 n=is_method
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:564]: grep_sock_info(): checking if host==us: 23==9 && [vaglxc01.goaut
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:567]: grep_sock_info(): checking if port 5060 (advertise 0) matches po
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:564]: grep_sock_info(): checking if host==us: 23==13 && [vaglxc01.goau
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:567]: grep_sock_info(): checking if port 5060 (advertise 0) matches po
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:564]: grep_sock_info(): checking if host==us: 23==13 && [vaglxc01.goau
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:567]: grep_sock_info(): checking if port 5060 (advertise 0) matches po
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:564]: grep_sock_info(): checking if host==us: 23==13 && [vaglxc01.goau
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:567]: grep_sock_info(): checking if port 8080 (advertise 0) matches po
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:564]: grep_sock_info(): checking if host==us: 23==13 && [vaglxc01.goau
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:567]: grep_sock_info(): checking if port 5061 (advertise 0) matches po
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:564]: grep_sock_info(): checking if host==us: 23==13 && [vaglxc01.goau
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:567]: grep_sock_info(): checking if port 4443 (advertise 0) matches po
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:564]: grep_sock_info(): checking if host==us: 23==13 && [vaglxc01.goau
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/socket_info.c:567]: grep_sock_info(): checking if port 9080 (advertise 0) matches po
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: exec:
cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=793 a=26 n=sl_send_reply
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/parser/msg_parser.c:183]: get_hdr_field(): content_length=0
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/parser/msg_parser.c:89]: get_hdr_field(): found end of header
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: exec: *
* cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=794 a=2 n=exit
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/receive.c:275]: receive_msg(): request-route executed in: 974 usec
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/usr_avp.c:631]: destroy_avp_list(): destroying list (nil)
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/usr_avp.c:631]: destroy_avp_list(): destroying list (nil)
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/usr_avp.c:631]: destroy_avp_list(): destroying list (nil)
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/usr_avp.c:631]: destroy_avp_list(): destroying list (nil)
Nov 22 22:38:21 callcenterflex.com.br /usr/sbin/kamailio1545: DEBUG: <core> [core/usr_avp.c:631]: destroy_avp_list(): destroying list (nil)

Thanks!

RE: Let´s Encrypt SSL problems. - Added by Marcio Mello 18 days ago

Uops!! I think this is solved.

sudo chmod go+x /etc/letsencrypt/archive
sudo chmod go+x /etc/letsencrypt/live

It couldn´t read the cert files because of permissions. Now Kamailio is running.

Thank you very much.

RE: Let´s Encrypt SSL problems. - Added by Demian Biscocho 13 days ago

Great to hear that it's working now.

    (1-9/9)
    Go to top