VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Звук в одну сторону, canreinvite=no только в другую

Проблемы Asterisk без вэб-оболочек и их решения

Модераторы: april22, Zavr2008

accent22
Сообщения: 17
Зарегистрирован: 06 апр 2015, 19:48

Звук в одну сторону, canreinvite=no только в другую

Сообщение accent22 »

Всем добра! Имеется SIP транк от провайдера. Входящие звонки проходят нормально - звук в обе стороны.
Исходящие звонки идут со звуком только в одну сторону: при canreinvite=no в транке не слышен звук удаленной стороны (гудки слышно, но после ответа не слышно того, кого вызываем). При отсутствии строчки canreinvite или canreinvite=yes - удаленный абонент не слышит нас.

Код: Выделить всё

register =>12345:qwert@provaider.ru/106

[trunk1]
type=friend
username=12345
secret=qwert
callerid=12345
host=provaider.ru
fromuser=12345
fromdomain=provaider.ru
dtmfmode=rfc2833
insecure=invite,port
context=test
disallow=all
allow=alaw
allow=ulaw
allow=g729
allow=gsm
nat=auto_force_rport,auto_comedia
canreinvite=no
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Дебаг
2016/06/10 16:25:00.368592 172.17.0.2:5060 -> provaider.ru:5060
INVITE sip:543210@provaider.ru SIP/2.0
Via: SIP/2.0/UDP 192.168.1.242:5060;branch=z9hG4bK6c302757
Max-Forwards: 70
From: "Миша" <sip:12345@provaider.ru>;tag=as7772eac7
To: <sip:543210@provaider.ru>
Contact: <sip:12345@192.168.1.242:5060>
Call-ID: 47e81adb08beb17d5f8e6ee34cf79dd2@provaider.ru
CSeq: 102 INVITE
User-Agent: Asterisk PBX 13.1-cert2
Date: Fri, 10 Jun 2016 13:25:00 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 337

v=0
o=root 768719338 768719338 IN IP4 192.168.1.242
s=Asterisk PBX 13.1-cert2
c=IN IP4 192.168.1.242
t=0 0
m=audio 10142 RTP/AVP 0 8 18 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:150
a=sendrecv

-------------------------------------------------------------------------------------------

2016/06/10 16:25:00.868276 172.17.0.2:5060 -> provaider.ru:5060
INVITE sip:543210@provaider.ru SIP/2.0
Via: SIP/2.0/UDP 192.168.1.242:5060;branch=z9hG4bK6c302757
Max-Forwards: 70
From: "Миша" <sip:12345@provaider.ru>;tag=as7772eac7
To: <sip:543210@provaider.ru>
Contact: <sip:12345@192.168.1.242:5060>
Call-ID: 47e81adb08beb17d5f8e6ee34cf79dd2@provaider.ru
CSeq: 102 INVITE
User-Agent: Asterisk PBX 13.1-cert2
Date: Fri, 10 Jun 2016 13:25:00 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 337

v=0
o=root 768719338 768719338 IN IP4 192.168.1.242
s=Asterisk PBX 13.1-cert2
c=IN IP4 192.168.1.242
t=0 0
m=audio 10142 RTP/AVP 0 8 18 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:150
a=sendrecv

-------------------------------------------------------------------------------------------

2016/06/10 16:25:00.897595 provaider.ru:5060 -> 172.17.0.2:5060
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.242:5060;received=MyIP;branch=z9hG4bK6c302757;rport=1024
From: "Миша" <sip:12345@provaider.ru>;tag=as7772eac7
To: <sip:543210@provaider.ru>
Call-ID: 47e81adb08beb17d5f8e6ee34cf79dd2@provaider.ru
CSeq: 102 INVITE

-------------------------------------------------------------------------------------------

2016/06/10 16:25:01.084128 provaider.ru:5060 -> 172.17.0.2:5060
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.242:5060;received=MyIP;branch=z9hG4bK6c302757;rport=1024
From: "Миша" <sip:12345@provaider.ru>;tag=as7772eac7
To: <sip:543210@provaider.ru>;tag=rlzzir00-CC-22
Call-ID: 47e81adb08beb17d5f8e6ee34cf79dd2@provaider.ru
CSeq: 102 INVITE
Contact: <sip:543210@provaider.ru:5060;transport=udp>
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Content-Length: 227
Content-Type: application/sdp

v=0
o=SoftSwitch_Belphone 24698954 24698954 IN IP4 provaider.ru
s=Sip Call
c=IN IP4 provaider.ru
t=0 0
m=audio 50826 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15

-------------------------------------------------------------------------------------------

