Транк с регистрацией, не проходят входящие.
Добавлено: 13 июн 2024, 14:19
Настройка пира:
username=2122167091985
type=peer
secret=********
qualify=yes
nat=force_rport,comedia
insecure=invite,port
host=11509.voice.plusofon.ru
fromuser=2122167091985
fromdomain=11509.voice.plusofon.ru
dtmfmode=auto
disallow=all
directmedia=no
allow=alaw&ulaw
Регистрация проходит - проверял. 200 ОК. Смотрю пакеты на входящем вызове:
INVITE
Session Initiation Protocol (INVITE)
Request-Line: INVITE sip:s@178.218.112.21:5060 SIP/2.0
Method: INVITE
Request-URI: sip:s@178.218.112.21:5060
Request-URI Host Part: 178.218.112.21
Request-URI Host Port: 5060
[Resent Packet: False]
Message Header
Record-Route: <sip:185.54.49.80;lr=on;ftag=B90Q9S1mBgQUc>
Record-Route URI: sip:185.54.49.80;lr=on;ftag=B90Q9S1mBgQUc
Record-Route Host Part: 185.54.49.80
Record-Route URI parameter: lr=on
Record-Route URI parameter: ftag=B90Q9S1mBgQUc
Via: SIP/2.0/UDP 185.54.49.80;branch=z9hG4bK1a51.81d70bc1a9d5a9a2d29bbb1e5ee8d215.0
Transport: UDP
Sent-by Address: 185.54.49.80
Branch: z9hG4bK1a51.81d70bc1a9d5a9a2d29bbb1e5ee8d215.0
Via: SIP/2.0/UDP 185.54.49.82:11000;received=185.54.49.82;rport=11000;branch=z9hG4bKep2taQmacac4r
Transport: UDP
Sent-by Address: 185.54.49.82
Sent-by port: 11000
Received: 185.54.49.82
RPort: 11000
Branch: z9hG4bKep2taQmacac4r
Max-Forwards: 48
From: "79266990909" <sip:79266990909@11509.voice.plusofon.ru>;tag=B90Q9S1mBgQUc
SIP from display info: "79266990909"
SIP from address: sip:79266990900@11509.voice.plusofon.ru
SIP from address User Part: 79266990909
SIP from address Host Part: 11509.voice.plusofon.ru
SIP from tag: B90Q9S1mBgQUc
To: <sip:2122167091985@11509.voice.plusofon.ru>
SIP to address: sip:2122167091985@11509.voice.plusofon.ru
SIP to address User Part: 2122167091985
SIP to address Host Part: 11509.voice.plusofon.ru
Call-ID: b3b6670c-2967-11ef-a214-2f4e88e8e218
[Generated Call-ID: b3b6670c-2967-11ef-a214-2f4e88e8e218]
CSeq: 84581750 INVITE
Sequence Number: 84581750
Method: INVITE
Contact: <sip:mod_sofia@185.54.49.82:11000>
Contact URI: sip:mod_sofia@185.54.49.82:11000
Contact URI User Part: mod_sofia
Contact URI Host Part: 185.54.49.82
Contact URI Host Port: 11000
User-Agent: 2600hz
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 268
Diversion: <sip:8864852608608@185.54.49.80>;reason=unconditional
Remote-Party-ID: "79266990909" <sip:79266990909@11509.voice.plusofon.ru>;party=calling;screen=yes;privacy=off
[Expert Info (Note/Undecoded): Unrecognised SIP header (remote-party-id)]
[Unrecognised SIP header (remote-party-id)]
[Severity level: Note]
[Group: Undecoded]
Message Body
В ответ моя PBX отдает
SIP 750 Status: 401 Unauthorized |
На Астериске
send_check_user_failure_response: Failed to authenticate device "79266990909" <sip:79266990909@11509.voice.plusofon.ru>;
Я подозреваю, что с той стороны как-то очень своеобразно формируют SIP пакеты и моя PBX не может понять кто и как с ней общается.
С другим провайдером проблем не было - по образцу настроил и все работает. А с этим прям беда какая-то.
Может кто по приведенным данным поймет в чем проблема и напишет как поправить?
username=2122167091985
type=peer
secret=********
qualify=yes
nat=force_rport,comedia
insecure=invite,port
host=11509.voice.plusofon.ru
fromuser=2122167091985
fromdomain=11509.voice.plusofon.ru
dtmfmode=auto
disallow=all
directmedia=no
allow=alaw&ulaw
Регистрация проходит - проверял. 200 ОК. Смотрю пакеты на входящем вызове:
INVITE
Session Initiation Protocol (INVITE)
Request-Line: INVITE sip:s@178.218.112.21:5060 SIP/2.0
Method: INVITE
Request-URI: sip:s@178.218.112.21:5060
Request-URI Host Part: 178.218.112.21
Request-URI Host Port: 5060
[Resent Packet: False]
Message Header
Record-Route: <sip:185.54.49.80;lr=on;ftag=B90Q9S1mBgQUc>
Record-Route URI: sip:185.54.49.80;lr=on;ftag=B90Q9S1mBgQUc
Record-Route Host Part: 185.54.49.80
Record-Route URI parameter: lr=on
Record-Route URI parameter: ftag=B90Q9S1mBgQUc
Via: SIP/2.0/UDP 185.54.49.80;branch=z9hG4bK1a51.81d70bc1a9d5a9a2d29bbb1e5ee8d215.0
Transport: UDP
Sent-by Address: 185.54.49.80
Branch: z9hG4bK1a51.81d70bc1a9d5a9a2d29bbb1e5ee8d215.0
Via: SIP/2.0/UDP 185.54.49.82:11000;received=185.54.49.82;rport=11000;branch=z9hG4bKep2taQmacac4r
Transport: UDP
Sent-by Address: 185.54.49.82
Sent-by port: 11000
Received: 185.54.49.82
RPort: 11000
Branch: z9hG4bKep2taQmacac4r
Max-Forwards: 48
From: "79266990909" <sip:79266990909@11509.voice.plusofon.ru>;tag=B90Q9S1mBgQUc
SIP from display info: "79266990909"
SIP from address: sip:79266990900@11509.voice.plusofon.ru
SIP from address User Part: 79266990909
SIP from address Host Part: 11509.voice.plusofon.ru
SIP from tag: B90Q9S1mBgQUc
To: <sip:2122167091985@11509.voice.plusofon.ru>
SIP to address: sip:2122167091985@11509.voice.plusofon.ru
SIP to address User Part: 2122167091985
SIP to address Host Part: 11509.voice.plusofon.ru
Call-ID: b3b6670c-2967-11ef-a214-2f4e88e8e218
[Generated Call-ID: b3b6670c-2967-11ef-a214-2f4e88e8e218]
CSeq: 84581750 INVITE
Sequence Number: 84581750
Method: INVITE
Contact: <sip:mod_sofia@185.54.49.82:11000>
Contact URI: sip:mod_sofia@185.54.49.82:11000
Contact URI User Part: mod_sofia
Contact URI Host Part: 185.54.49.82
Contact URI Host Port: 11000
User-Agent: 2600hz
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 268
Diversion: <sip:8864852608608@185.54.49.80>;reason=unconditional
Remote-Party-ID: "79266990909" <sip:79266990909@11509.voice.plusofon.ru>;party=calling;screen=yes;privacy=off
[Expert Info (Note/Undecoded): Unrecognised SIP header (remote-party-id)]
[Unrecognised SIP header (remote-party-id)]
[Severity level: Note]
[Group: Undecoded]
Message Body
В ответ моя PBX отдает
SIP 750 Status: 401 Unauthorized |
На Астериске
send_check_user_failure_response: Failed to authenticate device "79266990909" <sip:79266990909@11509.voice.plusofon.ru>;
Я подозреваю, что с той стороны как-то очень своеобразно формируют SIP пакеты и моя PBX не может понять кто и как с ней общается.
С другим провайдером проблем не было - по образцу настроил и все работает. А с этим прям беда какая-то.
Может кто по приведенным данным поймет в чем проблема и напишет как поправить?