I have this issue where the contacts for endpoints show status as unavailable although the softphone shows it is registered and I can make calls. When I call this extension from another side, as all contacts are unavailable none of the softphones will ring.
[105]
type = aor
max_contacts = 1
;remove_existing = yes
;rewrite_contact=yes
qualify_frequency = 60
maximum_expiration = 3600
minimum_expiration = 60
default_expiration = 120
[105]
type = auth
username = 105
password = xxxxxx
[105]
type = endpoint
dtmf_mode = rfc4733
disallow = all
allow = ulaw
allow = alaw
allow = gsm
allow = g726
allow = h264
allow = mpeg4
allow = vp8
allow = h263p
rtp_timeout = 30
timers = yes
direct_media = no
callerid = 105 <Zone_5>
send_pai = yes
use_avpf = no
named_call_group =
named_pickup_group =
tos_audio = ef
tos_video = af41
auth = 105
outbound_auth = 105
aors = 105
[140]
type = aor
max_contacts = 20
qualify_frequency = 60
maximum_expiration = 3600
minimum_expiration = 60
default_expiration = 120
;remove_existing = yes
;rewrite_contact=yes
[140]
type = auth
username = 140
password = xxx140
[140]
type = endpoint
dtmf_mode = rfc4733
allow = all
rtp_timeout = 30
timers = yes
direct_media = no
callerid = 140 <Mobile Exten 140>
send_pai = yes
auth = 140
outbound_auth = 140
aors = 140
dtmf_mode=rfc4733
media_encryption=sdes
transport = transport-tls
rtp_symmetric=yes
force_rport=yes
[141]
type = aor
max_contacts = 20
qualify_frequency = 60
maximum_expiration = 3600
minimum_expiration = 60
default_expiration = 120
;remove_existing = yes
;rewrite_contact=yes
pjsip show contacts will show
Contact: 105/sip:105@192.168.2.110:15394 d0a8053df8 Unavail 0.000
Contact: 105/sip:105@192.168.2.110:15394 d0a8053df8 Unavail 0.000
Contact: 140/sip:140@10.222.241.29:49744;transport=tls d619782f4a Unavail 0.000
Contact: 140/sip:140@10.222.241.29:49744;transport=tls d619782f4a Unavail 0.000
Contact: 140/sip:140@10.225.59.45:37053;transport=tls 5ecedd2edf Unavail 0.000
Contact: 140/sip:140@10.225.59.45:37053;transport=tls 5ecedd2edf Unavail 0.000