Hi everyone,
I am setting up Asterisk v22. I have already configured my trunk and the endpoints which include Grandstream GXP1628 phones, but mostly Denwa DW210P and XUE S3 models. Currently, they are operating via UDP, and I want to switch them to secure TLS communication. I have already enabled TLS in Asterisk and run a few small tests, but I have some questions about the process.
-
Can I configure the phones with the main server using TLS port 5061 and the same server as the secondary option using port 5060? This way, during the migration, the phones could use either TLS or UDP, and once configuration is complete, I could simply force TLS communication via the dialplan.
-
I am having trouble configuring TLS on the Denwa DW210P phones. Even after enabling the TLS option and setting the server port to 5061, I consistently see this error message:
[Sep 22 15:41:35] WARNING[2665685]: pjproject: <?>: SSL SSL_ERROR_SSL (Handshake): Level: 0 err: <167772418> <error:0A000102:SSL routines::unsupported protocol> len: 0 peer: 192.168.xx.xx:1537
- Is it possible that these “budget” phones do not good support TLS?
- When I try to upload the
ca.crtcertificate, it ends up in the VPN section rather than the SIP TLS section; does anyone know if the certificate requires a specific filename or extension?
The configuration I have is this:
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
[transport-tls]
type=transport
protocol=tls
bind=0.0.0.0:5061
cert_file=/etc/asterisk/keys/asterisk.crt
priv_key_file=/etc/asterisk/keys/asterisk.key
ca_list_file=/etc/asterisk/keys/ca.crt
method=unspecified
cipher=ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384
verify_client=no
verify_server=no
Endpoint template:
tpl-oficina
type=endpoint
host=dynamic
context=estandar
disallow=all
allow=alaw,ulaw
dtmf_mode=rfc4733
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
trust_id_outbound=yes
language=es
media_encryption=sdes
media_encryption_optimistic=yes
media_use_received_transport=yes
send_pai=yes
send_rpid=yes
rpid_immediate=yes
send_diversion=yes
transport=
I have successfully established communication over TLS using a Grandstream phone and the Blink softphone.
I updated the firmware to version 2.3.1747.471, but it still isn’t working; it is worth noting that these phones appear to be manufactured by Fanvil and customized by Denwa.
Thank you in advance for your help.
