Thanks for your comment and sorry about lacking information
1. “pjsip show endpoints” (realtime ODBC mysql)
before connect the device from zoiper client
Endpoint: 11000000000000032 Unavailable 0 of inf
InAuth: 11000000000000032/11000000000000032
Aor: 11000000000000032 2
Transport: transport-udp udp 0 0 0.0.0.0:5060
after connect the device from zoiper client(not Endpoint so status is Unavailable)
Endpoint: 11000000000000032 Unavailable 0 of inf
InAuth: 11000000000000032/11000000000000032
Aor: 11000000000000032 2
Contact: 11000000000000032/sip:11000000000000032@10 74f71b3d17 NonQual nan
Transport: transport-udp udp 0 0 0.0.0.0:5060
while telephoning(the device is able to call even the status is Unavailable
)
Endpoint: 11000000000000034 In use 1 of inf
InAuth: 11000000000000034/11000000000000034
Aor: 11000000000000034 2
Contact: 11000000000000034/sip:11000000000000034@10 239164e147 NonQual nan
Transport: transport-udp udp 0 0 0.0.0.0:5060
Channel: PJSIP/11000000000000034-0000000b/AppDial Up 00:00:18
Exten: CLCID: "" <11000000000000030>
- after finishing the phone call, the status become Unavailable again even the device is connected as contact.
after execute pjsip reload
(status is Not in use
. works well)
Endpoint: 11000000000000032 Not in use 0 of inf
InAuth: 11000000000000032/11000000000000032
Aor: 11000000000000032 2
Contact: 11000000000000032/sip:11000000000000032@10 74f71b3d17 NonQual nan
Transport: transport-udp udp 0 0 0.0.0.0:5060
2. “pjsip show contacts” (realtime ODBC mysql)
before connect the device from zoiper client
after connect the device from zoiper client
Contact: <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================
Contact: 11000000000000032/sip:11000000000000032@xxx.xx 74f71b3d17 NonQual nan
after execute pjsip reload
Contact: <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================
Contact: 11000000000000032/sip:11000000000000032@xxx.xx 74f71b3d17 NonQual nan
3. If I use pjsip.conf for registering endpoint(not realtime)
before connect the device from zoiper client
Endpoint: 6001 Unavailable 0 of inf
InAuth: 6001/6001
Aor: 6001 10
after connect the device from zoiper client(status is Not in use
. works well)
Endpoint: 6001 Not in use 0 of inf
InAuth: 6001/6001
Aor: 6001 10
Contact: 6001/sip:6001@106.73.2.65:11302;rinstance= 9ceabcfc3e NonQual nan
So, if we use pjsip.conf, it works well even if I use android zoiper client. so the problem is realtime(mysql ODBC) with Android Zoiper client I guess.
Other Logs, Settigns:
pjsip reload log
Module 'res_pjsip.so' reloaded successfully.
Module 'res_pjsip_authenticator_digest.so' reloaded successfully.
Module 'res_pjsip_endpoint_identifier_ip.so' reloaded successfully.
Module 'res_pjsip_mwi.so' reloaded successfully.
Module 'res_pjsip_notify.so' reloaded successfully.
Module 'res_pjsip_outbound_publish.so' reloaded successfully.
Module 'res_pjsip_publish_asterisk.so' reloaded successfully.
Module 'res_pjsip_outbound_registration.so' reloaded successfully.
-- Reloading module 'res_pjsip.so' (Basic SIP resource)
[2021-01-26 01:43:11] NOTICE[26684]: sorcery.c:1345 sorcery_object_load: Type 'system' is not reloadable, maintaining previous values
== Endpoint 11000000000000032 is now Reachable
-- Reloading module 'res_pjsip_authenticator_digest.so' (PJSIP authentication resource)
-- Reloading module 'res_pjsip_endpoint_identifier_ip.so' (PJSIP IP endpoint identifier)
-- Reloading module 'res_pjsip_mwi.so' (PJSIP MWI resource)
-- Reloading module 'res_pjsip_notify.so' (CLI/AMI PJSIP NOTIFY Support)
-- Reloading module 'res_pjsip_outbound_publish.so' (PJSIP Outbound Publish Support)
-- Reloading module 'res_pjsip_publish_asterisk.so' (PJSIP Asterisk Event PUBLISH Support)
-- Reloading module 'res_pjsip_outbound_registration.so' (PJSIP Outbound Registration Support)
- while pjsip reloading
res_pjsip.so
, Endpoint 11000000000000032 is now Reachable
log is comming.
Endpoint setting detail
pjsip show endpoint 11000000000000032
Endpoint: <Endpoint/CID.....................................> <State.....> <Channels.>
I/OAuth: <AuthId/UserName...........................................................>
Aor: <Aor............................................> <MaxContact>
Contact: <Aor/ContactUri..........................> <Hash....> <Status> <RTT(ms)..>
Transport: <TransportId........> <Type> <cos> <tos> <BindAddress..................>
Identify: <Identify/Endpoint.........................................................>
Match: <criteria.........................>
Channel: <ChannelId......................................> <State.....> <Time.....>
Exten: <DialedExten...........> CLCID: <ConnectedLineCID.......>
==========================================================================================
Endpoint: 11000000000000032 Unavailable 0 of inf
InAuth: 11000000000000032/11000000000000032
Aor: 11000000000000032 2
Transport: transport-udp udp 0 0 0.0.0.0:5060
ParameterName : ParameterValue
===================================================================================================
100rel : yes
accept_multiple_sdp_answers : false
accountcode :
acl :
aggregate_mwi : true
allow : (speex|ulaw)
allow_overlap : true
allow_subscribe : true
allow_transfer : true
aors : 11000000000000032
asymmetric_rtp_codec : false
auth : 11000000000000032
bind_rtp_to_media_address : false
bundle : false
call_group :
callerid : <unknown>
callerid_privacy : allowed_not_screened
callerid_tag :
codec_prefs_incoming_answer : prefer:pending, operation:intersect, keep:all, transcode:allow
codec_prefs_incoming_offer : prefer:pending, operation:intersect, keep:all, transcode:allow
codec_prefs_outgoing_answer : prefer:pending, operation:intersect, keep:all, transcode:allow
codec_prefs_outgoing_offer : prefer:pending, operation:union, keep:all, transcode:allow
connected_line_method : invite
contact_acl :
context : rc_user
cos_audio : 0
cos_video : 0
device_state_busy_at : 0
direct_media : false
direct_media_glare_mitigation : none
direct_media_method : invite
disable_direct_media_on_nat : false
dtls_auto_generate_cert : No
dtls_ca_file :
dtls_ca_path :
dtls_cert_file :
dtls_cipher :
dtls_fingerprint : SHA-256
dtls_private_key :
dtls_rekey : 0
dtls_setup : active
dtls_verify : No
dtmf_mode : rfc4733
fax_detect : false
fax_detect_timeout : 0
follow_early_media_fork : true
force_avp : false
force_rport : true
from_domain :
from_user :
g726_non_standard : false
ice_support : false
identify_by : username,ip
ignore_183_without_sdp : false
inband_progress : false
incoming_call_offer_pref : local
incoming_mwi_mailbox :
language :
mailboxes :
max_audio_streams : 1
max_video_streams : 1
media_address :
media_encryption : no
media_encryption_optimistic : false
media_use_received_transport : false
message_context :
moh_passthrough : false
moh_suggest : default
mwi_from_user :
mwi_subscribe_replaces_unsolicited : no
named_call_group :
named_pickup_group :
notify_early_inuse_ringing : false
one_touch_recording : false
outbound_auth :
outbound_proxy :
outgoing_call_offer_pref : remote_merge
pickup_group :
preferred_codec_only : false
record_off_feature : automixmon
record_on_feature : automixmon
refer_blind_progress : true
rewrite_contact : true
rpid_immediate : false
rtcp_mux : false
rtp_engine : asterisk
rtp_ipv6 : false
rtp_keepalive : 0
rtp_symmetric : true
rtp_timeout : 0
rtp_timeout_hold : 0
sdp_owner : -
sdp_session : Asterisk
send_connected_line : yes
send_diversion : true
send_history_info : false
send_pai : false
send_rpid : false
set_var :
srtp_tag_32 : false
stir_shaken : false
sub_min_expiry : 0
subscribe_context :
suppress_q850_reason_headers : false
t38_udptl : false
t38_udptl_ec : none
t38_udptl_ipv6 : false
t38_udptl_maxdatagram : 0
t38_udptl_nat : false
timers : yes
timers_min_se : 90
timers_sess_expires : 1800
tone_zone :
tos_audio : 0
tos_video : 0
transport : transport-udp
trust_connected_line : yes
trust_id_inbound : false
trust_id_outbound : false
use_avpf : false
use_ptime : false
user_eq_phone : false
voicemail_extension :
webrtc : no
transport-udp
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
local_net=172.31.0.0/16
external_media_address=xx.xx.xx.xx
external_signaling_address=xx.xx.xx.xx