2016/06/10 16:25:04.903684 provaider.ru:5060 -> 172.17.0.2:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.242:5060;received=MyIP;branch=z9hG4bK6c302757;rport=1024
From: "Миша" <sip:12345@provaider.ru>;tag=as7772eac7
To: <sip:543210@provaider.ru>;tag=rlzzir00-CC-22
Call-ID: 47e81adb08beb17d5f8e6ee34cf79dd2@provaider.ru
CSeq: 102 INVITE
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Session-Expires: 3600;refresher=uac
Require: timer
Contact: <sip:543210@provaider.ru:5060;transport=udp>
Content-Length: 227
Content-Type: application/sdp

v=0
o=SoftSwitch_Belphone 24698954 24698955 IN IP4 provaider.ru
s=Sip Call
c=IN IP4 provaider.ru
t=0 0
m=audio 50826 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15

-------------------------------------------------------------------------------------------

2016/06/10 16:25:04.904010 172.17.0.2:5060 -> provaider.ru:5060
ACK sip:543210@provaider.ru:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.242:5060;branch=z9hG4bK182fb8ef
Max-Forwards: 70
From: "Миша" <sip:12345@provaider.ru>;tag=as7772eac7
To: <sip:543210@provaider.ru>;tag=rlzzir00-CC-22
Contact: <sip:12345@192.168.1.242:5060>
Call-ID: 47e81adb08beb17d5f8e6ee34cf79dd2@provaider.ru
CSeq: 102 ACK
User-Agent: Asterisk PBX 13.1-cert2
Content-Length: 0

-------------------------------------------------------------------------------------------

2016/06/10 16:25:12.703328 provaider.ru:5060 -> 172.17.0.2:5060
BYE sip:12345@192.168.1.242:5060 SIP/2.0
Via: SIP/2.0/UDP provaider.ru:5060;branch=z9hG4bKm4pdrp2088d0p2bds7c1sd0000g00.1
Call-ID: 47e81adb08beb17d5f8e6ee34cf79dd2@provaider.ru
From: <sip:543210@provaider.ru>;tag=rlzzir00-CC-22
To: "Миша" <sip:12345@provaider.ru>;tag=as7772eac7
CSeq: 1 BYE
Reason: Q.850;cause=16;text="normal call clearing"
Max-Forwards: 69
Content-Length: 0

-------------------------------------------------------------------------------------------

2016/06/10 16:25:12.704184 172.17.0.2:5060 -> provaider.ru:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP provaider.ru:5060;branch=z9hG4bKm4pdrp2088d0p2bds7c1sd0000g00.1;received=provaider.ru
From: <sip:543210@provaider.ru>;tag=rlzzir00-CC-22
To: "Миша" <sip:12345@provaider.ru>;tag=as7772eac7
Call-ID: 47e81adb08beb17d5f8e6ee34cf79dd2@provaider.ru
CSeq: 1 BYE
Server: Asterisk PBX 13.1-cert2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Без
2016/06/10 16:13:46.137498 172.17.0.2:5060 -> provaider.ru:5060
INVITE sip:543210@provaider.ru SIP/2.0
Via: SIP/2.0/UDP 192.168.1.242:5060;branch=z9hG4bK37ea8e62
Max-Forwards: 70
From: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
To: <sip:543210@provaider.ru>
Contact: <sip:12345@192.168.1.242:5060>
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 102 INVITE
User-Agent: Asterisk PBX 13.1-cert2
Date: Fri, 10 Jun 2016 13:13:46 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 337

v=0
o=root 918917458 918917458 IN IP4 192.168.1.242
s=Asterisk PBX 13.1-cert2
c=IN IP4 192.168.1.242
t=0 0
m=audio 10448 RTP/AVP 0 8 18 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:150
a=sendrecv

-------------------------------------------------------------------------------------------

2016/06/10 16:13:46.167323 provaider.ru:5060 -> 172.17.0.2:5060
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.242:5060;received=MyIP;branch=z9hG4bK37ea8e62;rport=1024
From: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
To: <sip:543210@provaider.ru>
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 102 INVITE

-------------------------------------------------------------------------------------------

2016/06/10 16:13:46.877468 provaider.ru:5060 -> 172.17.0.2:5060
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.242:5060;received=MyIP;branch=z9hG4bK37ea8e62;rport=1024
From: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
To: <sip:543210@provaider.ru>;tag=h0eyg8le-CC-22
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 102 INVITE
Contact: <sip:543210@provaider.ru:5060;transport=udp>
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Content-Length: 227
Content-Type: application/sdp

v=0
o=SoftSwitch_Belphone 24698242 24698242 IN IP4 provaider.ru
s=Sip Call
c=IN IP4 provaider.ru
t=0 0
m=audio 50512 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15

-------------------------------------------------------------------------------------------

2016/06/10 16:13:50.195866 provaider.ru:5060 -> 172.17.0.2:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.242:5060;received=MyIP;branch=z9hG4bK37ea8e62;rport=1024
From: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
To: <sip:543210@provaider.ru>;tag=h0eyg8le-CC-22
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 102 INVITE
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Session-Expires: 3600;refresher=uac
Require: timer
Contact: <sip:543210@provaider.ru:5060;transport=udp>
Content-Length: 227
Content-Type: application/sdp

v=0
o=SoftSwitch_Belphone 24698242 24698243 IN IP4 provaider.ru
s=Sip Call
c=IN IP4 provaider.ru
t=0 0
m=audio 50512 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15

-------------------------------------------------------------------------------------------

2016/06/10 16:13:50.196140 172.17.0.2:5060 -> provaider.ru:5060
ACK sip:543210@provaider.ru:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.242:5060;branch=z9hG4bK4e173d7c
Max-Forwards: 70
From: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
To: <sip:543210@provaider.ru>;tag=h0eyg8le-CC-22
Contact: <sip:12345@192.168.1.242:5060>
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 102 ACK
User-Agent: Asterisk PBX 13.1-cert2
Content-Length: 0

-------------------------------------------------------------------------------------------

2016/06/10 16:13:50.197283 172.17.0.2:5060 -> provaider.ru:5060
INVITE sip:543210@provaider.ru:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.242:5060;branch=z9hG4bK1dfec837
Max-Forwards: 70
From: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
To: <sip:543210@provaider.ru>;tag=h0eyg8le-CC-22
Contact: <sip:12345@192.168.1.242:5060>
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 103 INVITE
User-Agent: Asterisk PBX 13.1-cert2
Session-Expires: 3600;refresher=uac
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 336

v=0
o=root 918917458 918917459 IN IP4 192.168.1.106
s=Asterisk PBX 13.1-cert2
c=IN IP4 192.168.1.106
t=0 0
m=audio 5004 RTP/AVP 8 0 18 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:150
a=sendrecv

-------------------------------------------------------------------------------------------

2016/06/10 16:13:50.376155 provaider.ru:5060 -> 172.17.0.2:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.242:5060;received=MyIP;branch=z9hG4bK1dfec837;rport=1024
From: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
To: <sip:543210@provaider.ru>;tag=h0eyg8le-CC-22
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 103 INVITE
Session-Expires: 3600;refresher=uac
Require: timer
Contact: <sip:543210@provaider.ru:5060;transport=udp>
Content-Length: 227
Content-Type: application/sdp

v=0
o=SoftSwitch_Belphone 24698242 24698244 IN IP4 provaider.ru
s=Sip Call
c=IN IP4 provaider.ru
t=0 0
m=audio 50512 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15

-------------------------------------------------------------------------------------------

2016/06/10 16:13:50.376406 172.17.0.2:5060 -> provaider.ru:5060
ACK sip:543210@provaider.ru:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.242:5060;branch=z9hG4bK05bcc14a
Max-Forwards: 70
From: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
To: <sip:543210@provaider.ru>;tag=h0eyg8le-CC-22
Contact: <sip:12345@192.168.1.242:5060>
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 103 ACK
User-Agent: Asterisk PBX 13.1-cert2
Content-Length: 0

-------------------------------------------------------------------------------------------

2016/06/10 16:13:50.376517 172.17.0.2:5060 -> provaider.ru:5060
INVITE sip:543210@provaider.ru:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.242:5060;branch=z9hG4bK71ddc61f
Max-Forwards: 70
From: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
To: <sip:543210@provaider.ru>;tag=h0eyg8le-CC-22
Contact: <sip:12345@192.168.1.242:5060>
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 104 INVITE
User-Agent: Asterisk PBX 13.1-cert2
Session-Expires: 3600;refresher=uac
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 336

v=0
o=root 918917458 918917460 IN IP4 192.168.1.106
s=Asterisk PBX 13.1-cert2
c=IN IP4 192.168.1.106
t=0 0
m=audio 5004 RTP/AVP 8 0 18 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:150
a=sendrecv

-------------------------------------------------------------------------------------------

2016/06/10 16:13:50.455647 provaider.ru:5060 -> 172.17.0.2:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.242:5060;received=MyIP;branch=z9hG4bK71ddc61f;rport=1024
From: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
To: <sip:543210@provaider.ru>;tag=h0eyg8le-CC-22
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 104 INVITE
Session-Expires: 3600;refresher=uac
Require: timer
Contact: <sip:543210@provaider.ru:5060;transport=udp>
Content-Length: 227
Content-Type: application/sdp

v=0
o=SoftSwitch_Belphone 24698242 24698245 IN IP4 provaider.ru
s=Sip Call
c=IN IP4 provaider.ru
t=0 0
m=audio 50512 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15

