I have an Australian Twilio number but when people call, they hear a very different sounding ring tone to what you normally hear when calling Australian phones. How do I change this in this section of Functions:
const dial = twiml.dial(
{
action: '/handle-call',
method: 'POST',
timeout: 20
}
);
dial.sip('me@example.sip.us1.twilio.com');
Edit: I've tried adding this to the function but I get a 500 error whenever someone tries calling (I've also enabled AUTH_TOKEN in context in the configuration settings).
exports.handler = function(context, event, callback) {
const device = new Twilio.twiml.Device();
device.setup(context.AUTH_TOKEN, {
sounds: {
incoming: 'http://url-to-sound-file.mp3'
}
});
...