Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] webrtc no audio


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
cervajs at fpf.slu.cz
Guest





PostPosted: Mon Aug 10, 2015 7:34 am    Post subject: [asterisk-users] webrtc no audio Reply with quote

hello,

i'm facing strange problem

asterisk13.5 + chan_sip wss transport + SIPML5 1.5.230
person1 to person3 are behind different NATs
audio devices double checked

call from person1(chrome) to person2(chrome) works
call from person1(chrome) to person 3(chrome) - no audio on both side
(RTP flowing only in one direction)
call from person2(chrome) to person 3(chrome) - no audio on both side
(RTP flowing only in one direction)
BUT
call from person2(chrome) to person 3(Jitsi sip client) - works!

any tips howto find the problem?

--
---------------------------------------
Marek Cervenka
=======================================


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jcolp at digium.com
Guest





PostPosted: Mon Aug 10, 2015 10:36 am    Post subject: [asterisk-users] webrtc no audio Reply with quote

Marek Cervenka wrote:
Quote:
hello,

i'm facing strange problem

asterisk13.5 + chan_sip wss transport + SIPML5 1.5.230
person1 to person3 are behind different NATs
audio devices double checked

call from person1(chrome) to person2(chrome) works
call from person1(chrome) to person 3(chrome) - no audio on both side
(RTP flowing only in one direction)
call from person2(chrome) to person 3(chrome) - no audio on both side
(RTP flowing only in one direction)
BUT
call from person2(chrome) to person 3(Jitsi sip client) - works!

any tips howto find the problem?

You would need to look at the ICE negotiation to see if it tried and
failed. After that would be looking at the DTLS negotiation. Asterisk
console output could provide some information.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
vinicius at aittelecom...
Guest





PostPosted: Mon Aug 10, 2015 8:41 pm    Post subject: [asterisk-users] webrtc no audio Reply with quote

I'm having the same issue! The difference in my case is Asterisk server has a public IPv4 and the browser is behind a single NAT.

I'm forwarding my configuration below (which I posted previously on asterisk-users).

How can we debug ICE negotiation?




---------- Forwarded message ----------
From: Vinicius Fontes <vinicius@aittelecom.com.br (vinicius@aittelecom.com.br)>
Date: 2015-07-27 13:54 GMT-03:00
Subject: No audio on SIP over WebRTC
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com (asterisk-users@lists.digium.com)>


I'm following this tutorial (https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5) to deploy WebRTC support but I'm having an issue with RTP when the WebRTC softphone is behind NAT.

In my scenario, the Asterisk server is running a public IPv4, and the softphone is behind NAT. I can register and make a call normally, but I don't get any audio in neither way (Asterisk/softphone and softphone/Asterisk). Using the very same config files but having the softphone and Asterisk on the same network it works fine.


Any tips on how to solve this? Here's my relevant files.


;sip.conf:
[general]
udpbindaddr=0.0.0.0:5060
realm=10.201.0.106 ;replace with your Asterisk server public IP address or host
transport=udp,ws,wss
tlsenable=yes
tlsbindaddr=0.0.0.0
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlscafile=/etc/asterisk/keys/ca.crt
tlscipher=ALL
tlsclientmethod=tlsv1


[6000]
host=dynamic
secret=mysecret
context=default
type=friend
icesupport=yes
directmedia=no
disallow=all
allow=ulaw
qualify=yes


[6001]
host=dynamic
secret=mysecret
context=default
type=friend
encryption=yes
avpf=yes
force_avp=yes
icesupport=yes
directmedia=no
disallow=all
allow=ulaw
dtlsenable=yes
dtlsverify=fingerprint
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlscafile=/etc/asterisk/keys/ca.crt
dtlssetup=actpass




extensions.conf:
[default]
exten => _6XXX,1,Dial(SIP/${EXTEN})




rtp.conf:
[general]
rtpstart=10000
rtpend=20000
icesupport=yes
stunaddr=stun.l.google.com:19302










2015-08-10 12:35 GMT-03:00 Joshua Colp <jcolp@digium.com (jcolp@digium.com)>:
Quote:
Marek Cervenka wrote:
Quote:
hello,

i'm facing strange problem

asterisk13.5 + chan_sip wss transport + SIPML5 1.5.230
person1 to person3 are behind different NATs
audio devices double checked

call from person1(chrome) to person2(chrome) works
call from person1(chrome) to person 3(chrome) - no audio on both side
(RTP flowing only in one direction)
call from person2(chrome) to person 3(chrome) - no audio on both side
(RTP flowing only in one direction)
BUT
call from person2(chrome) to person 3(Jitsi sip client) - works!

any tips howto find the problem?

You would need to look at the ICE negotiation to see if it tried and failed. After that would be looking at the DTLS negotiation. Asterisk console output could provide some information.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Back to top
jcolp at digium.com
Guest





PostPosted: Tue Aug 11, 2015 5:19 am    Post subject: [asterisk-users] webrtc no audio Reply with quote

Vinicius Fontes wrote:
Quote:
I'm having the same issue! The difference in my case is Asterisk server
has a public IPv4 and the browser is behind a single NAT.

I'm forwarding my configuration below (which I posted previously on
asterisk-users).

How can we debug ICE negotiation?

You have to do a packet capture, look at the exchange in Wireshark, and
see how the negotiation flows. It requires a basic understanding of ICE.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
cervajs at fpf.slu.cz
Guest





PostPosted: Wed Aug 12, 2015 3:23 am    Post subject: [asterisk-users] webrtc no audio Reply with quote

Dne 11.8.2015 v 12:18 Joshua Colp napsal(a):
Quote:
Vinicius Fontes wrote:
Quote:
I'm having the same issue! The difference in my case is Asterisk server
has a public IPv4 and the browser is behind a single NAT.

I'm forwarding my configuration below (which I posted previously on
asterisk-users).

How can we debug ICE negotiation?

You have to do a packet capture, look at the exchange in Wireshark,
and see how the negotiation flows. It requires a basic understanding
of ICE.


it looks like we are facing this problem
https://issues.asterisk.org/jira/browse/ASTERISK-24146 too
if we use "[]" in sipml5 expert config "To disable TURN/STUN to speedup
ICE candidates gathering you can use an empty array. e.g. []."
it works better




--
---------------------------------------
Marek Cervenka
=======================================


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services