Добрый день всем!
Пытаюсь подружить 3CX с Asterisk где Asterisk выступает в роли провайдера.
<--- SIP read from 192.168.170.164:5060 --->
REGISTER sip:192.168.16.55 SIP/2.0
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---c5426c28c399117a;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060;rinstance=ce67021c3e51ab10>
To: "123456"<sip:[email protected]>
From: "123456"<sip:[email protected]>;tag=2337615f
Call-ID: w0Uxm9RMUJpvYx7a4H98rA..
CSeq: 1 REGISTER
Expires: 180
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Supported: replaces, timer
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Using latest REGISTER request as basis request
Sending to 192.168.170.164 : 5060 (NAT)
ha1*CLI>
<--- Transmitting (no NAT) to 192.168.170.164:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---c5426c28c399117a;received=192.168.170.164;rport=5060
From: "123456"<sip:[email protected]>;tag=2337615f
To: "123456"<sip:[email protected]>
Call-ID: w0Uxm9RMUJpvYx7a4H98rA..
CSeq: 1 REGISTER
User-Agent: Asterisk
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:[email protected]>
Content-Length: 0
<------------>
ha1*CLI>
<--- Transmitting (no NAT) to 192.168.170.164:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---c5426c28c399117a;received=192.168.170.164;rport=5060
From: "123456"<sip:[email protected]>;tag=2337615f
To: "123456"<sip:[email protected]>;tag=as3ec8b621
Call-ID: w0Uxm9RMUJpvYx7a4H98rA..
CSeq: 1 REGISTER
User-Agent: Asterisk
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="63cec5f430b6832e4a91dc7019111354"
Content-Length: 0
Пример диалога регистрации с ответом 407
<--- SIP read from 164:5060 --->
REGISTER sip:192.168.16.55 SIP/2.0
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---7582aa000917c478;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060;rinstance=52d269cffaefea1b>
To: "123456"<sip:[email protected]>
From: "123456"<sip:[email protected]>;tag=d978732f
Call-ID: KonwEYOF_rNRyzdDZ_2G3A..
CSeq: 1 REGISTER
Expires: 180
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Supported: replaces, timer
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Using latest REGISTER request as basis request
Sending to 192.168.170.164 : 5060 (NAT)
<--- Transmitting (no NAT) to 192.168.170.164:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---7582aa000917c478;received=192.168.170.164;rport=5060
From: "123456"<sip:[email protected]>;tag=d978732f
To: "123456"<sip:[email protected]>
Call-ID: KonwEYOF_rNRyzdDZ_2G3A..
CSeq: 1 REGISTER
User-Agent: Asterisk
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:[email protected]>
Content-Length: 0
<------------>
ha1*CLI>
<--- Transmitting (no NAT) to 192.168.170.164:5060 --->
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---7582aa000917c478;received=192.168.170.164;rport=5060
From: "123456"<sip:[email protected]>;tag=d978732f
To: "123456"<sip:[email protected]>;tag=as5e2fade7
Call-ID: KonwEYOF_rNRyzdDZ_2G3A..
CSeq: 1 REGISTER
User-Agent: Asterisk
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="719db9d606c1d0731701bce035a7e5ae"
Content-Length: 0
Регистрация нужна только для исходящих звонков с 3СХ. Пробовал переключать "Тип аутентификации" во все варианты - результат такой же
Может где-то есть тычка которую нужно поставить. Кто-то сталкивался с такой проблемой
Пытаюсь подружить 3CX с Asterisk где Asterisk выступает в роли провайдера.
- IP адрес Asterisk 192.168.16.55
- IP адрес 3СХ 192.168.170.164
<--- SIP read from 192.168.170.164:5060 --->
REGISTER sip:192.168.16.55 SIP/2.0
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---c5426c28c399117a;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060;rinstance=ce67021c3e51ab10>
To: "123456"<sip:[email protected]>
From: "123456"<sip:[email protected]>;tag=2337615f
Call-ID: w0Uxm9RMUJpvYx7a4H98rA..
CSeq: 1 REGISTER
Expires: 180
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Supported: replaces, timer
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Using latest REGISTER request as basis request
Sending to 192.168.170.164 : 5060 (NAT)
ha1*CLI>
<--- Transmitting (no NAT) to 192.168.170.164:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---c5426c28c399117a;received=192.168.170.164;rport=5060
From: "123456"<sip:[email protected]>;tag=2337615f
To: "123456"<sip:[email protected]>
Call-ID: w0Uxm9RMUJpvYx7a4H98rA..
CSeq: 1 REGISTER
User-Agent: Asterisk
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:[email protected]>
Content-Length: 0
<------------>
ha1*CLI>
<--- Transmitting (no NAT) to 192.168.170.164:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---c5426c28c399117a;received=192.168.170.164;rport=5060
From: "123456"<sip:[email protected]>;tag=2337615f
To: "123456"<sip:[email protected]>;tag=as3ec8b621
Call-ID: w0Uxm9RMUJpvYx7a4H98rA..
CSeq: 1 REGISTER
User-Agent: Asterisk
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="63cec5f430b6832e4a91dc7019111354"
Content-Length: 0
Пример диалога регистрации с ответом 407
<--- SIP read from 164:5060 --->
REGISTER sip:192.168.16.55 SIP/2.0
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---7582aa000917c478;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060;rinstance=52d269cffaefea1b>
To: "123456"<sip:[email protected]>
From: "123456"<sip:[email protected]>;tag=d978732f
Call-ID: KonwEYOF_rNRyzdDZ_2G3A..
CSeq: 1 REGISTER
Expires: 180
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Supported: replaces, timer
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Using latest REGISTER request as basis request
Sending to 192.168.170.164 : 5060 (NAT)
<--- Transmitting (no NAT) to 192.168.170.164:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---7582aa000917c478;received=192.168.170.164;rport=5060
From: "123456"<sip:[email protected]>;tag=d978732f
To: "123456"<sip:[email protected]>
Call-ID: KonwEYOF_rNRyzdDZ_2G3A..
CSeq: 1 REGISTER
User-Agent: Asterisk
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:[email protected]>
Content-Length: 0
<------------>
ha1*CLI>
<--- Transmitting (no NAT) to 192.168.170.164:5060 --->
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.170.164:5060;branch=z9hG4bK-524287-1---7582aa000917c478;received=192.168.170.164;rport=5060
From: "123456"<sip:[email protected]>;tag=d978732f
To: "123456"<sip:[email protected]>;tag=as5e2fade7
Call-ID: KonwEYOF_rNRyzdDZ_2G3A..
CSeq: 1 REGISTER
User-Agent: Asterisk
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="719db9d606c1d0731701bce035a7e5ae"
Content-Length: 0
Регистрация нужна только для исходящих звонков с 3СХ. Пробовал переключать "Тип аутентификации" во все варианты - результат такой же
Может где-то есть тычка которую нужно поставить. Кто-то сталкивался с такой проблемой
