/etc/asterisk/sip.conf
Код: Выделить всё
[general]
#include sip_general_additional.conf
#include sip_general_custom.conf
#include sip_nat.conf
#include sip_registrations_custom.conf
#include sip_registrations.conf
#include sip_custom.conf
#include sip_additional.conf
#include sip_custom_post.conf
#include additional_a2billing_sip.conf
Код: Выделить всё
allowguest=no
tlsenable=yes
match_auth_username=yes
pedantic=yes
udpbindaddr=85.10.xxx.xxx
tcpbindaddr=85.10.xxx.xxx
tlsbindaddr=85.10.xxx.xxx
tlscafile=/etc/asterisk/tls/ca.pem
tlscertfile=/etc/asterisk/tls/cert.pem
tlscipher=ALL
tlsclientmethod=tlsv1
tlsdontverifyserver=no
Код: Выделить всё
[093xxxxxxx]
disallow=all
host=212.58.166.54
username=093xxxxxxx
secret=password
port=5061
dtmfmode=rfc2833
type=friend
fromuser=093xxxxxxx
transport=tls
encryption=yes
allow=ulaw
canreinvite=no
allow=alaw
insecure=port,invite
context=from-sip-external
Код: Выделить всё
[Aug 30 16:52:35] VERBOSE[25472] loader.c: res_srtp.so => (Secure RTP (SRTP))
Код: Выделить всё
register=tls://093xxxxxxx:password@212.58.166.54:5061/093xxxxxxx
Код: Выделить всё
[Aug 30 16:57:41] NOTICE[25504]: chan_sip.c:14995 sip_reregister: -- Re-registration for 093xxxxxxx@212.58.166.54
REGISTER 10 headers, 0 lines
Reliably Transmitting (no NAT) to 212.58.166.54:5061:
REGISTER sip:212.58.166.54:5061 SIP/2.0
Via: SIP/2.0/TLS 85.10.xxx.xxx:5061;branch=z9hG4bK61fac244
Max-Forwards: 70
From: <sip:093xxxxxxx@212.58.166.54>;tag=as30506612
To: <sip:093xxxxxxx@212.58.166.54>
Call-ID: 1a2a67a314d06a68144b8cf71299bec7@85.10.xxx.xxx
CSeq: 102 REGISTER
User-Agent: FPBX-2.8.1(1.8.20.0)
Expires: 120
Contact: <sip:093xxxxxxx@85.10.xxx.xxx:5061;transport=TLS>
Content-Length: 0
---
Really destroying SIP dialog '511a78905cb28cc32cda56fb3a034c42@85.10.xxx.xxx:5061' Method: OPTIONS
<--- SIP read from TLS:212.58.166.54:5061 --->
SIP/2.0 100 Trying
Via: SIP/2.0/TLS 85.10.xxx.xxx:5061;branch=z9hG4bK61fac244;received=85.10.xxx.xxx
From: <sip:093xxxxxxx@212.58.166.54>;tag=as30506612
To: <sip:093xxxxxxx@212.58.166.54>
Call-ID: 1a2a67a314d06a68144b8cf71299bec7@85.10.xxx.xxx
CSeq: 102 REGISTER
Server: Asterisk PBX 1.8.7.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
<--- SIP read from TLS:212.58.166.54:5061 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TLS 85.10.xxx.xxx:5061;branch=z9hG4bK61fac244;received=85.10.xxx.xxx
From: <sip:093xxxxxxx@212.58.166.54>;tag=as30506612
To: <sip:093xxxxxxx@212.58.166.54>;tag=as07db9782
Call-ID: 1a2a67a314d06a68144b8cf71299bec7@85.10.xxx.xxx
CSeq: 102 REGISTER
Server: Asterisk PBX 1.8.7.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="75f2f6b9"
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
Responding to challenge, registration to domain/host name 212.58.166.54
REGISTER 11 headers, 0 lines
Reliably Transmitting (no NAT) to 212.58.166.54:5061:
REGISTER sip:212.58.166.54 SIP/2.0
Via: SIP/2.0/TLS 85.10.xxx.xxx:5061;branch=z9hG4bK76454125
Max-Forwards: 70
From: <sip:093xxxxxxx@212.58.166.54>;tag=as255b6696
To: <sip:093xxxxxxx@212.58.166.54>
Call-ID: 1a2a67a314d06a68144b8cf71299bec7@85.10.xxx.xxx
CSeq: 103 REGISTER
User-Agent: FPBX-2.8.1(1.8.20.0)
Authorization: Digest username="093xxxxxxx", realm="asterisk", algorithm=MD5, uri="sip:212.58.166.54:5061", nonce="75f2f6b9", response="3335a4284fc805e45ede8b4ce1c600cc"
Expires: 120
Contact: <sip:093xxxxxxx@85.10.xxx.xxx:5061;transport=TLS>
Content-Length: 0
---
<--- SIP read from TLS:212.58.166.54:5061 --->
SIP/2.0 100 Trying
Via: SIP/2.0/TLS 85.10.xxx.xxx:5061;branch=z9hG4bK76454125;received=85.10.xxx.xxx
From: <sip:093xxxxxxx@212.58.166.54>;tag=as255b6696
To: <sip:093xxxxxxx@212.58.166.54>
Call-ID: 1a2a67a314d06a68144b8cf71299bec7@85.10.xxx.xxx
CSeq: 103 REGISTER
Server: Asterisk PBX 1.8.7.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
<--- SIP read from TLS:212.58.166.54:5061 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TLS 85.10.xxx.xxx:5061;branch=z9hG4bK76454125;received=85.10.xxx.xxx
From: <sip:093xxxxxxx@212.58.166.54>;tag=as255b6696
To: <sip:093xxxxxxx@212.58.166.54>;tag=as03bffa43
Call-ID: 1a2a67a314d06a68144b8cf71299bec7@85.10.xxx.xxx
CSeq: 103 REGISTER
Server: Asterisk PBX 1.8.7.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1446bd1e"
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
Responding to challenge, registration to domain/host name 212.58.166.54
REGISTER 11 headers, 0 lines
Reliably Transmitting (no NAT) to 212.58.166.54:5061:
REGISTER sip:212.58.166.54 SIP/2.0
Via: SIP/2.0/TLS 85.10.xxx.xxx:5061;branch=z9hG4bK1749470b
Max-Forwards: 70
From: <sip:093xxxxxxx@212.58.166.54>;tag=as3d35cc13
To: <sip:093xxxxxxx@212.58.166.54>
Call-ID: 1a2a67a314d06a68144b8cf71299bec7@85.10.xxx.xxx
CSeq: 104 REGISTER
User-Agent: FPBX-2.8.1(1.8.20.0)
Authorization: Digest username="093xxxxxxx", realm="asterisk", algorithm=MD5, uri="sip:212.58.166.54", nonce="1446bd1e", response="e5f729a16fa2dfd9e0a0dc629aeed47d"
Expires: 120
Contact: <sip:093xxxxxxx@85.10.xxx.xxx:5061;transport=TLS>
Content-Length: 0
---
<--- SIP read from TLS:212.58.166.54:5061 --->
SIP/2.0 100 Trying
Via: SIP/2.0/TLS 85.10.xxx.xxx:5061;branch=z9hG4bK1749470b;received=85.10.xxx.xxx
From: <sip:093xxxxxxx@212.58.166.54>;tag=as3d35cc13
To: <sip:093xxxxxxx@212.58.166.54>
Call-ID: 1a2a67a314d06a68144b8cf71299bec7@85.10.xxx.xxx
CSeq: 104 REGISTER
Server: Asterisk PBX 1.8.7.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
<--- SIP read from TLS:212.58.166.54:5061 --->
SIP/2.0 403 Forbidden (Bad auth)
Via: SIP/2.0/TLS 85.10.xxx.xxx:5061;branch=z9hG4bK1749470b;received=85.10.xxx.xxx
From: <sip:093xxxxxxx@212.58.166.54>;tag=as3d35cc13
To: <sip:093xxxxxxx@212.58.166.54>;tag=as03bffa43
Call-ID: 1a2a67a314d06a68144b8cf71299bec7@85.10.xxx.xxx
CSeq: 104 REGISTER
Server: Asterisk PBX 1.8.7.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
[Aug 30 16:57:41] WARNING[25505]: chan_sip.c:23291 handle_response_register: Forbidden - wrong password on authentication for REGISTER for '093xxxxxxx' to '212.58.166.54'
Really destroying SIP dialog '1a2a67a314d06a68144b8cf71299bec7@85.10.xxx.xxx' Method: REGISTER
Не могу понять где я накосячил (или они накосячили)... Огромное спасибо всем кто откликнется!