Страница 2 из 2

Re: Trixbox и Комстар (МТС)

Добавлено: 29 янв 2013, 16:53
ded
asterisk -rx 'sip show settings'| grep Bindaddress:
tcpdump -i eth0 host 10.60.89.129 -s0 -A
ну и звоните....

Re: Trixbox и Комстар (МТС)

Добавлено: 29 янв 2013, 17:23
ansh
tcpdump -i eth0 host 10.60.89.129 -s0 -A --> тишина
сделал - tcpdump -i eth0 host 82.204.255.35 -s0 -A
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[trixbox1.localdomain ~]# tcpdump -i eth0 host 82.204.255.35 -s0 -A
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
17:15:03.677718 IP 192.168.0.11.sip > mvts.voip.comstar.ru.sip-tls: SIP, length: 900
E`..#...@.@.....R..#.......AINVITE sip:8926XXXXXXX@82.204.255.35:5061 SIP/2.0
Via: SIP/2.0/UDP 10.60.89.130:5060;branch=z9hG4bK2232ee0d;rport
Max-Forwards: 70
From: "Andrey" <sip:495XXXXXXX@10.60.89.130>;tag=as379d0a10
To: <sip:8926XXXXXXX@82.204.255.35:5061>
Contact: <sip:495XXXXXXX@10.60.89.130>
Call-ID: 0aa6377f4d0b3be2382f03850c863737@10.60.89.130
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Date: Tue, 29 Jan 2013 13:15:03 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 300

v=0
o=root 1221701950 1221701950 IN IP4 10.60.89.130
s=Asterisk PBX 1.6.0.26-FONCORE-r78
c=IN IP4 10.60.89.130
t=0 0
m=audio 46280 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

17:15:03.687248 IP mvts.voip.comstar.ru.sip-tls > 192.168.0.11.sip: SIP, length: 351
E..{?.@.=...R..#.........g.7SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.60.89.130:5060;branch=z9hG4bK2232ee0d;rport=5060;received=10.60.89.130
From: "Andrey" <sip:495XXXXXXX@10.60.89.130>;tag=as379d0a10
To: <sip:8926XXXXXXX@82.204.255.35:5061>
Call-ID: 0aa6377f4d0b3be2382f03850c863737@10.60.89.130
CSeq: 102 INVITE
Server: MERA MVTS3G v.4.3.0-40
Content-Length: 0


17:15:04.123798 IP mvts.voip.comstar.ru.sip-tls > 192.168.0.11.sip: SIP, length: 699
E...?.@.=..~R..#...........&SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.60.89.130:5060;branch=z9hG4bK2232ee0d;rport=5060;received=10.60.89.130
From: "Andrey" <sip:495XXXXXXX@10.60.89.130>;tag=as379d0a10
To: <sip:8926XXXXXXX@82.204.255.35:5061>;tag=2768131046-3792770410-285262761-1452131365
Call-ID: 0aa6377f4d0b3be2382f03850c863737@10.60.89.130
CSeq: 102 INVITE
Contact: <sip:8926XXXXXXX@82.204.255.35:5061>
Content-Type: application/sdp
Server: MERA MVTS3G v.4.3.0-40
Content-Length: 218

v=0
o=- 1359465306 1359465306 IN IP4 82.204.254.190
s=-
c=IN IP4 82.204.254.190
t=0 0
m=audio 10382 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

17:15:20.905993 IP mvts.voip.comstar.ru.sip-tls > 192.168.0.11.sip: SIP, length: 767
E...?.@.=..9R..#...........4SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.60.89.130:5060;branch=z9hG4bK2232ee0d;rport=5060;received=10.60.89.130
From: "Andrey" <sip:495XXXXXXX@10.60.89.130>;tag=as379d0a10
To: <sip:8926XXXXXXX@82.204.255.35:5061>;tag=2768131046-3792770410-285262761-1452131365
Call-ID: 0aa6377f4d0b3be2382f03850c863737@10.60.89.130
CSeq: 102 INVITE
Contact: <sip:8926XXXXXXX@82.204.255.35:5061>
Content-Type: application/sdp
Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, REFER, REGISTER, UPDATE
Server: MERA MVTS3G v.4.3.0-40
Content-Length: 218

v=0
o=- 1359465306 1359465306 IN IP4 82.204.254.190
s=-
c=IN IP4 82.204.254.190
t=0 0
m=audio 10382 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

17:15:20.906209 IP 192.168.0.11.sip > mvts.voip.comstar.ru.sip-tls: SIP, length: 469
E`..#...@.BM....R..#........ACK sip:89262131823@82.204.255.35:5061 SIP/2.0
Via: SIP/2.0/UDP 10.60.89.130:5060;branch=z9hG4bK694510bb;rport
Max-Forwards: 70
From: "Andrey" <sip:495XXXXXXX@10.60.89.130>;tag=as379d0a10
To: <sip:8926XXXXXXX@82.204.255.35:5061>;tag=2768131046-3792770410-285262761-1452131365
Contact: <sip:495XXXXXXX@10.60.89.130>
Call-ID: 0aa6377f4d0b3be2382f03850c863737@10.60.89.130
CSeq: 102 ACK
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Content-Length: 0


