Иногда не проходят исходящие
Добавлено: 21 мар 2023, 13:53
Здравствуйте! Помогите советом куда копать.
У вызывающего 2-3 гудка и сброс, у принимающего абонента нет вызова вообще. Такое наблюдается иногда, примерно 20% исходящих звонков не проходят.
В логе это сопровождается Everyone is busy/congested, CHANUNAVAIL и 503 Service Unavailable.
pjsip show history
Конфиг
У вызывающего 2-3 гудка и сброс, у принимающего абонента нет вызова вообще. Такое наблюдается иногда, примерно 20% исходящих звонков не проходят.
В логе это сопровождается Everyone is busy/congested, CHANUNAVAIL и 503 Service Unavailable.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
== Setting global variable 'SIPDOMAIN' to 'my.domain.ru'
-- Executing [+79288888888@rtk3783-out:1] Dial("PJSIP/6005-0000005e", "PJSIP/+79288888888@rtk3783,30") in new stack
-- Called PJSIP/+79288888888@rtk3783
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'PJSIP/6005-0000005e' status is 'CHANUNAVAIL'
-- PJSIP/rtk-0000005d is ringing
-- PJSIP/rtk-0000005d is ringing
-- PJSIP/rtk-0000005d answered PJSIP/6003-0000005c
-- Channel PJSIP/rtk-0000005d joined 'simple_bridge' basic-bridge <f21f3015-6063-462e-813d-619863d618dc>
-- Channel PJSIP/6003-0000005c joined 'simple_bridge' basic-bridge <f21f3015-6063-462e-813d-619863d618dc>
pjsip show history
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
No. Timestamp (Dir) Address SIP Message
===== ========== ============================== ===================================
00000 1679392003 * ==> 95.167.42.116:5060 OPTIONS sip:newnames@999999.14.rt.ru SIP/2.0
00001 1679392003 * <== 95.167.42.116:5060 SIP/2.0 200 OK
00002 1679392014 * <== 192.168.1.8:35778 REGISTER sip:my.domain.ru:1111 SIP/2.0
00003 1679392014 * ==> 192.168.1.8:35778 SIP/2.0 401 Unauthorized
00004 1679392014 * <== 192.168.1.8:35778 REGISTER sip:my.domain.ru:1111 SIP/2.0
00005 1679392014 * ==> 192.168.1.8:35778 SIP/2.0 200 OK
00006 1679392014 * <== 192.168.1.8:35778 INVITE sip:+79260000000@my.domain.ru:1111 SIP/2.0
00007 1679392014 * ==> 192.168.1.8:35778 SIP/2.0 401 Unauthorized
00008 1679392014 * <== 192.168.1.8:35778 ACK sip:+79260000000@my.domain.ru:1111 SIP/2.0
00009 1679392014 * <== 192.168.1.8:35778 INVITE sip:+79260000000@my.domain.ru:1111 SIP/2.0
00010 1679392014 * ==> 192.168.1.8:35778 SIP/2.0 100 Trying
00011 1679392014 * ==> 95.167.42.116:5060 INVITE sip:+79260000000@999999.14.rt.ru SIP/2.0
00012 1679392014 * <== 95.167.42.116:5060 SIP/2.0 100 Trying
00013 1679392014 * <== 95.167.42.116:5060 SIP/2.0 403 Forbidden
00014 1679392014 * ==> 95.167.42.116:5060 ACK sip:+79260000000@999999.14.rt.ru SIP/2.0
00015 1679392014 * ==> 192.168.1.8:35778 SIP/2.0 503 Service Unavailable
00016 1679392014 * <== 192.168.1.8:35778 ACK sip:+79260000000@my.domain.ru:1111 SIP/2.0
00017 1679392016 * ==> 81.88.86.35:5060 OPTIONS sip:vpbx999999999.mangosip.ru SIP/2.0
00018 1679392016 * <== 81.88.86.35:5060 SIP/2.0 200 OK - keepalive
00019 1679392017 * <== 192.168.1.8:35552 INVITE sip:89288888888@my.domain.ru SIP/2.0
00020 1679392017 * ==> 192.168.1.8:35552 SIP/2.0 401 Unauthorized
00021 1679392017 * <== 192.168.1.8:35552 ACK sip:89288888888@my.domain.ru SIP/2.0
00022 1679392017 * <== 192.168.1.8:35552 INVITE sip:89288888888@my.domain.ru SIP/2.0
00023 1679392017 * ==> 192.168.1.8:35552 SIP/2.0 100 Trying
00024 1679392017 * ==> 95.167.42.116:5060 INVITE sip:89288888888@999999.14.rt.ru SIP/2.0
00025 1679392017 * <== 95.167.42.116:5060 SIP/2.0 100 Trying
00026 1679392017 * <== 95.167.42.116:5060 SIP/2.0 403 Forbidden
00027 1679392017 * ==> 95.167.42.116:5060 ACK sip:89288888888@999999.14.rt.ru SIP/2.0
00028 1679392017 * ==> 192.168.1.8:35552 SIP/2.0 503 Service Unavailable
00029 1679392017 * <== 192.168.1.8:35552 ACK sip:89288888888@my.domain.ru SIP/2.0
00030 1679392022 * ==> 95.167.42.116:5060 OPTIONS sip:name.username@999999.14.rt.ru SIP/2.0
00031 1679392022 * <== 95.167.42.116:5060 SIP/2.0 200 OK
Конфиг
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:1111
local_net=192.168.1.0/24
external_media_address=195.19.19.19
external_signaling_address=195.19.19.19
[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0
local_net=192.168.1.0/24
external_media_address=195.19.19.19
external_signaling_address=195.19.19.19
[webrtc_client]
type=aor
max_contacts=300
remove_existing=yes
[webrtc_client]
type=auth
auth_type=userpass
username=username
password=password
[webrtc_client]
type=endpoint
transport=transport-wss
aors=webrtc_client
auth=webrtc_client
dtls_auto_generate_cert=yes
webrtc=yes
context=default
disallow=all
allow=opus,ulaw
[6001]
type=endpoint
transport=transport-wss
context=default
disallow=all
allow=opus,ulaw
auth=6001
aors=6001
dtls_auto_generate_cert=yes
webrtc=yes
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
[6001]
type=auth
auth_type=userpass
password=password
username=6001
[6001]
type=aor
max_contacts=100
[6002]
type=endpoint
transport=transport-wss
context=default
disallow=all
allow=opus,ulaw
auth=6002
aors=6002
dtls_auto_generate_cert=yes
webrtc=yes
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
[6002]
type=auth
auth_type=userpass
password=password
username=6002
[6002]
type=aor
max_contacts=100
[6003]
type=endpoint
transport=transport-wss
context=default
disallow=all
allow=opus,ulaw
auth=6003
aors=6003
dtls_auto_generate_cert=yes
webrtc=yes
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
[6003]
type=auth
auth_type=userpass
password=bigpassword
username=6003
[6003]
type=aor
max_contacts=100
[6004]
type=endpoint
transport=transport-wss
context=default
disallow=all
allow=opus,ulaw
auth=6004
aors=6004
dtls_auto_generate_cert=yes
webrtc=yes
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
[6004]
type=auth
auth_type=userpass
password=bigpassword
username=6004
[6004]
type=aor
max_contacts=100
[6005]
type=endpoint
transport=transport-wss
;context=default
context=rtk3783-out
disallow=all
allow=opus,ulaw
auth=6005
aors=6005
dtls_auto_generate_cert=yes
webrtc=yes
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
[6005]
type=auth
auth_type=userpass
password=bigpassword
username=6005
[6005]
type=aor
max_contacts=100
[mytrunk]
type=registration
transport=transport-udp
outbound_auth=mytrunk_auth
server_uri=sip:vpbx999999999.mangosip.ru
client_uri=sip:user29@vpbx999999999.mangosip.ru
line=yes
contact_user=user29
[mytrunk_auth]
type=auth
auth_type=userpass
password=password
username=user29
[mytrunk]
type=aor
contact=sip:vpbx999999999.mangosip.ru
qualify_frequency=15
[mytrunk]
type=endpoint
context=default
disallow=all
allow=opus,ulaw
outbound_auth=mytrunk_auth
aors=mytrunk
from_user=user29
from_domain=vpbx999999999.mangosip.ru
[mytrunk-identify]
type=identify
endpoint=mytrunk
match=vpbx999999999.mangosip.ru
;;;;;;;
[rtk]
type=registration
transport=transport-udp
outbound_auth=rtk
client_uri=sip:name.username@999999.14.rt.ru
server_uri=sip:999999.14.rt.ru
retry_interval=60
expiration=120
fatal_retry_interval=5
max_retries=10000
forbidden_retry_interval=1
contact_user=rtk
line=yes
endpoint=rtk
[rtk]
type=auth
auth_type=userpass
username=name.username
password=password
[rtk]
type=aor
contact=sip:name.username@999999.14.rt.ru
qualify_frequency=30
[rtk]
type=endpoint
transport=transport-udp
context=incoming
disallow=all
allow=alaw
from_user=name.username
from_domain=999999.14.rt.ru
outbound_auth=rtk
aors=rtk
send_rpid=yes
trust_id_inbound=yes
inband_progress=yes
force_rport=yes
rtp_symmetric=yes
rewrite_contact=yes
direct_media=no
[rtk3783]
type=registration
transport=transport-udp
outbound_auth=rtk3783
client_uri=sip:newnames@999999.14.rt.ru
server_uri=sip:999999.14.rt.ru
retry_interval=60
expiration=120
fatal_retry_interval=5
max_retries=10000
forbidden_retry_interval=1
contact_user=rtk3783
line=yes
endpoint=rtk3783
[rtk3783]
type=auth
auth_type=userpass
username=newnames
password=password
[rtk3783]
type=aor
contact=sip:newnames@999999.14.rt.ru
qualify_frequency=30
[rtk3783]
type=endpoint
transport=transport-udp
context=incoming
disallow=all
allow=alaw
from_user=newnames
from_domain=999999.14.rt.ru
outbound_auth=rtk3783
aors=rtk3783
send_rpid=yes
trust_id_inbound=yes
inband_progress=yes
force_rport=yes
rtp_symmetric=yes
rewrite_contact=yes
direct_media=no