-------------------------------------------------------------------------------------------

2016/06/10 16:13:50.455891 172.17.0.2:5060 -> provaider.ru:5060
ACK sip:543210@provaider.ru:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.242:5060;branch=z9hG4bK59886f6a
Max-Forwards: 70
From: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
To: <sip:543210@provaider.ru>;tag=h0eyg8le-CC-22
Contact: <sip:12345@192.168.1.242:5060>
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 104 ACK
User-Agent: Asterisk PBX 13.1-cert2
Content-Length: 0

-------------------------------------------------------------------------------------------

2016/06/10 16:14:00.035105 provaider.ru:5060 -> 172.17.0.2:5060
BYE sip:12345@192.168.1.242:5060 SIP/2.0
Via: SIP/2.0/UDP provaider.ru:5060;branch=z9hG4bKttal2630b8pgf3fo41q0sd0000g00.1
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
From: <sip:543210@provaider.ru>;tag=h0eyg8le-CC-22
To: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
CSeq: 1 BYE
Reason: Q.850;cause=16;text="normal call clearing"
Max-Forwards: 69
Content-Length: 0

-------------------------------------------------------------------------------------------

2016/06/10 16:14:00.035728 172.17.0.2:5060 -> provaider.ru:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP provaider.ru:5060;branch=z9hG4bKttal2630b8pgf3fo41q0sd0000g00.1;received=provaider.ru
From: <sip:543210@provaider.ru>;tag=h0eyg8le-CC-22
To: "Миша" <sip:12345@provaider.ru>;tag=as5899f82f
Call-ID: 4966dd1d2c7e84ee3516b2ff06b859e7@provaider.ru
CSeq: 1 BYE
Server: Asterisk PBX 13.1-cert2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
april22
Сообщения: 2187
Зарегистрирован: 09 июл 2012, 09:47

Re: Звук в одну сторону, canreinvite=no только в другую

Сообщение april22 »

localnet -?
ExtIP -?
Своими вопросами , вы загоняете меня в ГУГЛЬ.
ded
Сообщения: 15625
Зарегистрирован: 26 авг 2010, 19:00

Re: Звук в одну сторону, canreinvite=no только в другую

Сообщение ded »

в транке не слышен звук удаленной стороны (гудки слышно, но после ответа не слышно того, кого вызываем), потому что провайдер шпуляет звук на 192.168.1.242 - то есть вникуда.
Это можно увидеть при
CLI> rtp set debug on
accent22
Сообщения: 17
Зарегистрирован: 06 апр 2015, 19:48

Re: Звук в одну сторону, canreinvite=no только в другую

Сообщение accent22 »

Такс... я понял... подскажите, товарищи, как быть если NAT'а 2 шт?
Т.е. есть внешний IP адрес. Главный маршрутник. За ним находятся все телефоны в сети 192.168.1.0/24. Сам Asterisk находится еще на ступень ниже - за NAT'ом, имеющим в этой сети адрес 192.168.1.242.
Asterisk имеет адрес 172.17.0.2, на который проброшены все порты с 192.168.1.242.

Код: Выделить всё

localnet=172.17.0.0/255.255.0.0
externaddr=192.168.1.242
media_address=192.168.1.242
Телефоны ходят на 192.168.1.242, попадают на 172.17.0.2 и все отлично работает. Как научить Asterisk правильно согласовывать с провайдером порты, учитывая то что главный NAT с внешним IP без функции nat loopback, и вообще очень не хотелось бы делать пробросы на нем в силу специфики работы маршрутизации. И еще вопрос - если все-таки придется использовать externaddr с внешним IP адресом - то как быть в моменты смены этого адреса - при переключении маршрутизации на резервный канал связи и обратно - скриптами?
ded
Сообщения: 15625
Зарегистрирован: 26 авг 2010, 19:00

Re: Звук в одну сторону, canreinvite=no только в другую

Сообщение ded »

accent22 писал(а):И еще вопрос - если все-таки придется использовать externaddr с внешним IP адресом - то как быть в моменты смены этого адреса - при переключении маршрутизации на резервный канал связи и обратно - скриптами?
Есть параметр externhost для этого, + dynDNS
; b. "externhost = hostname[:port]" is similar to "externaddr" except
; that the hostname is looked up every "externrefresh" seconds
; (default 10s). This can be useful when your NAT device lets you choose
; the port mapping, but the IP address is dynamic.
; Beware, you might suffer from service disruption when the name server
; resolution fails. Examples:
;
; externhost=foo.dyndns.net ; refreshed periodically
; externrefresh=180 ; change the refresh interval
accent22
Сообщения: 17
Зарегистрирован: 06 апр 2015, 19:48

Re: Звук в одну сторону, canreinvite=no только в другую

Сообщение accent22 »

Товарищи! Уже каша в голове ночами не сплю, выручайте!
Вывел Asterisk из под 2-го NAT'а (подробности: 2-ой NAT- Asterisk был собран в Docker контейнере. С флагом --net=host он теперь 192.168.1.242, т.е. за 1-м NATом, как и телефоны - в одной с ними сети).

Код: Выделить всё

externaddr=213.180.204.3
media_address=213.180.204.3
- так вообще никто никого не слышит. Даже внутренние телефоны не слышат друг друга.

Код: Выделить всё

externaddr=213.180.204.3
media_address=192.168.1.242 (или без этого параметра)
- внешние абоненты нас слышат, но мы их нет

Код: Выделить всё

externaddr=192.168.1.242
media_address=192.168.1.242 (или без этого параметра)
- на данный момент самый лучший вариант - при входящих звонках все друг друга слышат, но при исходящих - мы не слышим, нас слышат.

"rtp set debug on" - при отсутствии звука - пакеты не бегут.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: sip.conf
[general]
localnet=192.168.0.0/255.255.255.0
localnet=192.168.1.0/255.255.255.0
localnet=192.168.3.0/255.255.255.0

externaddr=213.180.204.3
;externaddr=192.168.1.242
;media_address=213.180.204.3
media_address=192.168.1.242
directmedia=no

register =>12345:qwert@provaider.ru/129

[trunk1]
type=friend
username=12345
secret=qwert
callerid=12345
host=provaider.ru
fromuser=12345
fromdomain=provaider.ru
dtmfmode=rfc2833
insecure=invite,port
context=test
disallow=all
allow=alaw
allow=ulaw
allow=g729
allow=gsm
nat=force_rport,comedia
canreinvite=no

[129]
type=friend
host=dynamic
qualify=yes
disallow=all
allow=ulaw
allow=g722
allow=g729
allow=alaw
allow=gsm
secret=PassW
host=dynamic
dial=SIP/129
callerid=Тест <129>
context=test
Дебаг при втором варианте (externaddr=213.180.204.3)
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: sip set debug ip
SRV*CLI> sip set debug ip provaider.ru
SIP Debugging Enabled for IP: provaider.ru

== Using SIP RTP CoS mark 5

-- Executing [543210@test:1] Dial("SIP/129-00000077", "SIP/trunk1/543210,120") in new stack

== Using SIP RTP CoS mark 5

Audio is at 10406

Adding codec ulaw to SDP
Adding codec alaw to SDP
Adding codec g729 to SDP
Adding codec gsm to SDP
Adding non-codec 0x1 (telephone-event) to SDP

Reliably Transmitting (NAT) to provaider.ru:5060:
INVITE sip:543210@provaider.ru SIP/2.0
Via: SIP/2.0/UDP 213.180.204.3:5060;branch=z9hG4bK6ab66314;rport
Max-Forwards: 70
From: "Тест" <sip:12345@provaider.ru>;tag=as37712631
To: <sip:543210@provaider.ru>
Contact: <sip:12345@213.180.204.3:5060>
Call-ID: 6d3335996dd3c9f21de605ee20eb3542@provaider.ru
CSeq: 102 INVITE
User-Agent: Asterisk PBX 13.1-cert2
Date: Wed, 15 Jun 2016 11:11:11 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 335

v=0
o=root 913262846 913262846 IN IP4 213.180.204.3
s=Asterisk PBX 13.1-cert2
c=IN IP4 213.180.204.3
t=0 0
m=audio 10406 RTP/AVP 0 8 18 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:150
a=sendrecv

---
-- Called SIP/trunk1/543210


<--- SIP read from UDP:provaider.ru:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 213.180.204.3:5060;received=213.180.204.3;branch=z9hG4bK6ab66314;rport=5060
From: "Тест" <sip:12345@provaider.ru>;tag=as37712631
To: <sip:543210@provaider.ru>
Call-ID: 6d3335996dd3c9f21de605ee20eb3542@provaider.ru
CSeq: 102 INVITE

<------------->

--- (6 headers 0 lines) ---


<--- SIP read from UDP:provaider.ru:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 213.180.204.3:5060;received=213.180.204.3;branch=z9hG4bK6ab66314;rport=5060
From: "Тест" <sip:12345@provaider.ru>;tag=as37712631
To: <sip:543210@provaider.ru>;tag=kidzyk8y-CC-22
Call-ID: 6d3335996dd3c9f21de605ee20eb3542@provaider.ru
CSeq: 102 INVITE
Contact: <sip:543210@provaider.ru:5060;transport=udp>
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Content-Length: 227
Content-Type: application/sdp