17:15:28.197801 IP 192.168.0.11.sip > mvts.voip.comstar.ru.sip-tls: SIP, length: 502
E`..#...@.B+....R..#........BYE sip:89262131823@82.204.255.35:5061 SIP/2.0
Via: SIP/2.0/UDP 10.60.89.130:5060;branch=z9hG4bK03f5b26f;rport
Max-Forwards: 70
From: "Andrey" <sip:495XXXXXXX@10.60.89.130>;tag=as379d0a10
To: <sip:8926XXXXXXX@82.204.255.35:5061>;tag=2768131046-3792770410-285262761-1452131365
Call-ID: 0aa6377f4d0b3be2382f03850c863737@10.60.89.130
CSeq: 103 BYE
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0


17:15:28.205845 IP mvts.voip.comstar.ru.sip-tls > 192.168.0.11.sip: SIP, length: 438
E...?.@.=...R..#...........rSIP/2.0 200 OK
Via: SIP/2.0/UDP 10.60.89.130:5060;branch=z9hG4bK03f5b26f;rport=5060;received=10.60.89.130
From: "Andrey" <sip:495XXXXXXX@10.60.89.130>;tag=as379d0a10
To: <sip:8926XXXXXXX@82.204.255.35:5061>;tag=2768131046-3792770410-285262761-1452131365
Call-ID: 0aa6377f4d0b3be2382f03850c863737@10.60.89.130
CSeq: 103 BYE
Contact: <sip:8926XXXXXXX@82.204.255.35:5061>
Server: MERA MVTS3G v.4.3.0-40
Content-Length: 0
sip.conf:
nat=yes
externip = 10.60.89.130
localnet = 192.168.0.0/24
localnet = 10.60.89.128/30

Re: Trixbox и Комстар (МТС)

Добавлено: 29 янв 2013, 17:38
ded
From: "Andrey" <sip:495XXXXXXX@10.60.89.130>;tag=as379d0a10
To: <sip:8926XXXXXXX@82.204.255.35:5061>

У вас возможно криво SIP пир МТС настроен. Там должно быть
host=10.60.89.129
есть такое?

Re: Trixbox и Комстар (МТС)

Добавлено: 30 янв 2013, 01:21
shurskiy
externip=ваш внешний адрес(не комстаровский!)
formdomain в настройках транка не указывать

Re: Trixbox и Комстар (МТС)

Добавлено: 30 янв 2013, 09:43
ansh
From: "Andrey" <sip:495XXXXXXX@10.60.89.130>;tag=as379d0a10
To: <sip:8926XXXXXXX@82.204.255.35:5061>
Contact: <sip:495XXXXXXX@10.60.89.130>

При таких настройках звонок проходит. Правда только слышно с одной стороны но проходит...
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
пир МТС:
type=friend
host=82.204.255.35
port=5061
fromuser=495XXXXXXX
formdomain=10.60.89.130
dtmfmode=rfc2833
canreinvite=yes
insecure=invite,port
nat=no
disallow=all
allow=alaw&ulaw
promiscredir=yes

sip.conf:
nat=yes
externip = 10.60.89.130
;externip = 212.XXX.XXX.XXX - белый адрес провайдера (комкор)
localnet = 192.168.0.0/24
localnet = 10.60.89.128/30
;localnet = 82.204.255.35/32
;localnet = 82.204.255.37/32
;localnet = 82.204.254.173/32
;localnet = 82.204.254.178/32
;qualify=300
;bindaddr=0.0.0.0
Как только убираю в sip.conf externip = 10.60.89.130 звонок не проходит. Похоже правильный инвайт такой:
From: "Andrey" <sip:495XXXXXXX@10.60.89.130>;tag=as379d0a10
To: <sip:8926XXXXXXX@82.204.255.35:5061>
Contact: <sip:495XXXXXXX@10.60.89.130>


ded
host=10.60.89.129 - это шлюз. мой IP выданный МТС - 10.60.89.130
ставил host=10.60.89.130, externip = 10.60.89.129 и убирал externip = 10.60.89.130
звонок соответственно не проходит (192.168.0.11 - trixbox внутри сети):
From: "Andrey" <sip:495XXXXXXX@192.168.0.11>;tag=as379d0a10
To: <sip:8926XXXXXXX@10.60.89.130:5061>
Contact: <sip:495XXXXXXX@192.168.0.11>

shurskiy
звонок тоже не проходит:
From: "Andrey" <sip:495XXXXXXX@192.168.0.11>;tag=as379d0a10
To: <sip:8926XXXXXXX@82.204.255.35:5061>
Contact: <sip:495XXXXXXX@192.168.0.11>

Re: Trixbox и Комстар (МТС)

Добавлено: 30 янв 2013, 10:07
Vlad1983
у вас нет представления совершенно о том, что нужно делать
стучите в скайп иначе тема с пустозвонством разростется ещё не на одну страницу

Re: Trixbox и Комстар (МТС)

Добавлено: 30 янв 2013, 12:07
ded
ansh, совсем нет понятий о ИП маршрутизации, не говоря об SIP маршрутизации.
Платный суппорт, однозначно.

Re: Trixbox и Комстар (МТС)

Добавлено: 30 янв 2013, 12:39
ansh
Разобрались... спс Vlad1983