Hello everyone!
I will really appreciate your help…
I’m experiencing a problem when I set up TLS on my asterisk.
The scenario goes like this:
-The Asterisk is behind NAT.
-Phone A is in the same network as the Asterisk server.
-Phone B is directly connected to internet and has a public ip address.
I can call from A to B and from B to A. I have two-way audio. Everything works fine.
If phone B hangs up, phone A gets automatically disconnected from the call (that’s ok, isn’t it? )
The problem happens if phone A is the one who hangs up. In such a case, phone B remains connected.
If I change the setup to TCP, everything works fine. It doesn’t matter what phone hangs up first, both get disconnected.
For simplicity and troubleshooting, I disabled the firewall on the server, and setup the router to forward every port to the Asterisk server. This is a testing environment.
The following is the basic configuration of the server pjsip.conf
[simpletrans]
type=transport
protocol=tls
bind=192.168.103.13:23450
local_net=192.168.103.0/24
external_media_address=181.X.X.X (intentionally removed )
external_signaling_address=181.X.X.X (intentionally removed )
cert_file=/etc/asterisk/keys/asterisk.crt
priv_key_file=/etc/asterisk/keys/asterisk.key
method=tlsv1
[8023]
type=endpoint
context=internal
disallow=all
allow=ulaw
auth=auth8023
aors=8023
rtp_symmetric=yes
direct_media=no
[auth8023]
type=auth
auth_type=userpass
password=8023
username=8023
[8023]
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=60
[8022]
type=endpoint
context=internal
disallow=all
allow=ulaw,gsm
auth=auth8022
aors=8022
direct_media=no
rtp_symmetric=yes
[auth8022]
type=auth
auth_type=userpass
password=8022
username=8022
[8022]
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=60
Any ideas?
Also, I have another question… may be I should post it on a new topic… but… Is there any equivalence to the “externhost” parameter? I need something like that to use it on pjsip.conf.
Thanks!