VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

pjsip с провайдером westcall. Проблема с входящими.

Проблемы Asterisk без вэб-оболочек и их решения

Модераторы: april22, Zavr2008

Ответить
stamnik
Сообщения: 2
Зарегистрирован: 21 фев 2026, 10:48

pjsip с провайдером westcall. Проблема с входящими.

Сообщение stamnik »

Добрый день всем,

Пытаюсь подключить провайдера Westcall к asterisk 22 FreePBX17. Вроде всё красиво подключается. Исходящие работают отлично, вопросов нет. А вот с входящими беда. Астериск возвращает 401 Unauthorized. У них на сайте есть инструкция как подключиться, но только к chan_sip. У меня, естественно, такого уже нет. Настраиваю транк через веб. Ниже выложил всю конфигурацию и сип дамп. Ткните, пожалуйста, что я упускаю. Заранее спасибо.

P.S. Извините за портянки, но почему-то здесь BBCode не работает.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Настройки pjsip.conf
[WestCall-74951234567]
type=aor
qualify_frequency=60
contact=sip:98765@195.94.244.244:5060

[WestCall-74951234567]
type=auth
auth_type=userpass
password=superpassword
username=98765

[WestCall-74951234567]
type=endpoint
transport=0.0.0.0-udp
context=from-74951234567
disallow=all
allow=alaw,ulaw
aors=WestCall-74951234567
send_connected_line=no
rtp_keepalive=0
language=ru
outbound_auth=WestCall-74951234567
from_domain=195.94.244.244
from_user=98765
contact_user=74951234567
user_eq_phone=no
t38_udptl=yes
t38_udptl_ec=redundancy
fax_detect=no
trust_id_inbound=yes
t38_udptl_nat=no
t38_udptl_maxdatagram=400
send_pai=yes
identify_by=username
direct_media=no
rewrite_contact=yes
rtp_symmetric=yes
dtmf_mode=rfc4733

[WestCall-74951234567]
type=identify
endpoint=WestCall-74951234567
match=195.94.244.244/32

[WestCall-74951234567]
type=registration
transport=0.0.0.0-udp
outbound_auth=WestCall-74951234567
retry_interval=60
fatal_retry_interval=30
forbidden_retry_interval=30
max_retries=10000
expiration=360
auth_rejection_permanent=no
line=yes
endpoint=WestCall-74951234567
contact_user=74951234567
server_uri=sip:195.94.244.244:5060
client_uri=sip:98765@195.94.244.244:5060
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: pjsip show registration
<Registration/ServerURI..............................> <Auth....................> <Status.......>
==========================================================================================

WestCall-74951234567/sip:195.94.244.244:5060 WestCall-74951234567 Registered (exp. 69s)

ParameterName : ParameterValue
========================================================
auth_rejection_permanent : false
client_uri : sip:98765@195.94.244.244:5060
contact_header_params :
contact_user : 74951234567
endpoint : WestCall-74951234567
expiration : 360
fatal_retry_interval : 30
forbidden_retry_interval : 30
line : true
max_random_initial_delay : 10
max_retries : 10000
outbound_auth : WestCall-74951234567
outbound_proxy :
retry_interval : 60
security_negotiation : no
server_uri : sip:195.94.244.244:5060
support_outbound : no
support_path : false
transport : 0.0.0.0-udp
user_agent :
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: pjsip show contact
pjsip show contact WestCall-74951234567/sip:98765@195.94.244.244:5060

Contact: <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================

Contact: WestCall-74951234567/sip:98765@195.94.244.244: 906c87804a Avail 9.823

ParameterName : ParameterValue
====================================================
authenticate_qualify : no
call_id :
endpoint :
expiration_time : 0
outbound_proxy :
path :
prune_on_boot : no
qualify_2xx_only : false
qualify_frequency : 0
qualify_timeout : 3.000000
reg_server :
uri : sip:98765@195.94.244.244:5060
user_agent :
via_addr :
via_port : 0
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: pjsip show endpoint
pjsip show endpoint WestCall-74951234567

Endpoint: WestCall-74951234567 Not in use 0 of inf
OutAuth: WestCall-74951234567/98765
Aor: WestCall-74951234567 0
Contact: WestCall-74951234567/sip:98765@195.94.224. 906c87804a Avail 10.566
Transport: 0.0.0.0-udp udp 3 96 0.0.0.0:5060
Identify: WestCall-74951234567/WestCall-74951234567
Match: 195.94.244.244/32


