| fakeLocalDTMF | false |
If true, replaces default DTMF tones with mock DTMF tones. This prevents double-tones in some cases. This will become default in the next breaking release. |
specify an Edge location to connect to:
// edge as a string
Twilio.Device.setup(token, { edge: 'ashburn' });
// edge with auto fallback functionality
Twilio.Device.setup(token, { edge: ['ashburn', 'sydney' ] });
// edge with auto fallback functionality for private interconnect
Twilio.Device.setup(token, { edge: ['ashburn', 'san-jose-ix' ] });
Custom sound
Twilio.Device.setup(token, {
sounds: {
incoming: 'http://mysite.com/incoming.mp3',
outgoing: 'http://mysite.com/outgoing.mp3',
dtmf8: 'http://mysite.com/funny_noise.mp3'
}
}