stasisStart function
Implementation
void stasisStart(StasisStart event, Channel channel) {
// ensure the channel is not a dialed channel
print('Channel ${channel.name} has entered the application');
channel.on('ChannelDtmfReceived', (event, channel) {
dtmfReceived(event, channel);
});
channel.answer((err) {
if (err) {
throw err;
}
playIntroMenu(channel);
});
}