ВидеоКонф(ВКС)  ::   Чат  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

username mismatch

Новичком считается только что прочитавший «Астериск - будущее телефонии»
http://asterisk.ru/knowledgebase/books
и пытающийся сделать большее

Модератор: april22

username mismatch

Сообщение alex08 » 24 дек 2021, 09:52

Здравствуйте!

Имеется в наличии FreePBX 15
К ней подключено 2 sip транка от одного провайдера:
Транк #1 подается 1 номер
[Показать] Спойлер:
username=500368
type=peer
nat=force_rport,comedia
insecure=port,invite
host=93.91.172.26
fromuser=500368
dtmfmode=inband
context=from-trunk
disallow=all
allow=alaw


Транк #2 подается сразу 4 номера (501703-501709). (через него должны звонить в город часть пользователей)
[Показать] Спойлер:
username=501703
type=peer
nat=force_rport,comedia
insecure=port,invite
host=93.91.172.26
dtmfmode=inband
disallow=all
context=from-trunk
allow=alaw



Чтобы пользователи звонили в город каждый через свой внешний номер телефона в настройках exstension для каждого сотрудника прописан Outbound CID (из диапазон выданных провайдером для транка #2)

но возникла трудность.

Если отключить от АТС Транк #1, то звонки через Транк #2 проходят отлично, каждый сотрудник звонит в город через свой CID.
Как только на АСТ зарегистрировать Транк #1, звонки перестают идти. Asterisk провайдера выдает ошибку

WARNING[3776] chan_sip.c: username mismatch, have <500366>, digest has <501703>

что очень странно, на своей АТС в выводе консоли я ничего такого не вижу. Что примечательно если экстеншену присвоить CID 501703 или в настройках транка прописать опцию fromuser звонок пройдет. Но это не то, что хотелось бы получить.

Ниже прикладываю dump при вызове через с caller id 501703 и при неудачном вызове c присвоением cid 501704
Удачный вызов
[Показать] Спойлер:
2021/12/24 12:44:48.855147 172.20.0.66:5061 -> 93.91.172.26:5060
INVITE sip:89039585690@93.91.172.26 SIP/2.0
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK3b4bbbe3;rport
Max-Forwards: 70
From: <sip:501703@46.229.66.130:5061>;tag=as09378584
To: <sip:89039585690@93.91.172.26>
Contact: <sip:501703@46.229.66.130:5061>
Call-ID: 017362893726726d25b80cb074d2b974@46.229.66.130:5061
CSeq: 102 INVITE
User-Agent: FPBX-15.0.17.24(16.15.1)
Date: Fri, 24 Dec 2021 05:44:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 186

v=0
o=root 1387781724 1387781724 IN IP4 46.229.66.130
s=Asterisk PBX 16.15.1
c=IN IP4 46.229.66.130
t=0 0
m=audio 16178 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=maxptime:150
a=sendrecv


2021/12/24 12:44:48.857085 93.91.172.26:5060 -> 172.20.0.66:5061
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK3b4bbbe3;received=46.229.66.130;rport=5061
From: <sip:501703@46.229.66.130:5061>;tag=as09378584
To: <sip:89039585690@93.91.172.26>;tag=as3d7d3737
Call-ID: 017362893726726d25b80cb074d2b974@46.229.66.130:5061
CSeq: 102 INVITE
Server: IP-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="avantel.ru", nonce="53ebbd02"
Content-Length: 0



2021/12/24 12:44:48.857611 172.20.0.66:5061 -> 93.91.172.26:5060
ACK sip:89039585690@93.91.172.26 SIP/2.0
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK3b4bbbe3;rport
Max-Forwards: 70
From: <sip:501703@46.229.66.130:5061>;tag=as09378584
To: <sip:89039585690@93.91.172.26>;tag=as3d7d3737
Contact: <sip:501703@46.229.66.130:5061>
Call-ID: 017362893726726d25b80cb074d2b974@46.229.66.130:5061
CSeq: 102 ACK
User-Agent: FPBX-15.0.17.24(16.15.1)
Content-Length: 0



2021/12/24 12:44:48.857722 172.20.0.66:5061 -> 93.91.172.26:5060
INVITE sip:89039585690@93.91.172.26 SIP/2.0
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK764b51db;rport
Max-Forwards: 70
From: <sip:501703@46.229.66.130:5061>;tag=as09378584
To: <sip:89039585690@93.91.172.26>
Contact: <sip:501703@46.229.66.130:5061>
Call-ID: 017362893726726d25b80cb074d2b974@46.229.66.130:5061
CSeq: 103 INVITE
User-Agent: FPBX-15.0.17.24(16.15.1)
Authorization: Digest username="501703", realm="avantel.ru", algorithm=MD5, uri="sip:89039585690@93.91.172.26", nonce="53ebbd02", response="c5656872b434fc06f70dc86c1a3f66bb"
Date: Fri, 24 Dec 2021 05:44:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 186

v=0
o=root 1387781724 1387781725 IN IP4 46.229.66.130
s=Asterisk PBX 16.15.1
c=IN IP4 46.229.66.130
t=0 0
m=audio 16178 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=maxptime:150
a=sendrecv


2021/12/24 12:44:48.859834 93.91.172.26:5060 -> 172.20.0.66:5061
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK764b51db;received=46.229.66.130;rport=5061
From: <sip:501703@46.229.66.130:5061>;tag=as09378584
To: <sip:89039585690@93.91.172.26>
Call-ID: 017362893726726d25b80cb074d2b974@46.229.66.130:5061
CSeq: 103 INVITE
Server: IP-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: <sip:89039585690@93.91.172.26:5060>
Content-Length: 0



2021/12/24 12:44:57.778611 93.91.172.26:5060 -> 172.20.0.66:5061
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK764b51db;received=46.229.66.130;rport=5061
From: <sip:501703@46.229.66.130:5061>;tag=as09378584
To: <sip:89039585690@93.91.172.26>;tag=as77094f1a
Call-ID: 017362893726726d25b80cb074d2b974@46.229.66.130:5061
CSeq: 103 INVITE
Server: IP-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: <sip:89039585690@93.91.172.26:5060>
Content-Type: application/sdp
Content-Length: 181

v=0
o=root 2052422729 2052422729 IN IP4 93.91.172.26
s=Asterisk PBX 1.8.20.0
c=IN IP4 93.91.172.26
t=0 0
m=audio 19526 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=ptime:20
a=sendrecv


2021/12/24 12:44:59.208228 172.20.0.66:5061 -> 93.91.172.26:5060
CANCEL sip:89039585690@93.91.172.26 SIP/2.0
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK764b51db;rport
Max-Forwards: 70
From: <sip:501703@46.229.66.130:5061>;tag=as09378584
To: <sip:89039585690@93.91.172.26>
Call-ID: 017362893726726d25b80cb074d2b974@46.229.66.130:5061
CSeq: 103 CANCEL
User-Agent: FPBX-15.0.17.24(16.15.1)
Content-Length: 0



2021/12/24 12:44:59.210220 93.91.172.26:5060 -> 172.20.0.66:5061
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK764b51db;received=46.229.66.130;rport=5061
From: <sip:501703@46.229.66.130:5061>;tag=as09378584
To: <sip:89039585690@93.91.172.26>;tag=as77094f1a
Call-ID: 017362893726726d25b80cb074d2b974@46.229.66.130:5061
CSeq: 103 INVITE
Server: IP-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0



2021/12/24 12:44:59.210358 93.91.172.26:5060 -> 172.20.0.66:5061
SIP/2.0 200 OK
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK764b51db;received=46.229.66.130;rport=5061
From: <sip:501703@46.229.66.130:5061>;tag=as09378584
To: <sip:89039585690@93.91.172.26>;tag=as77094f1a
Call-ID: 017362893726726d25b80cb074d2b974@46.229.66.130:5061
CSeq: 103 CANCEL
Server: IP-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0



2021/12/24 12:44:59.217607 172.20.0.66:5061 -> 93.91.172.26:5060
ACK sip:89039585690@93.91.172.26:5060 SIP/2.0
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK764b51db;rport
Max-Forwards: 70
From: <sip:501703@46.229.66.130:5061>;tag=as09378584
To: <sip:89039585690@93.91.172.26>;tag=as77094f1a
Contact: <sip:501703@46.229.66.130:5061>
Call-ID: 017362893726726d25b80cb074d2b974@46.229.66.130:5061
CSeq: 103 ACK
User-Agent: FPBX-15.0.17.24(16.15.1)
Content-Length: 0




Неудачный вызов с CID 501704 , он же удачный с отключенным транком #1
[Показать] Спойлер:
2021/12/24 12:47:30.497672 172.20.0.66:5061 -> 93.91.172.26:5060
INVITE sip:89039585690@93.91.172.26 SIP/2.0
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK0fbd4549;rport
Max-Forwards: 70
From: <sip:501704@46.229.66.130:5061>;tag=as27b6f969
To: <sip:89039585690@93.91.172.26>
Contact: <sip:501704@46.229.66.130:5061>
Call-ID: 259082566bddb0593adbf95f05d13bd4@46.229.66.130:5061
CSeq: 102 INVITE
User-Agent: FPBX-15.0.17.24(16.15.1)
Date: Fri, 24 Dec 2021 05:47:30 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 184

v=0
o=root 617775661 617775661 IN IP4 46.229.66.130
s=Asterisk PBX 16.15.1
c=IN IP4 46.229.66.130
t=0 0
m=audio 11704 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=maxptime:150
a=sendrecv


2021/12/24 12:47:30.499707 93.91.172.26:5060 -> 172.20.0.66:5061
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK0fbd4549;received=46.229.66.130;rport=5061
From: <sip:501704@46.229.66.130:5061>;tag=as27b6f969
To: <sip:89039585690@93.91.172.26>;tag=as0d996748
Call-ID: 259082566bddb0593adbf95f05d13bd4@46.229.66.130:5061
CSeq: 102 INVITE
Server: IP-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="avantel.ru", nonce="1a69e76f"
Content-Length: 0



2021/12/24 12:47:30.500480 172.20.0.66:5061 -> 93.91.172.26:5060
ACK sip:89039585690@93.91.172.26 SIP/2.0
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK0fbd4549;rport
Max-Forwards: 70
From: <sip:501704@46.229.66.130:5061>;tag=as27b6f969
To: <sip:89039585690@93.91.172.26>;tag=as0d996748
Contact: <sip:501704@46.229.66.130:5061>
Call-ID: 259082566bddb0593adbf95f05d13bd4@46.229.66.130:5061
CSeq: 102 ACK
User-Agent: FPBX-15.0.17.24(16.15.1)
Content-Length: 0



2021/12/24 12:47:30.500710 172.20.0.66:5061 -> 93.91.172.26:5060
INVITE sip:89039585690@93.91.172.26 SIP/2.0
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK65398d26;rport
Max-Forwards: 70
From: <sip:501704@46.229.66.130:5061>;tag=as27b6f969
To: <sip:89039585690@93.91.172.26>
Contact: <sip:501704@46.229.66.130:5061>
Call-ID: 259082566bddb0593adbf95f05d13bd4@46.229.66.130:5061
CSeq: 103 INVITE
User-Agent: FPBX-15.0.17.24(16.15.1)
Authorization: Digest username="501703", realm="avantel.ru", algorithm=MD5, uri="sip:89039585690@93.91.172.26", nonce="1a69e76f", response="65db1b6f49845e871c9034a6fbb40178"
Date: Fri, 24 Dec 2021 05:47:30 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 184

v=0
o=root 617775661 617775662 IN IP4 46.229.66.130
s=Asterisk PBX 16.15.1
c=IN IP4 46.229.66.130
t=0 0
m=audio 11704 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=maxptime:150
a=sendrecv


2021/12/24 12:47:30.502850 93.91.172.26:5060 -> 172.20.0.66:5061
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK65398d26;received=46.229.66.130;rport=5061
From: <sip:501704@46.229.66.130:5061>;tag=as27b6f969
To: <sip:89039585690@93.91.172.26>;tag=as0d996748
Call-ID: 259082566bddb0593adbf95f05d13bd4@46.229.66.130:5061
CSeq: 103 INVITE
Server: IP-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0



2021/12/24 12:47:30.503206 172.20.0.66:5061 -> 93.91.172.26:5060
ACK sip:89039585690@93.91.172.26 SIP/2.0
Via: SIP/2.0/UDP 46.229.66.130:5061;branch=z9hG4bK65398d26;rport
Max-Forwards: 70
From: <sip:501704@46.229.66.130:5061>;tag=as27b6f969
To: <sip:89039585690@93.91.172.26>;tag=as0d996748
Contact: <sip:501704@46.229.66.130:5061>
Call-ID: 259082566bddb0593adbf95f05d13bd4@46.229.66.130:5061
CSeq: 103 ACK
User-Agent: FPBX-15.0.17.24(16.15.1)
Content-Length: 0



Прошу вашего совета, где можно посмотреть, чтобы исключить проблему
alex08
 
Сообщений: 1
Зарегистрирован: 24 дек 2021, 05:54

Вернуться в Вопросы новичков

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 11

cron
© 2008 — 2022 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH