Is it possible to change the Twilio Browser Client ringtone?

只愿长相守 提交于 2019-12-01 20:49:07

It is possible to change default incoming ringtone with some workaround.

Following Twilio client API: https://www.twilio.com/docs/client/device#sounds you can disable incoming ringtone calling Twilio.Device.sounds.incoming(false). Then you will need to hookup to event Twilio.Device.incoming and manually start you ringtone and hookup to other events to stop playing music when call is answered/cancelled.

Twilio Customer Support here, its not possible to change the ringtone at this time however you could use and have a recording of the ring tone you need until the other leg of the call has a status of 'answered'

In the meantime I have added this as a feature request, though I cannot give a firm estimation as to when it might be implemented.

Any further questions ping help@twilio.com

Yes it is possible to change incoming call ringtone, You can add this code it's working for me also

first add ringtone url like this

 var audio = new Audio('/app-assets/audio/Ringback.wav'); 

than add this code when call was coming

audio.loop = true;
audio.play();

and on answer or reject you can stop ring

audio.pause();
audio.currentTime = 0;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!