I want to initiate an audio call to users by triggering through API or by a link. I've tried doing it like below but it doesn't call the user.
var connector = new calling.CallConnector({
callbackUrl: my_callback_url,
appId: my_app_id,
appPassword: my_app_password
});
var bot = new calling.UniversalCallBot(connector);
bot.set('storage', new builder.MemoryBotStorage());
app.post('/api/calls', connector.listen());
var msg = new builder.Message().address(
conversation:
{
id
},
serviceUrl: 'https://smba.trafficmanager.net/apis/' );
msg.text('Hello');
bot.send(msg);
The bottom code works when i'm using ChatConnector to send text message, I'm trying to use the same method to initiate a call.