Cisco 7940 телефон -> Астериск -> Portech GSM шлюз
Периодически обрывается связь, решил половить tcpdump-ом.
192.168.0.103 - Астер
192.168.0.253 - шлюз
192.168.0.70 - телефон
На шлюзе:
17:38:27.109201 IP 192.168.0.103.sip > 192.168.0.253.5070: SIP, length: 363
E`..E...@......g.........s.9BYE sip:101@192.168.0.253:5070 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bK6b22d4b1;rport
From: "ххххххх" <sip:ххххххх@192.168.0.103>;tag=as75005238
To: <sip:ххххххх@192.168.0.253:5070>;tag=72a38fe5
Call-ID: 525584620ffdc79902716a5a2d987c37@192.168.0.103
CSeq: 103 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
17:38:27.309258 IP 192.168.0.103.sip > 192.168.0.253.5070: SIP, length: 363
E`..E...@......g.........s.9BYE sip:101@192.168.0.253:5070 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bK6b22d4b1;rport
From: "ххххххх" <sip:ххххххх@192.168.0.103>;tag=as75005238
To: <sip:ххххххх@192.168.0.253:5070>;tag=72a38fe5
Call-ID: 525584620ffdc79902716a5a2d987c37@192.168.0.103
CSeq: 103 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
На телефоне:
17:38:27.109017 IP 192.168.0.103.sip > 192.168.0.70.sip-tls: SIP, length: 407
E`...$..@.q....g...F........BYE sip:414@192.168.0.70:5061;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bK38ede1eb;rport
From: "ххххххх" <sip:ххххххх@192.168.0.103>;tag=as6e3d7192
To: <sip:414@192.168.0.70:5061;transport=udp>;tag=001647bc38684bc40a6775e8-33c421f0
Call-ID: 56381d432c278ba0772f0f9f47ecd2d9@192.168.0.103
CSeq: 103 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
17:38:27.197466 IP 192.168.0.70.sip-tls > 192.168.0.103.sip: SIP, length: 499
E`..Zi..@......F...g........SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bK38ede1eb;rport
From: "ххххххх" <sip:ххххххх@192.168.0.103>;tag=as6e3d7192
To: <sip:414@192.168.0.70:5061;transport=udp>;tag=001647bc38684bc40a6775e8-33c421f0
Call-ID: 56381d432c278ba0772f0f9f47ecd2d9@192.168.0.103
Date: Mon, 29 Aug 2011 14:38:43 GMT
CSeq: 103 BYE
Server: Cisco-CP7940G/8.0
Content-Length: 0
RTP-RxStat: Dur=45,Pkt=1214,Oct=194240,LatePkt=0,LostPkt=0,AvgJit=1
RTP-TxStat: Dur=45,Pkt=2255,Oct=360800
Судя по логам это Астер инициирует разрыв, не так ли? Если так, то какого?
На телефоне:
15:31:35.313588 IP 192.168.0.103.sip > 192.168.0.70.sip-tls: SIP, length: 420
E`......@.h....g...F........BYE sip:414@192.168.0.70:5061;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bK301cf877;rport
From: "CID:414-0503847ххх=1049188" <sip:Unknown@192.168.0.103>;tag=as49480a8f
To: <sip:414@192.168.0.70:5061;transport=udp>;tag=001647bc386803b6134828ea-2a00d55d
Call-ID: 6920c3c8045e04b13c5a1c345390695e@192.168.0.103
CSeq: 103 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
15:31:35.401878 IP 192.168.0.70.sip-tls > 192.168.0.103.sip: SIP, length: 512
E`......@......F...g........SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bK301cf877;rport
From: "CID:414-0503847ххх=1049188" <sip:Unknown@192.168.0.103>;tag=as49480a8f
To: <sip:414@192.168.0.70:5061;transport=udp>;tag=001647bc386803b6134828ea-2a00d55d
Call-ID: 6920c3c8045e04b13c5a1c345390695e@192.168.0.103
Date: Tue, 30 Aug 2011 12:31:34 GMT
CSeq: 103 BYE
Server: Cisco-CP7940G/8.0
Content-Length: 0
RTP-RxStat: Dur=53,Pkt=1525,Oct=244000,LatePkt=0,LostPkt=0,AvgJit=6
RTP-TxStat: Dur=53,Pkt=2653,Oct=424480
На шлюзе:
15:31:35.306334 IP 192.168.0.103.sip > 192.168.0.253.5070: SIP, length: 377
E`......@.P....g...........GBYE sip:1024@192.168.0.253:5070 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bK09b7179e;rport
From: "CID:414-0503847ххх=1049188" <sip:Unknown@192.168.0.103>;tag=as2a8ceafd
To: <sip:0503847ххх@192.168.0.253:5070>;tag=771d7a39
Call-ID: 0abec6ab2d097ef23c89406329270e13@192.168.0.103
CSeq: 103 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
15:31:35.505707 IP 192.168.0.103.sip > 192.168.0.253.5070: SIP, length: 377
E`......@.P....g...........GBYE sip:1024@192.168.0.253:5070 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bK09b7179e;rport
From: "CID:414-0503847ххх=1049188" <sip:Unknown@192.168.0.103>;tag=as2a8ceafd
To: <sip:0503847ххх@192.168.0.253:5070>;tag=771d7a39
Call-ID: 0abec6ab2d097ef23c89406329270e13@192.168.0.103
CSeq: 103 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
Дебаг:
Reliably Transmitting (no NAT) to 192.168.0.253:5070:
BYE sip:1024@192.168.0.253:5070 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bK09b7179e;rport
From: "CID:414-0503847ххх=1049188" <sip:Unknown@192.168.0.103>;tag=as2a8ceafd
To: <sip:0503847ххх@192.168.0.253:5070>;tag=771d7a39
Call-ID: 0abec6ab2d097ef23c89406329270e13@192.168.0.103
CSeq: 103 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
^[[Ktrixbox1*CLI>
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/414-0870fb68' in macro 'dialout-trunk'
^@
^[[Ktrixbox1*CLI>
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/414-0870fb68'
^@
^[[Ktrixbox1*CLI>
-- Executing [h@macro-dialout-trunk:1] ^[[1;36;40mMacro^[[0;37;40m("^[[1;35;40mSIP/414-0870fb68^[[0;37;40m", "^[[1;35;40mhangupcall|^[[0;37;40m") in new$
ТУТ ДИАЛПЛАН ХЭНГАПА
^[[Ktrixbox1*CLI>
Retransmitting #1 (no NAT) to 192.168.0.253:5070:
BYE sip:1024@192.168.0.253:5070 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bK09b7179e;rport
From: "CID:414-0503847ххх=1049188" <sip:Unknown@192.168.0.103>;tag=as2a8ceafd
To: <sip:0503847ххх@192.168.0.253:5070>;tag=771d7a39
Call-ID: 0abec6ab2d097ef23c89406329270e13@192.168.0.103
CSeq: 103 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
---
^@
^[[Ktrixbox1*CLI>
Retransmitting #2 (no NAT) to 192.168.0.253:5070:
BYE sip:1024@192.168.0.253:5070 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bK09b7179e;rport
From: "CID:414-0503847ххх=1049188" <sip:Unknown@192.168.0.103>;tag=as2a8ceafd
To: <sip:0503847ххх@192.168.0.253:5070>;tag=771d7a39
Call-ID: 0abec6ab2d097ef23c89406329270e13@192.168.0.103
CSeq: 103 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
Вы уже в конце вашего вопроса ответили на ваш вопрос. А вот какого - непонятно. Ищите таймауты в конфигах и диаплане.
Задан: 2011-08-29 20:18:41 +0400
Просмотрен: 1,289 раз
Обновлен: Sep 06 '11
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.