Could not able to listen audio notification via WebRTC - webrtc

I have setup WebRTC using verto module of freeswitch and we have done everything successfully just the one thing we are experiencing since long time and could not get any solution.
I want to play a account balance when ever any user try to make call and if there is a no balance in account need to play "Not enough credit in account".
Now the problem is Freeswitch actually playing those notification which we can able to listen properly if we make call using soft-phone but i could not able to listen it via WebRTC web phone.
any one can help me to fix this issue?

Related

How to always connect to socket.io even when shutdown or exit the application to be able to receive notifications from calls or messages(React Native)

I'm having a problem with react native
my app can let you video call each other using webRTC and socket.io, the technologies i use are WebRTC, React Native, Socket.io , socket.io-client, react-native-webrtc
Basically the way my app works is when you open the app you automatically connect to socket.io to listen and make calls but when I turn off the phone screen or exit the app I can't hear and receive calls can call again because at that time the socket has automatically disconnected.
I want my application can still work properly even if I exit the application my application can still receive notifications of incoming calls from another person, can say I want my application Works like Messenger App
My current workaround is to find a way for each user's socket to always be connected to listen for incoming calls from others.
Has anyone encountered this problem or have a solution for this please let me know, I really appreciate it
Thank you guys, Have a nice day <3
Move your socket to the Background service and then you can add the socket events in the service.
Note: This will increase your battery consumption.

Reverse Engineering HTTP API between iOS device and wifi device on same network

I have a device that connects wirelessly to my network. This deivce has a dedicated iOS app but it hasnt been updated in a while and I worry it is no longer supported/updated and therefore it will eventually stop working.
What I would like to do it try to capture the data between the app and the device and reverse engineer the API so write my own app.
I can see that the device has port 8080 open so I am hoping that it is a HTTP based API but on a non standard port.
Ive looked and both Fiddler and Postman but cant quite seem to work out whether their proxy will capture the data from from port 8080 or just 80/443.
Any thoughts how to do this?
Thanks

Issues encountered on a fresh installation of RocketChat (1524) on Ubuntu

I have just downloaded and installed latest Rocket.chat using SNAP tool on Ubuntu (16.04 LTS). Overall, I had a smooth experience of installing and getting started with Rocket.chat. However, I did find a few serious issues.
I try to get auto SSL running by following the instructions at: https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/autossl/. But after configuring the Caddy file, the Caddy service failed to start, with the message:
Activating privacy features… 2018/04/24 17:58:09 open /root/snap/rocketchat-server/1254/.caddy/acme/acme-v02.api.letsencrypt.org/sites//.crt: no such file or directory
The second issue is with start video chat using webRTC. When I clicked on it, nothing happened. I am using Chrome browser and tried to start video chat on several devices. All the Chrome browsers have passed the webRTC tests. I don’t know why video screen is not shown.
I signed in with open.rocket.chat and compared the differences between my installation and the official site. When my browser points to open.rocket.chat site, the videochat does not work either. It does show the video window, but only displays only myself, not the remote member. Note to experiment, I signed up with 2 accounts to simulate 2 members chatting.
Also I downloaded the Android Rocketchat client. However, I couldn’t find the start video chat option. Is it true that video chat is unavailable yet on the Android client?
To summarise, we have the issue of setting up auto SSL with Caddy, and using video chat (webRTC). It could be that I missed a few basic configurations on my environment. Other functions like text messaging works fine.
We are deciding whether we should use Slack/CometChat for our instant messaging solution. It seems RocketChat has all the features we want, but it is a pity we couldn’t get it to work completely.
Appreciate someone can guide me in this.
I did some investigations on these issues, and have made some progress. I'd like to share my findings, which I hope could be of some help in future to newbies of RocketChat like me.
However, I still have a few issues unresolved, and hope someone could help.
Caddy service failed to start
Using self-signed certificate and defining the domain name in /etc/hosts, I can get Caddy service to start and https to work. My guess is that the domain name I used, even it is registered with a DNS provider, has no CNAME record, and is not mapped to any IP address. Letsencrypt, which is used by Caddy to do on-demand SSL, therefore is unable to create a SSL certificate for my domain name. It would be nice if the RocketChat documentation could make it clearer.
open.rocket.chat WebRTC-based video chat not working
after I used another Windows machine, the video chat is working. Presumably my previous computer does not have the latest Windows update. But I am glad with open.rocket.chat site, every feature I tested is working.
On my self-hosted Rocket-chat (i.e. a Linux server at home), however, the video chat is still not working. When I clicked on the "start video chat" button, no video screen is launched on my browser window. On the remote browser (which was used for simulating the conversation partner), there is a notification "xxx invites you to video chat, do you accept?". I clicked on "Yes". After that, nothing happens on the remote browser. The only issue I can think of is that I didn't use https to connect to the self-hosted Rocket-chat. Because I am using several computers in my home wireless network. I only use http://192.168.0.3:3000 to point to the chat server. I am wondering if secure connection is required in order to use video chat?
On the Android Rocket Chat app, I couldn't find any links to start a video chat, nor can I receive any video chat invite. Is it by design or a defect?
Hope someone can enlighten me on these issues.
I made further investigation as to why webRTC does not work on my self-hosted Rocket-chat instance. It is related to secured connection. There is a related discussion in the RocketChat forum:
https://github.com/RocketChat/Rocket.Chat/issues/1813
Basically, the connection to the Rocket.chat server must be secure for WebRtc to work. After I configure Caddy to support HTTPS listening on Rocket.Chat (currently using self-signed certificate), WebRTC works. It would really help users if the documentation can make this clear.
Now the remaining issue for me is to figure out if Android Rocket Chat app supports Web RTC.

WebRTC not working behind a VPN

The video chat works with most users, but I couldn't get a video chat to work with one of the user of my website.
She couldn't see me, and I couldn't see her.
I don't have any details how it failed like if it was at the SDP negotiation, or if she failed a connection to our TURN server (coturn), but hopefully someone has made it work for VPN users and has an answer for this issue.
ICE failures can happen, no matter what. The ice connection state will go to failed and simplewebrtc will give you an iceFailed event here. You'll need to handle that in your UI somehow.

cant receive push notifications only at home wifi

that's my problem. when i am at my home connected with wifi, my wifi bars stay white, and my htc inspire 4g (jellytime) nor my wife's samsung s3 receive any notifications.
if we switch back to data connection, all our hangouts, whatsapps etc notifications
begin to arrive.
i know this is some type of problem with my wifi config or maybe ISP problem, but how can i test the conectivity to GCM servers from any device and debug the real problem? this could be DNS, or TCP connection timeout, etc...
thanks in advance.
ps: i already tried switching the router to 802.11g only, and fix one wireless channel, but that doesn't seems to work.
The problem seems not to be with the GCM server or your third party server or even your code if you are able to see the push notifications on your device when you are connected to 3G/4G. The issue is with the settings, Please check you system settings or other applications settings, as "google settings".
Also make sure that you are implementing your WiFi class/code with the WakefulBroadcastReceiver. (As you might have done with the C2dm Service).
And also your maifest file has "android.permission.INTERNET" & "android.permission.ACCESS_WIFI_STATE" permissions
Hope that would help!!