Есть провайдер Казахтелеком, дает канал по выделенному vlan-у (0/41), в котором уже есть настройка приоритезации VoIP пакетов
Сделал транк с параметрами
Код: Выделить всё
username=1335505945197756
type=friend
secret=*****************
qualify=yes
insecure=port,invite
host=sip.telecom.kz
fromuser=133930188999036
fromdomain=sip.telecom.kz
context=from-trunk
canreinvite=no
Код: Выделить всё
trixbox1*CLI> sip show registry
Host Username Refresh State Reg.Time
sip.telecom.kz:5060 133930188999 180 Request Sent
1 SIP registrations.
включил дебаг и постоянно идут надписи (ниже) с паузой в 0.5-1 секунду
Код: Выделить всё
---
Retransmitting #4 (NAT) to 92.46.61.21:5060:
OPTIONS sip:sip.telecom.kz SIP/2.0
Via: SIP/2.0/UDP 10.20.92.31:5060;branch=z9hG4bK70ee4dda;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@10.20.92.31>;tag=as00fdc3ae
To: <sip:sip.telecom.kz>
Contact: <sip:Unknown@10.20.92.31>
Call-ID: 6872dc5716992b6f3242ded80442ca98@10.20.92.31
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Date: Sun, 17 Apr 2011 04:35:54 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
---
Really destroying SIP dialog '6872dc5716992b6f3242ded80442ca98@10.20.92.31' Method: OPTIONS
Retransmitting #4 (no NAT) to 92.46.61.21:5060:
REGISTER sip:sip.telecom.kz SIP/2.0
Via: SIP/2.0/UDP 10.20.92.31:5060;branch=z9hG4bK57cebbfc;rport
Max-Forwards: 70
From: <sip:133930188999036@sip.telecom.kz>;tag=as55f36aa5
To: <sip:133930188999036@sip.telecom.kz>
Call-ID: 053567a5400aabfc0a8370c507e8007b@127.0.0.1
CSeq: 104 REGISTER
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Expires: 180
Contact: <sip:3907000@10.20.92.31>
Event: registration
Content-Length: 0
---
Retransmitting #5 (no NAT) to 92.46.61.21:5060:
REGISTER sip:sip.telecom.kz SIP/2.0
Via: SIP/2.0/UDP 10.20.92.31:5060;branch=z9hG4bK57cebbfc;rport
Max-Forwards: 70
From: <sip:133930188999036@sip.telecom.kz>;tag=as55f36aa5
To: <sip:133930188999036@sip.telecom.kz>
Call-ID: 053567a5400aabfc0a8370c507e8007b@127.0.0.1
CSeq: 104 REGISTER
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Expires: 180
Contact: <sip:3907000@10.20.92.31>
Event: registration
Content-Length: 0