Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

ответил 2012-01-25 21:00:06 +0400

zlo_ch Gravatar zlo_ch

Лог при входящем вызове(eth1 -смотрит в локалку с адресом 192.168.1.250, eth1 - на сеть сип провадера с адресом 10.155.1.205):

[root@ABSOLUT ~]# asterisk -r -d
Asterisk 1.8.7.0, Copyright (C) 1999 - 2011 Digium, Inc. and others.
=========================================================================
Parsing /etc/asterisk/asterisk.conf
Seeding global EID 'f4:6d:04:e7:b6:09' from 'eth0' using 'siocgifhwaddr'
Parsing /etc/asterisk/extconfig.conf
Connected to Asterisk 1.8.7.0 currently running on ABSOLUT (pid = 2911)
Verbosity is at least 6
Core debug is at least 1
ABSOLUT*CLI> sip set debug ip 10.155.1.205
SIP Debugging Enabled for IP: 10.155.1.205
Reliably Transmitting (no NAT) to 10.155.1.205:5060:
OPTIONS sip:10.155.1.205 SIP/2.0
Via: SIP/2.0/UDP 10.155.2.13:5060;branch=z9hG4bK220bec95
Max-Forwards: 70
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as05876111
To: <sip:10.155.1.205>
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 6bbe03c13d15ca340e5dac6d08f2a3a7@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:52:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:10.155.1.205:5060 --->
SIP/2.0 200 OK
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as05876111
To: <sip:10.155.1.205>;tag=sip+1+11e20000+1d7b953a
Via: SIP/2.0/UDP 10.155.2.13:5060;received=10.155.2.13;branch=z9hG4bK220bec95
Server: CISCO-SBC/2.x
Max-Forwards: 70
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 6bbe03c13d15ca340e5dac6d08f2a3a7@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:52:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

<------------->
--- (14 headers 0 lines) ---
Really destroying SIP dialog '6bbe03c13d15ca340e5dac6d08f2a3a7@10.155.2.13:5060' Method: OPTIONS
Reliably Transmitting (no NAT) to 10.155.1.205:5060:
OPTIONS sip:10.155.1.205 SIP/2.0
Via: SIP/2.0/UDP 10.155.2.13:5060;branch=z9hG4bK2c69d8fe
Max-Forwards: 70
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as6eda34c5
To: <sip:10.155.1.205>
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 0918f39f623998070f028a4c4a370fc2@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:53:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:10.155.1.205:5060 --->
SIP/2.0 200 OK
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as6eda34c5
To: <sip:10.155.1.205>;tag=sip+1+1fe70005+e35ddadb
Via: SIP/2.0/UDP 10.155.2.13:5060;received=10.155.2.13;branch=z9hG4bK2c69d8fe
Server: CISCO-SBC/2.x
Max-Forwards: 70
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 0918f39f623998070f028a4c4a370fc2@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:53:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

<------------->
--- (14 headers 0 lines) ---
Really destroying SIP dialog '0918f39f623998070f028a4c4a370fc2@10.155.2.13:5060' Method: OPTIONS

При исходящем:

[root@ABSOLUT ~]# asterisk -r -d
Asterisk 1.8.7.0, Copyright (C) 1999 - 2011 Digium, Inc. and others.
=========================================================================
Parsing /etc/asterisk/asterisk.conf
Seeding global EID 'f4:6d:04:e7:b6:09' from 'eth0' using 'siocgifhwaddr'
Parsing /etc/asterisk/extconfig.conf
Connected to Asterisk 1.8.7.0 currently running on ABSOLUT (pid = 2911)
Verbosity is at least 6
Core debug is at least 1
Reliably Transmitting (no NAT) to 10.155.1.205:5060:
OPTIONS sip:10.155.1.205 SIP/2.0
Via: SIP/2.0/UDP 10.155.2.13:5060;branch=z9hG4bK548644ba
Max-Forwards: 70
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as4bdd247c
To: <sip:10.155.1.205>
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 151f6efc5c82ea9720204bef38572a31@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:57:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:10.155.1.205:5060 --->
SIP/2.0 200 OK
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as4bdd247c
To: <sip:10.155.1.205>;tag=sip+1+23d70006+4c8c92da
Via: SIP/2.0/UDP 10.155.2.13:5060;received=10.155.2.13;branch=z9hG4bK548644ba
Server: CISCO-SBC/2.x
Max-Forwards: 70
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 151f6efc5c82ea9720204bef38572a31@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:57:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

<------------->
--- (14 headers 0 lines) ---
Really destroying SIP dialog '151f6efc5c82ea9720204bef38572a31@10.155.2.13:5060' Method: OPTIONS

