Delay in call issue

delay in connection to the asterisk.
it is our pjsip.conf file

[global]
max_forwards=70
ignore_uri_user_options=yes

[system-udp]
type=transport
protocol=udp
bind=0.0.0.0
local_net=<sip_net_ip>



[+97715970214_incomming]
type = endpoint
context = incomming
;dtmfmode=rfc8233
dtmf_mode = rfc4733
transport = system-udp
disallow = all
allow = ulaw,alaw
rtp_symmetric = yes
outbound_proxy = sip:<sip_net_ip>:5060\;lr
from_user = <sip_net_number>
from_domain = <sip_net_ip>
outbound_auth = <sip_net_number>
aors = <sip_net_number>
user_eq_phone = yes

[<sip_net_number>_outgoing]
type = endpoint
context = outgoing
;dtmfmode=rfc8233
dtmf_mode = rfc4733
transport = system-udp
disallow = all
allow = ulaw,alaw
rtp_symmetric = yes
outbound_proxy = sip:<sip_net_ip>:5060\;lr
from_user = <sip_net_number>
from_domain = <sip_net_ip>
outbound_auth = <sip_net_number>
aors = <sip_net_number>
user_eq_phone = yes

[<sip_net_number>]
type = aor
max_contacts=10
contact=sip:<sip_net_number>@<sip_net_endpoint>:5060\;lr
outbound_proxy=sip:<sip_net_ip>:5060
qualify_frequency=30
support_path=yes

[<sip_net_number>]
type = identify
endpoint = <sip_net_number>_incomming
match = <sip_net_ip>

[<sip_net_endpoint>]
type = registration
retry_interval = 20
max_retries = 10
contact_user = <sip_net_number>
expiration = 120
transport = system-udp
outbound_auth = <sip_net_number>
client_uri = sip:<sip_net_number>@<sip_net_endpoint>
server_uri = sip:<sip_net_number>:5060

[<sip_net_number>]
type = auth
username = <sip_net_number>@<sip_net_endpoint>
password = <sip_net_password>



[wss_transport]
type=transport
protocol=wss
bind=0.0.0.0

[tcp_transport]
type=transport
protocol=tcp
bind=0.0.0.0

[tls_transport]
type=transport
protocol=tls
bind=0.0.0.0
cert_file=/home/certs/fullchain.cer
priv_key_file=/home/certs/app.asterisk.com.key
cipher=ADH-AES256-SHA,ADH-AES128-SHA
method=tlsv1

; == ACL

[acl] ; Opperates on all pjsip traffic (can also be in acl.conf)
type=acl
permit=0.0.0.0/0.0.0.0
permit=10.0.0.0/255.0.0.0
permit=172.16.0.0/255.240.0.0
permit=192.168.0.0/255.255.0.0
permit=181.223.98.182/255.255.255.0
; == Templates

[single_aor](!)
max_contacts=2
qualify_frequency=15
remove_existing=yes

[userpass_auth](!)
auth_type=userpass

[basic_endpoint](!)
moh_suggest=default
context=from-extensions
inband_progress=no
rtp_timeout=120
message_context=textmessages
allow_subscribe=yes
subscribe_context=subscriptions
direct_media=no
dtmf_mode=rfc4733
device_state_busy_at=1
disallow=all

[phone_endpoint](!)
allow=ulaw,alaw,g722,gsm,vp9,vp8,h264

[webrtc_endpoint](!)
transport=wss_transport
allow=alaw,opus,ulaw,vp9,vp8,h264
webrtc=yes
use_avpf=yes
media_encryption=dtls
dtls_verify=fingerprint
dtls_setup=actpass
ice_support=yes
media_use_received_transport=yes
rtcp_mux=yes
;dtls_cert_file= /home/certs/fullchain.cer
;dtls_priv_key= /home/certs/app.aakashtel.com.key
;dtls_ca_file= /home/certs/ca.cer
#include /home/projects/user.conf

while watching in wireshark the connection is also establishing after some time , as the connection is established the call is being done .

we have used jssip and while looking at jssip log


here in the log upto createLocalDescription it runs at a while while making call but it takes around 40s to make JsSIP:RTCSession emit “sdp”

Presumably multiple DNS timeouts trying to build the ICE data. Not an Asterisk problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.