Problem with WebRTC

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Problem with WebRTC

Postby liigi » Tue Jun 29, 2021 6:52 pm

Hi all

recently I have had problems with the webrtc and been investigating which is the reason.I have a cluster with 7 dialers which has been working very well for a year, the servers are hosted in aws.

VERSION: 2.14-773a
BUILD: 201101-1056
Version: 2.14b0.5
SVN Version: 3309
DB Schema Version: 1609
DB Schema Update Date: 2020-11-03 21:32:28

A couple of days ago several ext lost audio and I realized that all the ext of 2 of my dialers had the same problem , i double check conf but all are ok and no recent changes were made.
I noticed that if I connect to the VPN, where my servers are, the audio works without a problem, but not from the internet.I also noticed that if I restart the server several times at some point I recover the audio or when restoring the vps. I thought it was a problem with the dialers that presented the failure, but today other dialers also failed. i reboot several tiems and it works again

i check serverconf , firewall ports and all is ok .
I have in sip :
nat=force_rport_comedia

and rtp.conf :

icesupport=true

stunaddr=stun.l.google.com:19302







I
liigi
 
Posts: 70
Joined: Wed Jul 13, 2016 4:39 pm

Re: Problem with WebRTC

Postby carpenox » Tue Jun 29, 2021 7:09 pm

It's aws. Switch
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Problem with WebRTC

Postby liigi » Wed Jun 30, 2021 7:30 am

apparently the problem is the stun server , in the traces, the external ip of my server appears as 0.0.0.0 I am trying to force placing the public ip in the rtp so as not to have to use the stun server
liigi
 
Posts: 70
Joined: Wed Jul 13, 2016 4:39 pm

Re: Problem with WebRTC

Postby liigi » Wed Jun 30, 2021 7:31 am

the Switch?
liigi
 
Posts: 70
Joined: Wed Jul 13, 2016 4:39 pm

Re: Problem with WebRTC

Postby liigi » Wed Jun 30, 2021 2:52 pm

put this in rtp.conf work , but i dont undertand why the stun server stop working

The following will include BOTH 192.168.1.10 and 1.2.3.4 during ICE
; negotiation instead of replacing 192.168.1.10. This can make it easier
; to serve both local and remote clients.
;
liigi
 
Posts: 70
Joined: Wed Jul 13, 2016 4:39 pm

Re: Problem with WebRTC

Postby liigi » Wed Jun 30, 2021 2:53 pm

carpenox wrote:It's aws. Switch


Why the aws switch is the problem ?
liigi
 
Posts: 70
Joined: Wed Jul 13, 2016 4:39 pm

Re: Problem with WebRTC

Postby carpenox » Wed Jun 30, 2021 9:27 pm

AWS constantly makes changes on their backend that messes with webrtc
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Problem with WebRTC

Postby liigi » Mon Jul 05, 2021 8:38 am

Ok thanks for the reply
liigi
 
Posts: 70
Joined: Wed Jul 13, 2016 4:39 pm

Re: Problem with WebRTC

Postby carpenox » Mon Jul 05, 2021 2:53 pm

Switch your stun server. Google stun died
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Problem with WebRTC

Postby dhijrwn » Mon Jul 05, 2021 5:23 pm

carpenox wrote:Switch your stun server. Google stun died


does viciphone uses google stuns?
Cluster setup i7-9700 cpu @ 3.00ghz 32GB ram 1xDB WEB ARCH 11xTEL 4core
ViciBox v.9.0.3 ISO VERSION:2.14-853a BUILD: 220328-1420
SVN: 3595 DB Schema: 1657 | Asterisk 13.29.2-vici
Zoiper 5 | VICIPhone| No Digium/Sangoma Hardware
dhijrwn
 
Posts: 149
Joined: Tue Jan 07, 2020 6:12 am

Re: Problem with WebRTC

Postby carpenox » Tue Jul 06, 2021 8:02 am

yes, edit the rtp.conf file, its the last line. heres a list of public stun servers: https://gist.github.com/mondain/b0ec1cf5f60ae726202e
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Problem with WebRTC

Postby carpenox » Tue Jul 06, 2021 8:10 am

I have created a quick article for anyone having this problem:

https://cyburdial.net/why-doesnt-my-web ... k-anymore/
Last edited by carpenox on Tue Jan 18, 2022 1:48 pm, edited 1 time in total.
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Problem with WebRTC

Postby dhijrwn » Tue Jul 06, 2021 2:06 pm

I'm experiencing this issue in viciphone 2, Suddenly customer cannot hear the agent, but agent hears customer. In recording both side are recorded. but sometimes it is working fine both side can communicate. My stunaddr in my /etc/asterisk/rtp.conf is currently commented, should i edit this?
Cluster setup i7-9700 cpu @ 3.00ghz 32GB ram 1xDB WEB ARCH 11xTEL 4core
ViciBox v.9.0.3 ISO VERSION:2.14-853a BUILD: 220328-1420
SVN: 3595 DB Schema: 1657 | Asterisk 13.29.2-vici
Zoiper 5 | VICIPhone| No Digium/Sangoma Hardware
dhijrwn
 
Posts: 149
Joined: Tue Jan 07, 2020 6:12 am

Re: Problem with WebRTC

Postby carpenox » Tue Jul 06, 2021 5:19 pm

yes add a stun server
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Problem with WebRTC

Postby carpenox » Tue Jul 06, 2021 5:19 pm

yes add a stun server
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Problem with WebRTC

Postby dhijrwn » Tue Jul 06, 2021 8:06 pm

Thank you, how do I know that it is applied? Is there any command to show to the cli or logs?
Cluster setup i7-9700 cpu @ 3.00ghz 32GB ram 1xDB WEB ARCH 11xTEL 4core
ViciBox v.9.0.3 ISO VERSION:2.14-853a BUILD: 220328-1420
SVN: 3595 DB Schema: 1657 | Asterisk 13.29.2-vici
Zoiper 5 | VICIPhone| No Digium/Sangoma Hardware
dhijrwn
 
Posts: 149
Joined: Tue Jan 07, 2020 6:12 am

Re: Problem with WebRTC

Postby carpenox » Wed Jul 07, 2021 11:18 am

just run a "core reload" in asterisk
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 57 guests