Лог при входящем вызове(eth1 -смотрит в локалку с адресом 192.168.1.250, eth1 - на сеть сип провадера с адресом 10.155.1.205):

[root@ABSOLUT ~]# asterisk -r -d
Asterisk 1.8.7.0, Copyright (C) 1999 - 2011 Digium, Inc. and others.
=========================================================================
Parsing /etc/asterisk/asterisk.conf
Seeding global EID 'f4:6d:04:e7:b6:09' from 'eth0' using 'siocgifhwaddr'
Parsing /etc/asterisk/extconfig.conf
Connected to Asterisk 1.8.7.0 currently running on ABSOLUT (pid = 2911)
Verbosity is at least 6
Core debug is at least 1
ABSOLUT*CLI> sip set debug ip 10.155.1.205
SIP Debugging Enabled for IP: 10.155.1.205
Reliably Transmitting (no NAT) to 10.155.1.205:5060:
OPTIONS sip:10.155.1.205 SIP/2.0
Via: SIP/2.0/UDP 10.155.2.13:5060;branch=z9hG4bK220bec95
Max-Forwards: 70
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as05876111
To: <sip:10.155.1.205>
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 6bbe03c13d15ca340e5dac6d08f2a3a7@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:52:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:10.155.1.205:5060 --->
SIP/2.0 200 OK
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as05876111
To: <sip:10.155.1.205>;tag=sip+1+11e20000+1d7b953a
Via: SIP/2.0/UDP 10.155.2.13:5060;received=10.155.2.13;branch=z9hG4bK220bec95
Server: CISCO-SBC/2.x
Max-Forwards: 70
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 6bbe03c13d15ca340e5dac6d08f2a3a7@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:52:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

<------------->
--- (14 headers 0 lines) ---
Really destroying SIP dialog '6bbe03c13d15ca340e5dac6d08f2a3a7@10.155.2.13:5060' Method: OPTIONS
Reliably Transmitting (no NAT) to 10.155.1.205:5060:
OPTIONS sip:10.155.1.205 SIP/2.0
Via: SIP/2.0/UDP 10.155.2.13:5060;branch=z9hG4bK2c69d8fe
Max-Forwards: 70
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as6eda34c5
To: <sip:10.155.1.205>
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 0918f39f623998070f028a4c4a370fc2@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:53:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:10.155.1.205:5060 --->
SIP/2.0 200 OK
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as6eda34c5
To: <sip:10.155.1.205>;tag=sip+1+1fe70005+e35ddadb
Via: SIP/2.0/UDP 10.155.2.13:5060;received=10.155.2.13;branch=z9hG4bK2c69d8fe
Server: CISCO-SBC/2.x
Max-Forwards: 70
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 0918f39f623998070f028a4c4a370fc2@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:53:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

<------------->
--- (14 headers 0 lines) ---
Really destroying SIP dialog '0918f39f623998070f028a4c4a370fc2@10.155.2.13:5060' Method: OPTIONS

При исходящем:

[root@ABSOLUT ~]# asterisk -r -d
Asterisk 1.8.7.0, Copyright (C) 1999 - 2011 Digium, Inc. and others.
=========================================================================
Parsing /etc/asterisk/asterisk.conf
Seeding global EID 'f4:6d:04:e7:b6:09' from 'eth0' using 'siocgifhwaddr'
Parsing /etc/asterisk/extconfig.conf
Connected to Asterisk 1.8.7.0 currently running on ABSOLUT (pid = 2911)
Verbosity is at least 6
Core debug is at least 1
Reliably Transmitting (no NAT) to 10.155.1.205:5060:
OPTIONS sip:10.155.1.205 SIP/2.0
Via: SIP/2.0/UDP 10.155.2.13:5060;branch=z9hG4bK548644ba
Max-Forwards: 70
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as4bdd247c
To: <sip:10.155.1.205>
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 151f6efc5c82ea9720204bef38572a31@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:57:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:10.155.1.205:5060 --->
SIP/2.0 200 OK
From: "Unknown" <sip:Unknown@10.155.2.13>;tag=as4bdd247c
To: <sip:10.155.1.205>;tag=sip+1+23d70006+4c8c92da
Via: SIP/2.0/UDP 10.155.2.13:5060;received=10.155.2.13;branch=z9hG4bK548644ba
Server: CISCO-SBC/2.x
Max-Forwards: 70
Contact: <sip:Unknown@10.155.2.13:5060>
Call-ID: 151f6efc5c82ea9720204bef38572a31@10.155.2.13:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Jan 2012 16:57:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

<------------->
--- (14 headers 0 lines) ---
Really destroying SIP dialog '151f6efc5c82ea9720204bef38572a31@10.155.2.13:5060' Method: OPTIONS

Тот же самый результат после всех манипуляций.

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.