It happens quite often that an endpoint becomes unavailable, and unreachable by other endpoints. Sometimes it displays this message:
Endpoint 7001 is now Unreachable
But sometimes it becomes unreachable without saying anything. And they become unavailable independently from each other, if one is available, the other one is available even if they are connecting from the same network. Also, sometimes it happens even during the call, meaning that when one of them hangs up, the server does not notice it.
I tried to check the log, but there is so much information that I don’t know what to check. I desperately need your help here, please.
I don’t know if the problem is with network or I am using wrong parameters in the configuration files. Here are some details about my asterisk server:
- AsteriskNow distribution with Asterisk 13.7.0.
- Server is running on a public ip
- Clients are behind NAT
pjsip.endpoint_custom.conf
[7001] type=endpoint aors=7001 auth=7001-auth allow=ulaw,alaw,gsm,g726,g722,g729,g723,slin context=from-internal callerid=User dtmf_mode=rfc4733 transport=0.0.0.0-udp use_avpf=no ice_support=no media_use_received_transport=no trust_id_inbound=yes send_pai=yes rtp_symmetric=yes rewrite_contact=yes message_context=astsms
pjsip.aor_custom.conf
[7001] type=aor mailboxes=7001@device max_contacts=1 remove_existing=yes
Thank you so much!