v=0
o=SoftSwitch_Belphone 24950861 24950861 IN IP4 provaider.ru
s=Sip Call
c=IN IP4 provaider.ru
t=0 0
m=audio 17198 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15
<------------->
--- (10 headers 10 lines) ---
sip_route_dump: route/path hop: <sip:543210@provaider.ru: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|ulaw|g729|gsm), 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 provaider.ru:17198

-- SIP/trunk1-00000078 is ringing

-- SIP/trunk1-00000078 is making progress passing it to SIP/129-00000077


<--- SIP read from UDP:provaider.ru:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 213.180.204.3:5060;received=213.180.204.3;branch=z9hG4bK6ab66314;rport=5060
From: "Тест" <sip:12345@provaider.ru>;tag=as37712631
To: <sip:543210@provaider.ru>;tag=kidzyk8y-CC-22
Call-ID: 6d3335996dd3c9f21de605ee20eb3542@provaider.ru
CSeq: 102 INVITE
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Session-Expires: 3600;refresher=uac
Require: timer
Contact: <sip:543210@provaider.ru:5060;transport=udp>
Content-Length: 227
Content-Type: application/sdp

v=0
o=SoftSwitch_Belphone 24950861 24950862 IN IP4 provaider.ru
s=Sip Call
c=IN IP4 provaider.ru
t=0 0
m=audio 17198 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15
<------------->
--- (12 headers 10 lines) ---
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|ulaw|g729|gsm), 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 provaider.ru:17198
sip_route_dump: route/path hop: <sip:543210@provaider.ru:5060;transport=udp>
Transmitting (NAT) to provaider.ru:5060:
ACK sip:543210@provaider.ru:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 213.180.204.3:5060;branch=z9hG4bK4d515bb3;rport
Max-Forwards: 70
From: "Тест" <sip:12345@provaider.ru>;tag=as37712631
To: <sip:543210@provaider.ru>;tag=kidzyk8y-CC-22
Contact: <sip:12345@213.180.204.3:5060>
Call-ID: 6d3335996dd3c9f21de605ee20eb3542@provaider.ru
CSeq: 102 ACK
User-Agent: Asterisk PBX 13.1-cert2
Content-Length: 0


---
-- SIP/trunk1-00000078 answered SIP/129-00000077

-- Channel SIP/129-00000077 joined 'simple_bridge' basic-bridge <de60d726-b856-4b09-8f0f-c57b0ec3d665>

-- Channel SIP/trunk1-00000078 joined 'simple_bridge' basic-bridge <de60d726-b856-4b09-8f0f-c57b0ec3d665>

> Bridge de60d726-b856-4b09-8f0f-c57b0ec3d665: switching from simple_bridge technology to native_rtp

> 0x7f7e4411e730 -- Probation passed - setting RTP source address to 192.168.1.106:5008

> 0x7f7e107fe310 -- Probation passed - setting RTP source address to provaider.ru:17198


<--- SIP read from UDP:provaider.ru:5060 --->
BYE sip:12345@213.180.204.3:5060 SIP/2.0
Via: SIP/2.0/UDP provaider.ru:5060;branch=z9hG4bKj9eb3k300gj0i2fd43m1sd0000g00.1
Call-ID: 6d3335996dd3c9f21de605ee20eb3542@provaider.ru
From: <sip:543210@provaider.ru>;tag=kidzyk8y-CC-22
To: "Тест" <sip:12345@provaider.ru>;tag=as37712631
CSeq: 1 BYE
Reason: Q.850;cause=16;text="normal call clearing"
Max-Forwards: 69
Content-Length: 0

<------------->
--- (9 headers 0 lines) ---
Sending to provaider.ru:5060 (NAT)

Scheduling destruction of SIP dialog '6d3335996dd3c9f21de605ee20eb3542@provaider.ru' in 32000 ms (Method: BYE)


<--- Transmitting (NAT) to provaider.ru:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP provaider.ru:5060;branch=z9hG4bKj9eb3k300gj0i2fd43m1sd0000g00.1;received=provaider.ru;rport=5060
From: <sip:543210@provaider.ru>;tag=kidzyk8y-CC-22
To: "Тест" <sip:12345@provaider.ru>;tag=as37712631
Call-ID: 6d3335996dd3c9f21de605ee20eb3542@provaider.ru
CSeq: 1 BYE
Server: Asterisk PBX 13.1-cert2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


<------------>
-- Channel SIP/trunk1-00000078 left 'native_rtp' basic-bridge <de60d726-b856-4b09-8f0f-c57b0ec3d665>

-- Channel SIP/129-00000077 left 'native_rtp' basic-bridge <de60d726-b856-4b09-8f0f-c57b0ec3d665>

== Spawn extension (test, 543210, 1) exited non-zero on 'SIP/129-00000077'

