by lyled » Fri Aug 07, 2015 6:33 am
It is a place to start. It looks as though this only dials one number, however, and I need this app to dial a whole series of numbers. Is there a way to pass an array of numbers, or perhaps use a loop to dial each number one after another?
window.setSoftkey(1, 'Test', function() {
// extension we're calling, either another line or a configured sound to play
var number = 404;
util.debug("calling number " + number);
// While we're placing this call, make sure we do not exit when put into the
// background. As soon as we're back in the foreground after placing the
// call we will clear this state so we shutdown normally.
digium.app.exitAfterBackground = false;
digium.event.observe({
'eventName': 'digium.app.foreground',
'callback': function(params) {
digium.event.stopObserving({'eventName' : 'digium.app.foregrond'});
digium.app.exitAfterBackground = true;
}
});
I'm sorry if these are obvious questions, but I'm from VB.NET land, and java is new to me...