Есть два провайдера и с первым работает все отлично, а со вторым иногда возникает односторонняя слышимость которая сама по себе проходит. Так как критично потеря звонков, когда возникает такая проблема сразу подключаю на другого провайдера и все работает отличною. Проблема появляется редко поэтому и собрать нужные логи проблема. Неоднократно говорил с провайдером интернета, тот утверждает что проблема у меня, но где она может быть не пойму. А использовать провайдера с которым проблем нет постоянно не могу по определенным причинам.
Использую FreePDX Stable-3.211.63-10 Asterisk 11.4.0, сервер стоит за натом, порты на asterisk проброшены 5060 10000-20000,
в rtp_additional.conf
[general]
rtpstart=10000
rtpend=20000
По дебагу в момент в момент звонка с односторонней слышимостью:
<--- SIP read from UDP:195.90.150.205:5060 --->
SIP/2.0 183 Progress
Via: SIP/2.0/UDP 192.168.33.160:5060;received=194.190.17.178;branch=z9hG4bK76487ce1;rport=5060
From: <sip:6653565@centrex.rosnet.ru>;tag=as5da5780a
To: <sip:89672552553@centrex.rosnet.ru>;tag=2130352039-3809545217-520117418-1227287494
Call-ID: 433b9b5617e691b833678fa4791dd0cc@centrex.rosnet.ru
CSeq: 102 INVITE
Contact: <sip:SD7s7pa-nn9jnirmjrqrf5n4vvk333i11sl2f3036lv3j0hhjov8gvnof3o1040sc4@195.90.150.205:5060;transport=udp>
Content-Type: application/sdp
Server: MERA MVTS3G v.4.4.0-22
Content-Length: 245
v=0
o=- 1376063433 1376063433 IN IP4 195.90.150.205
s=-
c=IN IP4 195.90.150.205
t=0 0
m=audio 29992 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
a=silenceSupp:off - - - -
<------------->
--- (10 headers 12 lines) ---
list_route: hop: <sip:SD7s7pa-nn9jnirmjrqrf5n4vvk333i11sl2f3036lv3j0hhjov8gvnof3o1040sc4@195.90.150.205:5060;transport=udp>
Found RTP audio format 8
Found RTP audio format 101
Found audio description format PCMA for ID 8
Found audio description format telephone-event for ID 101
Capabilities: us - (alaw), peer - audio=(alaw)/video=(nothing)/text=(nothing), combined - (alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 195.90.150.205:29992
-- SIP/6653565-00000026 is making progress passing it to SIP/404-00000025
Audio is at 18696
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
<--- Transmitting (NAT) to 192.168.33.176:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.33.176:5060;branch=z9hG4bK-d323d76a;received=192.168.33.176;rport=5060
From: "404" <sip:404@192.168.33.160>;tag=8ec1c80f3397307ao0
To: <sip:189672552553@192.168.33.160>;tag=as7638dd19
Call-ID: 90f4ab73-5dd10466@192.168.33.176
CSeq: 102 INVITE
Server: FPBX-2.11.0(11.4.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: <sip:189672552553@192.168.33.160:5060>
Content-Type: application/sdp
Content-Length: 263
v=0
o=root 1825572012 1825572012 IN IP4 192.168.33.160
s=Asterisk PBX 11.4.0
c=IN IP4 192.168.33.160
t=0 0
m=audio 18696 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
Got RTP packet from 192.168.33.176:16510 (type 00, seq 002478, ts 211403623, len 000160)
Sent RTP packet to 195.90.150.205:29992 (type 08, seq 029979, ts 211403616, len 000160)
Got RTP packet from 192.168.33.176:16510 (type 00, seq 002479, ts 211403703, len 000160)
Sent RTP packet to 195.90.150.205:29992 (type 08, seq 029980, ts 211403696, len 000160)
Got RTP packet from 192.168.33.176:16510 (type 00, seq 002480, ts 211403863, len 000160)
Sent RTP packet to 195.90.150.205:29992 (type 08, seq 029981, ts 211403856, len 000160)
Got RTP packet from 192.168.33.176:16510 (type 00, seq 002481, ts 211404023, len 000160)
Sent RTP packet to 195.90.150.205:29992 (type 08, seq 029982, ts 211404016, len 000160)
Got RTP packet from 192.168.33.176:16510 (type 00, seq 002482, ts 211404183, len 000160)
Sent RTP packet to 195.90.150.205:29992 (type 08, seq 029983, ts 211404176, len 000160)
Got RTP packet from 192.168.33.176:16510 (type 00, seq 002483, ts 211404343, len 000160)
Sent RTP packet to 195.90.150.205:29992 (type 08, seq 029984, ts 211404336, len 000160)
Got RTP packet from 192.168.33.176:16510 (type 00, seq 002484, ts 211404503, len 000160)
Sent RTP packet to 195.90.150.205:29992 (type 08, seq 029985, ts 211404496, len 000160)
Got RTP packet from 192.168.33.176:16510 (type 00, seq 002485, ts 211404663, len 000160)
Sent RTP packet to 195.90.150.205:29992 (type 08, seq 029986, ts 211404656, len 000160)
Got RTP packet from 192.168.33.176:16510 (type 00, seq 002486, ts 211404823, len 000160)
Sent RTP packet to 195.90.150.205:29992 (type 08, seq 029987, ts 211404816, len 000160)
Got RTP packet from 192.168.33.176:16510 (type 00, seq 002487, ts 211404983, len 000160)
Sent RTP packet to 195.90.150.205:29992 (type 08, seq 029988, ts 211404976, len 000160)
Got RTP packet from 192.168.33.176:16510 (type 00, seq 002488, ts 211405143, len 000160)
IP сервера астериск 192.168.33.160, 192.168.33.(161-180) телефоны, sip сервер провайдера 195.90.150.205