Continuing the discussion from [Zoiper SIP not able to register via remote network]

Continuing the discussion from Zoiper SIP not able to register via remote network:

Was anyone able to find out how to connect multiple client devices to one sip account on asterisk when the server is remote ?

It is not difficult, and it doesn’t matter if the pbx is remote or not.

  1. Asterisk 13 minimum required with PJSIP channel driver (or both drivers). FreePBX 12 or 13.
  2. Create a new PJSIP extension. On the advanced tab, there is a field called max contacts, where you define the maximum number of clients that are able to register to this extension.
  3. Submit and apply config. Configure clients like normal.

But,
my problem is…
I created few extensions.
Extension 201 and 200. It connected correctly from the mobile devices to the server. But after an hour or so, they disconnected and they show the message Registration failed, request timeout 408. But I have also created 2 IAX extensions for the same asterisk server. They do not time out or disconnect.

This is the entry in the pjsip.endpoint.conf file
[201]
type=endpoint
aors=201
auth=201-auth
allow=ulaw
context=from-internal
callerid=device <201>
dtmf_mode=info
use_avpf=no
ice_support=no
media_use_received_transport=no
trust_id_inbound=yes
media_encryption=no
rtp_symmetric=yes
rewrite_contact=yes
media_encryption=dtls
dtls_verify=fingerprint
dtls_cert_file=/etc/asterisk/keys/default.pem
dtls_ca_file=/etc/asterisk/keys/ca.crt

[202]
type=endpoint
aors=202
auth=202-auth
allow=ulaw
context=from-internal
callerid=device <202>
dtmf_mode=info
use_avpf=no
ice_support=no
media_use_received_transport=no
trust_id_inbound=yes
media_encryption=no
rtp_symmetric=yes
rewrite_contact=yes