ParameterName : ParameterValue
===================================================================================================
100rel : yes
accept_multiple_sdp_answers : false
accountcode :
acl :
aggregate_mwi : true
allow : (alaw|ulaw)
allow_overlap : true
allow_subscribe : true
allow_transfer : true
allow_unauthenticated_options : false
aors : WestCall-74951234567
asymmetric_rtp_codec : false
auth :
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 :
contact_user : 74951234567
context : from-74951234567
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 : 195.94.244.244
from_user : 98765
g726_non_standard : false
geoloc_incoming_call_profile :
geoloc_outgoing_call_profile :
ice_support : false
identify_by : username
ignore_183_without_sdp : false
inband_progress : false
incoming_call_offer_pref : local
incoming_mwi_mailbox :
language : ru
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 : WestCall-74951234567
outbound_proxy :
outgoing_call_offer_pref : remote_merge
overlap_context :
pickup_group :
preferred_codec_only : false
record_off_feature : automixmon
record_on_feature : automixmon
redirect_method : user
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
security_negotiation : no
send_aoc : false
send_connected_line : no
send_diversion : true
send_history_info : false
send_pai : true
send_rpid : false
set_var :
srtp_tag_32 : false
stir_shaken : no
stir_shaken_profile :
sub_min_expiry : 0
subscribe_context :
suppress_moh_on_sendonly : false
suppress_q850_reason_headers : false
t38_bind_udptl_to_media_address : false
t38_udptl : true
t38_udptl_ec : redundancy
t38_udptl_ipv6 : false
t38_udptl_maxdatagram : 400
t38_udptl_nat : false
tenantid :
timers : yes
timers_min_se : 90
timers_sess_expires : 1800
tone_zone :
tos_audio : 0
tos_video : 0
transport : 0.0.0.0-udp
trust_connected_line : yes
trust_id_inbound : true
trust_id_outbound : false
use_avpf : false
use_ptime : false
user_eq_phone : false
voicemail_extension :
webrtc : no
Вот дамп на исходящие звонки. Почему-то не авторизует. Что-то я упускаю.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: SIP dump INVITE
<--- Received SIP request (1043 bytes) from UDP:195.94.244.244:5060 --->
INVITE sip:74951234567@10.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 195.94.244.244:5060;branch=z9hG4bK60a62159;rport
Max-Forwards: 70
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1:5060>
Contact: <sip:+74997654321@195.94.244.244>
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
CSeq: 102 INVITE
User-Agent: WC SoftSwitch 2.1
Remote-Party-ID: "4997654321" <sip:+74997654321@195.94.244.244>;privacy=off;screen=yes
Date: Sat, 21 Feb 2026 08:33:42 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
P-Asserted-Identity: <sip:+74997654321@127.0.0.1>
Content-Type: application/sdp
Content-Length: 317

v=0
o=wc_ss_v21 1642294282 1642294282 IN IP4 195.94.244.244
s=WC SoftSwitch 2.1
c=IN IP4 195.94.244.244
t=0 0
m=audio 15630 RTP/AVP 8 9 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

<--- Transmitting SIP response (520 bytes) to UDP:195.94.244.244:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 195.94.244.244:5060;rport=5060;received=195.94.244.244;branch=z9hG4bK60a62159
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1>;tag=z9hG4bK60a62159
CSeq: 102 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1771662822/baff3f0e662674e67f49a88d0cbb3af1",opaque="05a8b8681ec1e227",algorithm=MD5,qop="auth"
Server: FPBX-17.0.24(22.6.0)
Content-Length: 0


<--- Received SIP request (517 bytes) from UDP:195.94.244.244:5060 --->
ACK sip:74951234567@10.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 195.94.244.244:5060;branch=z9hG4bK60a62159;rport
Max-Forwards: 70
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1:5060>;tag=z9hG4bK60a62159
Contact: <sip:+74997654321@195.94.244.244>
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
CSeq: 102 ACK
User-Agent: WC SoftSwitch 2.1
Remote-Party-ID: "4997654321" <sip:+74997654321@195.94.244.244>;privacy=off;screen=yes
Content-Length: 0


<--- Received SIP request (1325 bytes) from UDP:195.94.244.244:5060 --->
INVITE sip:74951234567@10.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 195.94.244.244:5060;branch=z9hG4bK02874a59;rport
Max-Forwards: 70
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1:5060>
Contact: <sip:+74997654321@195.94.244.244>
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
CSeq: 103 INVITE
User-Agent: WC SoftSwitch 2.1
Remote-Party-ID: "4997654321" <sip:+74997654321@195.94.244.244>;privacy=off;screen=yes
Authorization: Digest username="98765", realm="asterisk", algorithm=MD5, uri="sip:74951234567@195.2.166.166:5060", nonce="1771662822/baff3f0e662674e67f49a88d0cbb3af1", response="dd5da5e66d5d63e0b397af34cb0e803e", opaque="05a8b8681ec1e227", qop=auth, cnonce="20d9096e", nc=00000001
Date: Sat, 21 Feb 2026 08:33:42 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
P-Asserted-Identity: <sip:+74997654321@127.0.0.1>
Content-Type: application/sdp
Content-Length: 317

