Блииин, спасибо огромное!!! Именно в одном месте и пропустил.... спасибо!
subsan ( 2011-10-18 10:16:22 +0400 )редактироватьДобрый день. Возникла такая проблема. Есть несколько транков от 3х разных провайдеров. От двух из них звонки принимаются, а он третьего - нет:( Настройка того, от которого не принимается вот:
username=3804423825391016
type=peer
secret=xxxxxxxxxxxxxxxx
outboundproxy=193.238.20.14
insecure=port,invite
host=193.238.20.14
fromuser=3804423825391016
fromdomain=193.238.20.14
register тоже указан:
3804423825391016:xxxxxxxxxxxxxxxx@193.238.20.14/3804423825391016
Регистрация проходит:
193.238.20.14:5060 N 380442382539 585 Registered Tue, 18 Oct 2011 08:36:20
193.238.20.14:5060 N 380442382539 485 Registered Tue, 18 Oct 2011 08:36:22
193.238.20.14:5060 N 380442382539 585 Registered Tue, 18 Oct 2011 08:36:22
193.238.20.14:5060 N 380442382539 585 Registered Tue, 18 Oct 2011 08:36:22
Исходящие звонки с него поступают, а вот входящие:
Asterisk 1.8.7.0~rc1-1digium0+1~lucid, Copyright (C) 1999 - 2011 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': == Found
[0;37m[1;30m == [0mParsing '/etc/asterisk/extconfig.conf': [1;30m == [0mFound
[0mConnected to Asterisk 1.8.7.0~rc1-1digium0+1~lucid currently running on d47 (pid = 1150)
d47*CLI>
[0KVerbosity is at least 4
[Kd47*CLI>
[0K
<--- SIP read from UDP:193.238.20.14:5060 --->
INVITE sip:3804423825391016@91.206.200.13 SIP/2.0
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>
Contact: <sip:380444506497@193.238.20.14:5060>
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 INVITE
Max-Forwards: 70
Allow-Events: telephone-event
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, INFO
Content-Length: 243
Content-Type: application/sdp
v=0
o=system 8000 8000 IN IP4 193.238.20.14
s=SIP Call
c=IN IP4 193.238.20.14
t=0 0
m=audio 23042 RTP/AVP 8 101 122
a=sendrecv
a=rtpmap:8 PCMA/8000
a=rtpmap:122 t38/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
<------------->
--- (12 headers 12 lines) ---
[Kd47*CLI>
[0KSending to 193.238.20.14:5060 (no NAT)
Using INVITE request as basis request - 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
[Kd47*CLI>
[0KFound peer 'ukr_3804423825391009' for '380444506497' from 193.238.20.14:5060
[Kd47*CLI>
[0K
<--- Reliably Transmitting (no NAT) to 193.238.20.14:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6;received=193.238.20.14
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>;tag=as30934ad7
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 INVITE
Server: FPBX-2.9.0(1.8.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="62be6e50"
Content-Length: 0
<------------>
[Kd47*CLI>
[0KScheduling destruction of SIP dialog '29d7e2c5c688b33378761c6e869a73d6@193.238.20.14' in 32000 ms (Method: INVITE)
[Kd47*CLI>
[0K
<--- SIP read from UDP:193.238.20.14:5060 --->
ACK sip:3804423825391016@91.206.200.13 SIP/2.0
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
[Kd47*CLI>
[0KRetransmitting #1 (no NAT) to 193.238.20.14:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6;received=193.238.20.14
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>;tag=as30934ad7
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 INVITE
Server: FPBX-2.9.0(1.8.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="62be6e50"
Content-Length: 0
---
[Kd47*CLI>
[0K
<--- SIP read from UDP:193.238.20.14:5060 --->
ACK sip:3804423825391016@91.206.200.13 SIP/2.0
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
[Kd47*CLI>
[0KRetransmitting #2 (no NAT) to 193.238.20.14:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6;received=193.238.20.14
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>;tag=as30934ad7
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 INVITE
Server: FPBX-2.9.0(1.8.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="62be6e50"
Content-Length: 0
---
[Kd47*CLI>
[0K
<--- SIP read from UDP:193.238.20.14:5060 --->
ACK sip:3804423825391016@91.206.200.13 SIP/2.0
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
[Kd47*CLI>
[0KReally destroying SIP dialog '51c0e2ee08a58d5565c5b6da39489fe6@193.238.20.14' Method: INVITE
[Kd47*CLI>
[0K
<--- SIP read from UDP:195.200.91.102:50358 --->
[Kd47*CLI>
[0KRetransmitting #3 (no NAT) to 193.238.20.14:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6;received=193.238.20.14
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>;tag=as30934ad7
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 INVITE
Server: FPBX-2.9.0(1.8.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="62be6e50"
Content-Length: 0
---
[Kd47*CLI>
[0K
<--- SIP read from UDP:193.238.20.14:5060 --->
ACK sip:3804423825391016@91.206.200.13 SIP/2.0
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
[Kd47*CLI>
[0K
<--- SIP read from UDP:193.238.20.14:5060 --->
CANCEL sip:3804423825391016@91.206.200.13 SIP/2.0
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 CANCEL
Max-Forwards: 70
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
[Kd47*CLI>
[0KSending to 193.238.20.14:5060 (no NAT)
Scheduling destruction of SIP dialog '29d7e2c5c688b33378761c6e869a73d6@193.238.20.14' in 32000 ms (Method: CANCEL)
[Kd47*CLI>
[0K
<--- Reliably Transmitting (no NAT) to 193.238.20.14:5060 --->
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6;received=193.238.20.14
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>;tag=as30934ad7
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 INVITE
Server: FPBX-2.9.0(1.8.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
S
[Kd47*CLI>
[0Kupported: replaces, timer
Content-Length: 0
<------------>
[Kd47*CLI>
[0K
<--- Transmitting (no NAT) to 193.238.20.14:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6;received=193.238.20.14
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>;tag=as30934ad7
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 CANCEL
Server: FPBX-2.9.0(1.8.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
[Kd47*CLI>
[0K
<--- SIP read from UDP:193.238.20.14:5060 --->
ACK sip:3804423825391016@91.206.200.13 SIP/2.0
Via: SIP/2.0/UDP 193.238.20.14:5060;branch=z9hG4bK078761c6e869a73d6;received=193.238.20.14
From: "380444506497" <sip:380444506497@193.238.20.14>;tag=245901318914214
To: <sip:3804423825391016@91.206.200.13>;tag=as30934ad7
Call-ID: 29d7e2c5c688b33378761c6e869a73d6@193.238.20.14
CSeq: 39937 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
[Kd47*CLI>
[0KSending to 193.238.20.14:5060 (no NAT)
Scheduling destruction of SIP dialog 'c8b4a144631577bd84dd28806180b3c9@193.238.20.14' in 32000 ms (Method: CANCEL)
Насторожило вот это:
SIP/2.0 401 Unauthorized
Поискал, сводится либо к insecure=port,invite (но у меня установлено), либо к перезагрузке (не знаю, конечно, но на всяк пожарный пробовал)... не помогло:(
Подскажите, пожалуйста, в какую сторону искать.
Выставьте в пире ukr_3804423825391009 insecure=invite,port .
Блииин, спасибо огромное!!! Именно в одном месте и пропустил.... спасибо!
subsan ( 2011-10-18 10:16:22 +0400 )редактироватьЗадан: 2011-10-18 09:50:36 +0400
Просмотрен: 2,929 раз
Обновлен: Oct 18 '11
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.