Is it possible to use my own sip server with voximplant engine? - voximplant

I am integrating my system with Voximplant, and i couldn't find answer in the docs, so the question is:
Is it possible to use my own sip server with voximplant engine?

You can call any sip servers from the Voximplant Platform, for example:
let call = VoxEngine.callSIP("sip:alice#example.com");
Where instead of alice#example.com you need to use the address of your SIP server, for example 100#5.125.160.12
https://voximplant.com/docs/guides/calls/sip

Related

Using watson developer cloud with react native

I'm trying to integrate my already created IBM Watson chatbot into my react native mobile application. Any time I import watson-developer-cloud I get an error saying that Node.js standard libraries such as stream are not compatible with Expo. I've seen other people using watson services to create speech to text apps. I don't understand how they are using the services without the watson-developer-cloud package. I've seen some community created packages such as react-native-watson that supposedly can make this happen, but I can't get any of it to work. Is there any way I can make this work or is it impossible? Any suggestions are welcome and appreciated.
Just to help you with some path, for sure you can use React Native to built the UI for your app. But also you need the back-end and communicate with Watson API. (If you want you can use just the fetch from react native, but I really recommend you don't do that if your app will grow with time.
I really recommend you take a look at Watson developer Cloud, and use the Assistant Simple to understand the backend with Node.js. Also try to check the Watson Assistant API documentation.
For summary, you'll create one server with Node.js and express, and create routers in your backend, with theses routes, you gonna use fetch from React native to send HTTP requests to your routes, your backend will call Watson Assistant API and answer. Your fetch will get this response and show that to the user in your U.
Obs.: You can use any language in the backend and Watson Developer Cloud has a lot of examples using Watson Assistant with Java, Python, etc.
See the Official Watson Assistant API documentation.
See the Official use of Fetch in React Native.

Error on "Crypto" to use Twilio (for SMS)

I'm developing an application in React Native for iOS and I'm using Twilio to send a text message (SMS).
To use Twilio I added 2 nodes: Util and Crypto.
In my app, I only added react-native-ble-manager over util, twilio, crypto, and the basic nodes.
Adding the last node Crypto, when I include Twilio in the code, I get an error:
in detail:
Can you help me?
Twilio developer evangelist here.
The Twilio Node.js library is not intended to be used in client side applications. That would require you to store or retrieve your account credentials within the app, which would make them available for a malicious user to steal and use.
Instead, we recommend you set up a server that can perform the API requests and you make calls to that server from your application. Here's how we recommend you do that with Swift on iOS for example. We don't have an example for React Native, but as long as you can make a request to your own server from the application, then that's what you need to do.

Sending SMS Without SMS Gateway in IBM Worklight

I want to send Sms on one number every time when the user clicks the button in my application.I don't want to use any Sms Gateway.The Message can be send with the Phone mobile carrier network.I Could not find it any docs.
Can Any body help me with the docs and the sample code.
Help is appreicated.
You can try the following, which is outside of MobileFirst Platform:
Use the sms:// protocol and launch the system messaging application and send it
Use available 3rd party Cordova plugins
This may require to take care of the whitelisting in Cordova to allow it.

agent chat history problen in smack api

i wrote a java program to connect with google talk using smack api
connection and sending receiving messages are working fine
then how can i get the chat history using smack api
there is one method AgentchatHistory in smack but how can i use it
I believe AgentChatHistory is to support Openfire's feature call fastpath. Don't think Google supports that. If you want chat history, you will have to implement it.

From web server, how I can get the exact GPS location of an iPhone?

I want to run my code on web server which will track an iPhone's physical location (using mobile number of card inside iPhone).
How can I do that? Is coreLocation the API that gives that facility?
Your app will have to use CoreLocation to push requests to your web server with the location. The web server cannot pull the location. I do not think you can access the phone number, but you can get the Device ID.
You can get the phone's location in the browser using javascript, please see the answer at question 10567617 .
If you have the location in the browser, you could send it to your server with ajax or any traditional technique.
If you mean, through a regular web request across HTTP, you can't -- that information isn't transmitted for good reasons. However, if you were to create an App that connected to your server's app, then yes, you could simply send the update as a packet to the server as you then have unlimited access to your phones details.