v=0
o=wc_ss_v21 1642294282 1642294283 IN IP4 195.94.244.244
s=WC SoftSwitch 2.1
c=IN IP4 195.94.244.244
t=0 0
m=audio 15630 RTP/AVP 8 9 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

[2026-02-21 11:33:42] NOTICE[881378]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'INVITE' from '"4997654321" <sip:+74997654321@195.94.244.244>' failed for '195.94.244.244:5060' (callid: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244) - Failed to authenticate
<--- Transmitting SIP response (520 bytes) to UDP:195.94.244.244:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 195.94.244.244:5060;rport=5060;received=195.94.244.244;branch=z9hG4bK02874a59
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1>;tag=z9hG4bK02874a59
CSeq: 103 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1771662822/baff3f0e662674e67f49a88d0cbb3af1",opaque="365ce26349728553",algorithm=MD5,qop="auth"
Server: FPBX-17.0.24(22.6.0)
Content-Length: 0


<--- Received SIP request (517 bytes) from UDP:195.94.244.244:5060 --->
ACK sip:74951234567@10.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 195.94.244.244:5060;branch=z9hG4bK02874a59;rport
Max-Forwards: 70
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1:5060>;tag=z9hG4bK02874a59
Contact: <sip:+74997654321@195.94.244.244>
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
CSeq: 103 ACK
User-Agent: WC SoftSwitch 2.1
Remote-Party-ID: "4997654321" <sip:+74997654321@195.94.244.244>;privacy=off;screen=yes
Content-Length: 0


<--- Received SIP request (1325 bytes) from UDP:195.94.244.244:5060 --->
INVITE sip:74951234567@10.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 195.94.244.244:5060;branch=z9hG4bK2d72ac52;rport
Max-Forwards: 70
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1:5060>
Contact: <sip:+74997654321@195.94.244.244>
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
CSeq: 104 INVITE
User-Agent: WC SoftSwitch 2.1
Remote-Party-ID: "4997654321" <sip:+74997654321@195.94.244.244>;privacy=off;screen=yes
Authorization: Digest username="98765", realm="asterisk", algorithm=MD5, uri="sip:74951234567@195.2.166.166:5060", nonce="1771662822/baff3f0e662674e67f49a88d0cbb3af1", response="0baeacaa70e23c37a891c76092d649d9", opaque="365ce26349728553", qop=auth, cnonce="07aaedb6", nc=00000002
Date: Sat, 21 Feb 2026 08:33:42 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
P-Asserted-Identity: <sip:+74997654321@127.0.0.1>
Content-Type: application/sdp
Content-Length: 317

v=0
o=wc_ss_v21 1642294282 1642294284 IN IP4 195.94.244.244
s=WC SoftSwitch 2.1
c=IN IP4 195.94.244.244
t=0 0
m=audio 15630 RTP/AVP 8 9 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

[2026-02-21 11:33:42] NOTICE[881378]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'INVITE' from '"4997654321" <sip:+74997654321@195.94.244.244>' failed for '195.94.244.244:5060' (callid: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244) - Failed to authenticate
<--- Transmitting SIP response (520 bytes) to UDP:195.94.244.244:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 195.94.244.244:5060;rport=5060;received=195.94.244.244;branch=z9hG4bK2d72ac52
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1>;tag=z9hG4bK2d72ac52
CSeq: 104 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1771662822/baff3f0e662674e67f49a88d0cbb3af1",opaque="729a2d0b40eaf230",algorithm=MD5,qop="auth"
Server: FPBX-17.0.24(22.6.0)
Content-Length: 0


<--- Received SIP request (517 bytes) from UDP:195.94.244.244:5060 --->
ACK sip:74951234567@10.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 195.94.244.244:5060;branch=z9hG4bK2d72ac52;rport
Max-Forwards: 70
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1:5060>;tag=z9hG4bK2d72ac52
Contact: <sip:+74997654321@195.94.244.244>
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
CSeq: 104 ACK
User-Agent: WC SoftSwitch 2.1
Remote-Party-ID: "4997654321" <sip:+74997654321@195.94.244.244>;privacy=off;screen=yes
Content-Length: 0