-- Channel SIP/127-00000076 left 'simple_bridge' basic-bridge <6da0441d-6d04-4596-b4fb-b4fb4f026ca9>

-- Channel SIP/193-00000075 left 'simple_bridge' basic-bridge <6da0441d-6d04-4596-b4fb-b4fb4f026ca9>
ded
Сообщения: 15625
Зарегистрирован: 26 авг 2010, 19:00

Re: Звук в одну сторону, canreinvite=no только в другую

Сообщение ded »

Может всё же
externip=213.180.204.3
а не
externaddr=213.180.204.3
??

И. всё же, начните со схем. Там как раз указано externip=
Изображение
Изображение
accent22
Сообщения: 17
Зарегистрирован: 06 апр 2015, 19:48

Re: Звук в одну сторону, canreinvite=no только в другую

Сообщение accent22 »

Пробовал, результат тот же. Дебаг при externip=213.180.204.3 :
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: sip set debug ip
== Using SIP RTP CoS mark 5

-- Executing [543210@test:1] Dial("SIP/129-000000fd", "SIP/Trunk1/543210,120") in new stack

== Using SIP RTP CoS mark 5

Audio is at 10150
Adding codec ulaw to SDP
Adding codec alaw to SDP

Adding codec g729 to SDP
Adding codec gsm to SDP
Adding non-codec 0x1 (telephone-event) to SDP

Reliably Transmitting (NAT) to provaider.ru:5060:
INVITE sip:543210@provaider.ru SIP/2.0
Via: SIP/2.0/UDP 213.180.204.3:5060;branch=z9hG4bK6e65ae95;rport
Max-Forwards: 70
From: "Тест" <sip:12345@provaider.ru>;tag=as21dcb66a
To: <sip:543210@provaider.ru>
Contact: <sip:12345@213.180.204.3:5060>
Call-ID: 3b0d2e877d7feeb42a1027e07ad20c47@provaider.ru
CSeq: 102 INVITE
User-Agent: Asterisk PBX 13.1-cert2
Date: Wed, 15 Jun 2016 14:18:25 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 335

v=0
o=root 828216053 828216053 IN IP4 213.180.204.3
s=Asterisk PBX 13.1-cert2
c=IN IP4 213.180.204.3
t=0 0
m=audio 10150 RTP/AVP 0 8 18 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:150
a=sendrecv

---
-- Called SIP/Trunk1/543210


<--- SIP read from UDP:provaider.ru:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 213.180.204.3:5060;received=213.180.204.3;branch=z9hG4bK6e65ae95;rport=5060
From: "Тест" <sip:12345@provaider.ru>;tag=as21dcb66a
To: <sip:543210@provaider.ru>
Call-ID: 3b0d2e877d7feeb42a1027e07ad20c47@provaider.ru
CSeq: 102 INVITE

<------------->
--- (6 headers 0 lines) ---


<--- SIP read from UDP:provaider.ru:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 213.180.204.3:5060;received=213.180.204.3;branch=z9hG4bK6e65ae95;rport=5060
From: "Тест" <sip:12345@provaider.ru>;tag=as21dcb66a
To: <sip:543210@provaider.ru>;tag=kzaergrb-CC-22
Call-ID: 3b0d2e877d7feeb42a1027e07ad20c47@provaider.ru
CSeq: 102 INVITE
Contact: <sip:543210@provaider.ru:5060;transport=udp>
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Content-Length: 227
Content-Type: application/sdp

v=0
o=SoftSwitch_Belphone 24963802 24963802 IN IP4 provaider.ru
s=Sip Call
c=IN IP4 provaider.ru
t=0 0
m=audio 14722 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15
<------------->
--- (10 headers 10 lines) ---
sip_route_dump: route/path hop: <sip:543210@provaider.ru: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|ulaw|g729|gsm), 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 provaider.ru:14722
-- SIP/Trunk1-000000fe is ringing

-- SIP/Trunk1-000000fe is making progress passing it to SIP/129-000000fd


<--- SIP read from UDP:provaider.ru:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 213.180.204.3:5060;received=213.180.204.3;branch=z9hG4bK6e65ae95;rport=5060
From: "Тест" <sip:12345@provaider.ru>;tag=as21dcb66a
To: <sip:543210@provaider.ru>;tag=kzaergrb-CC-22
Call-ID: 3b0d2e877d7feeb42a1027e07ad20c47@provaider.ru
CSeq: 102 INVITE
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Session-Expires: 3600;refresher=uac
Require: timer
Contact: <sip:543210@provaider.ru:5060;transport=udp>
Content-Length: 227
Content-Type: application/sdp

