How to receive a pulse in Javascript Sinch SDK call to PSTN - sinch

I can see in the JS reference how to send a dial tone, but how can I process an incoming one in the JS SDK?
In other words, I need the call receiver to be able to press a number in their phone to acknowledge something and trigger an action in JS

DTMF is not for the other end JS client to recieve, its for the rest api to react on, think IVR etc
See #Redaniums (https://stackoverflow.com/users/3339316/redanium) comment above https://www.sinch.com/docs/voice/rest/#PIE

Related

Retrieve caller-ID in Microsoft Teams in realtime

I'm trying to integrate Teams with an external service by using a Teams Bot/App. The app should call an external API with the caller-ID of the incoming PSTN call.
My success went so far, that I could get a list of the last calls but they were far away from being realtime and the caller-ID was masked.
Is it possible at all to "listen" to call metadata in realtime?
You can Retrieve the Call id by Subscribe for Microsoft Graph change notifications to be notified when your user's data changes, so you don't have to poll for changes. check Use the Microsoft Graph API to get change notifications also check this sample. when you subscribe to call

Receiving text with C# SDK

While exploring RingCentral C# SDK, we have a requirement of receiving SMS.
I know how to use C# SDK for sending SDK, but wanted to get an idea of receiving it.
I am not sure any plugin I need to fit here.
I haven't got proper answer even searching the Internet.
Any help will be appreciated.
You can receive inbound SMS by subscribing to event notifications for new SMS or by polling the message store API.
Subscribing for Event Notifications
There are to ways to subscribe, using PubNub and using Webhooks.
Using PubNub, you can receive SMS. Check it out here:
https://github.com/ringcentral/ringcentral-csharp-client/blob/master/RingCentral.Test/SubscripotionTest.cs#L31
If you want WebHook, check the reference:
https://github.com/ringcentral/ringcentral-csharp-client/blob/master/RingCentral.Test/WebHookTest.cs
Polling
The direct API of RingCentral APIs to receive SMS content is:
/restapi/v1.0/account/~/extension/~/message-store/<message id>/content/<attachment id>
Here you need to put the message id and the attachment id which you can use in your C#.

Disallow user to make a call when there are no more credits: Sinch Javascript SDK

My application allows unlimited instant messages for free, but takes credits for calls. I want to be able to disallow user to make a call when he does not have any more credits. How in a ideal scenario is this managed using javascript SDK?
I am coming from a standpoint, that although I am able to control this behavior through some validations in code itself, but what happens when the user is a hacker? He can go to console and call javascript methods of its own such as removeListeners and then callClient.callUser(userId). How do you protect sinchClient in such case? Thanks.
Note: I am open to provide more information if the question is not clear.
Sinch exposes a REST based callback mechanism to control your call flow. You can set a callback URL in the Sinch Portal under Applications >> Voice and Video settings. Each call will then trigger a Incoming Call Event (documented here: https://www.sinch.com/docs/voice/rest/#callbackapi) and you can control whether or not to connect this call via the callback response.

How to subscribe to a notification stream for packet_In processing?

I am writing an external application that uses REST to communicate with open-daylight. I need to get a notification whenever a new communication between two nodes is needed.
I've checked how to subscribe for event notification in the following link. But I am not sure if this is possible for a packet_in event.
Is it possible to get a notification of the new connection packet_in, with/without some information about the packet?
What would be the path used to create-data-change-event-subscription? also, how can I check all available events and paths that I can make use of?
I believe the "packet_in" event is a yang notification however the REST notification subscription mechanism is for data change notifications. Unfortunately there is no mechanism currently (that I know of) to subscribe to yang notifications over rest.

Sending SMS via combination of Sinch and Parse

Me and my colleagues have been at out wits end trying to send an SMS through Parse which in turn should call Sinch and send the SMS.
Ideally speaking there is to be a cloud code at our Parse backend. This cloud code will be invoked by user through our (iOS + Android) app. When invoked this will inturn call the Sinch SMS sendMessage Function.
Is it necessary to buy a number to send an inbound SMS??
Because no matter what we try, nothing is working out.
If anyone knows of any alternative way working it out do please let us know.

Resources