<--- Received SIP request (1325 bytes) from UDP:195.94.244.244:5060 --->
INVITE sip:74951234567@10.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 195.94.244.244:5060;branch=z9hG4bK7df2ebe2;rport
Max-Forwards: 70
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1:5060>
Contact: <sip:+74997654321@195.94.244.244>
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
CSeq: 105 INVITE
User-Agent: WC SoftSwitch 2.1
Remote-Party-ID: "4997654321" <sip:+74997654321@195.94.244.244>;privacy=off;screen=yes
Authorization: Digest username="98765", realm="asterisk", algorithm=MD5, uri="sip:74951234567@195.2.166.166:5060", nonce="1771662822/baff3f0e662674e67f49a88d0cbb3af1", response="015e1ef2eca2b4270c030f72646de582", opaque="729a2d0b40eaf230", qop=auth, cnonce="0fb9befa", nc=00000003
Date: Sat, 21 Feb 2026 08:33:42 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
P-Asserted-Identity: <sip:+74997654321@127.0.0.1>
Content-Type: application/sdp
Content-Length: 317

v=0
o=wc_ss_v21 1642294282 1642294285 IN IP4 195.94.244.244
s=WC SoftSwitch 2.1
c=IN IP4 195.94.244.244
t=0 0
m=audio 15630 RTP/AVP 8 9 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

[2026-02-21 11:33:43] NOTICE[881378]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'INVITE' from '"4997654321" <sip:+74997654321@195.94.244.244>' failed for '195.94.244.244:5060' (callid: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244) - Failed to authenticate
<--- Transmitting SIP response (520 bytes) to UDP:195.94.244.244:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 195.94.244.244:5060;rport=5060;received=195.94.244.244;branch=z9hG4bK7df2ebe2
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1>;tag=z9hG4bK7df2ebe2
CSeq: 105 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1771662823/03f16a0df440775d79da13bc68630953",opaque="4f1b16ac2075dc5e",algorithm=MD5,qop="auth"
Server: FPBX-17.0.24(22.6.0)
Content-Length: 0


<--- Received SIP request (517 bytes) from UDP:195.94.244.244:5060 --->
ACK sip:74951234567@10.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 195.94.244.244:5060;branch=z9hG4bK7df2ebe2;rport
Max-Forwards: 70
From: "4997654321" <sip:+74997654321@195.94.244.244>;tag=as302c4035
To: <sip:74951234567@10.0.0.1:5060>;tag=z9hG4bK7df2ebe2
Contact: <sip:+74997654321@195.94.244.244>
Call-ID: 148001f20a2001d93c1da5a32c42c8e5@195.94.244.244
CSeq: 105 ACK
User-Agent: WC SoftSwitch 2.1
Remote-Party-ID: "4997654321" <sip:+74997654321@195.94.244.244>;privacy=off;screen=yes
Content-Length: 0
И ещё, странный OPTION какой-то.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: SIP dump OPTION
OPTIONS sip:98765@195.94.244.244:5060 SIP/2.0
Via: SIP/2.0/UDP 195.2.166.166:5060;rport;branch=z9hG4bKPjb3a2ab8a-bce8-459a-84c1-be6f64641034
From: <sip:98765@195.94.244.244>;tag=ac1069fc-ca02-4ed7-8bdc-7e602a9108d9
To: <sip:98765@195.94.244.244>
Contact: <sip:74951234567@195.2.166.166:5060>
Call-ID: d0daf40d-52e1-48b8-b492-cc5659356c74
CSeq: 41763 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-17.0.24(22.6.0)
Content-Length: 0


<--- Received SIP response (512 bytes) from UDP:195.94.244.244:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bKPjb3a2ab8a-bce8-459a-84c1-be6f64641034;received=10.0.0.1;rport=5060
From: <sip:98765@195.94.244.244>;tag=ac1069fc-ca02-4ed7-8bdc-7e602a9108d9
To: <sip:98765@195.94.244.244>;tag=as04fb1270
Call-ID: d0daf40d-52e1-48b8-b492-cc5659356c74
CSeq: 41763 OPTIONS
User-Agent: WC SoftSwitch 2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Accept: application/sdp
Content-Length: 0
С исходящими всё в порядке. Если нужно для полной картины могу и его выложить.
Glukinho
Сообщения: 743
Зарегистрирован: 07 янв 2011, 20:05

Re: pjsip с провайдером westcall. Проблема с входящими.

Сообщение Glukinho »

> А вот с входящими беда. Астериск возвращает 401 Unauthorized

Вам нужен аналог опции insecure=port,invite для pjsip. Вот тут что-то такое писали: https://community.asterisk.org/t/insecu ... jsip/69113
stamnik
Сообщения: 2
Зарегистрирован: 21 фев 2026, 10:48

Re: pjsip с провайдером westcall. Проблема с входящими.

Сообщение stamnik »

Если кому интересно, проблему решил. Ларчик просто открывался.

> from_user= ; Username to use in From header for requests to this endpoint (default: "")

По логике названия, этот параметр для исходящих звонков. Оказалось, что с точностью до наоборот. В итоге астериск отрабатывал всё правильно, ровно то что я ему настроил.

Так что, внимательно RTFM!!!
Ответить
© 2008 — 2026 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH