Код: Выделить всё
[Jul 28 09:57:41] Sending to 195.34.34.34:5060 (no NAT)
[Jul 28 09:57:41] Using INVITE request as basis request - BW0957411822807151749988862@10.240.240.240
[Jul 28 09:57:41] Found peer '3202' for '3202' from 195.34.34.34:5060
[Jul 28 09:57:41]
<--- Reliably Transmitting (no NAT) to 195.34.34.34:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 195.34.34.34:5060;branch=z9hG4bK43mmcg2060tglvcgh3a0.1;received=195.34.34.34
From: "3202 3202"<sip:3202@195.34.34.34;user=phone>;tag=667274946-1438066661182-
To: "3203 3203"<sip:3203@192.168.0.1>;tag=as70b71688
Call-ID: BW0957411822807151749988862@10.240.240.240
CSeq: 700050336 INVITE
Server: MOS10AST002
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5dea1917"
Content-Length: 0
<------------>
[Jul 28 09:57:41] Scheduling destruction of SIP dialog 'BW0957411822807151749988862@10.240.240.240' in 32000 ms (Method: INVITE)
Код: Выделить всё
[Jul 28 09:56:43] --- (14 headers 19 lines) ---
[Jul 28 09:56:43] Sending to 195.34.34.34:5060 (no NAT)
[Jul 28 09:56:43] Using INVITE request as basis request - BW095643842280715-1312419124@10.240.240.240
[Jul 28 09:56:43] Found peer 'fmc-mts' for '3201' from 195.34.34.34:5060
и далее успешная установка соединения
;------- Naming devices ------------------------------------------------------
;
; When naming devices, make sure you understand how Asterisk matches calls
; that come in.
; 1. Asterisk checks the SIP From: address username and matches against
; names of devices with type=user
; The name is the text between square brackets [name]
; 2. Asterisk checks the From: addres and matches the list of devices
; with a type=peer
; 3. Asterisk checks the IP address (and port number) that the INVITE
; was sent from and matches against any devices with type=peer
;
; Don't mix extensions with the names of the devices. Devices need a unique
; name. The device name is *not* used as phone numbers. Phone numbers are
; anything you declare as an extension in the dialplan (extensions.conf).
;
; When setting up trunks, make sure there's no risk that any From: username
; (caller ID) will match any of your device names, because then Asterisk
; might match the wrong device.