v=0
o=SoftSwitch_Belphone 24963802 24963803 IN IP4 provaider.ru
s=Sip Call
c=IN IP4 provaider.ru
t=0 0
m=audio 14722 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15
<------------->
--- (12 headers 10 lines) ---
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|ulaw|g729|gsm), 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 provaider.ru:14722
sip_route_dump: route/path hop: <sip:543210@provaider.ru:5060;transport=udp>

Transmitting (NAT) to provaider.ru:5060:
ACK sip:543210@provaider.ru:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 213.180.204.3:5060;branch=z9hG4bK7b5b8a35;rport
Max-Forwards: 70
From: "Тест" <sip:12345@provaider.ru>;tag=as21dcb66a
To: <sip:543210@provaider.ru>;tag=kzaergrb-CC-22
Contact: <sip:12345@213.180.204.3:5060>
Call-ID: 3b0d2e877d7feeb42a1027e07ad20c47@provaider.ru
CSeq: 102 ACK
User-Agent: Asterisk PBX 13.1-cert2
Content-Length: 0


---

-- SIP/Trunk1-000000fe answered SIP/129-000000fd

-- Channel SIP/129-000000fd joined 'simple_bridge' basic-bridge <5e18aa28-ae5d-4526-8887-a6523408167c>

-- Channel SIP/Trunk1-000000fe joined 'simple_bridge' basic-bridge <5e18aa28-ae5d-4526-8887-a6523408167c>
> Bridge 5e18aa28-ae5d-4526-8887-a6523408167c: switching from simple_bridge technology to native_rtp

> 0x7f7e44042d20 -- Probation passed - setting RTP source address to 192.168.1.106:5008

> 0x7f7e1049b400 -- Probation passed - setting RTP source address to provaider.ru:14722


<--- SIP read from UDP:provaider.ru:5060 --->
BYE sip:12345@213.180.204.3:5060 SIP/2.0
Via: SIP/2.0/UDP provaider.ru:5060;branch=z9hG4bKe8e7in005of0s2bm50r0sd0000g00.1
Call-ID: 3b0d2e877d7feeb42a1027e07ad20c47@provaider.ru
From: <sip:543210@provaider.ru>;tag=kzaergrb-CC-22
To: "Тест" <sip:12345@provaider.ru>;tag=as21dcb66a
CSeq: 1 BYE
Reason: Q.850;cause=16;text="normal call clearing"
Max-Forwards: 69
Content-Length: 0

<------------->
--- (9 headers 0 lines) ---
Sending to provaider.ru:5060 (NAT)

Scheduling destruction of SIP dialog '3b0d2e877d7feeb42a1027e07ad20c47@provaider.ru' in 32000 ms (Method: BYE)


<--- Transmitting (NAT) to provaider.ru:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP provaider.ru:5060;branch=z9hG4bKe8e7in005of0s2bm50r0sd0000g00.1;received=provaider.ru;rport=5060
From: <sip:543210@provaider.ru>;tag=kzaergrb-CC-22
To: "Тест" <sip:12345@provaider.ru>;tag=as21dcb66a
Call-ID: 3b0d2e877d7feeb42a1027e07ad20c47@provaider.ru
CSeq: 1 BYE
Server: Asterisk PBX 13.1-cert2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


<------------>
-- Channel SIP/Trunk1-000000fe left 'native_rtp' basic-bridge <5e18aa28-ae5d-4526-8887-a6523408167c>

-- Channel SIP/129-000000fd left 'native_rtp' basic-bridge <5e18aa28-ae5d-4526-8887-a6523408167c>

== Spawn extension (test, 543210, 1) exited non-zero on 'SIP/129-000000fd'
Аватара пользователя
Zavr2008
Сообщения: 2211
Зарегистрирован: 27 янв 2011, 00:35
Контактная информация:

Re: Звук в одну сторону, canreinvite=no только в другую

Сообщение Zavr2008 »

o=SoftSwitch_Belphone
Сочувствую..

Что является маршрутизатором, дающему такой веселый NAT? Есть ли у него отключение SIP ALG?
Что с RTP - сами пакетики доходят до астера?
Российские E1 шлюзы Alvis. Модернизация УПАТС с E1,Подключение к ИС "Антифрод" E1 PRI/SS#7 УВР Телестор, Грифин и др..
ded
Сообщения: 15625
Зарегистрирован: 26 авг 2010, 19:00

Re: Звук в одну сторону, canreinvite=no только в другую

Сообщение ded »

Судя по дебагу - установилось RTP соединение между 192.168.1.106:5008 и provaider.ru:14722

Код: Выделить всё

> 0x7f7e44042d20 -- Probation passed - setting RTP source address to 192.168.1.106:5008
> 0x7f7e1049b400 -- Probation passed - setting RTP source address to provaider.ru:14722
Вы наблуюдали трафик при помощи команды
CLI> rtp set debug on

??
Ответить
© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH