Hi
My first try to explain my problem was a bit vague, sorry.
I will try to be more clear.
I'm developing web based application using 1.0.12 web
plugin.
It works in general fine, I can register, initiate outgoing
calls and get incoming, etc.
There is linphone core property "playFile" exposed to JS.
Initially it is undefined. But plugin use some “beep” sound
internally, for example when call is placed on-hold.
I need to change or disable this sound.
I'm trying to set it this way:
console.log("playFile:"+core.playFile);
core.playFile =
'internal:///share/sounds/linphone/rings/toy-mono.wav';
console.log("playFile:"+core.playFile);
console output is:
playFile:undefined
playFile:undefined
So my attempt to set it fail.
At the same time code below works for another files:
console.log('Ring file name: ' + core.ring);
console.log('Ringback file name: ' + core.ringback);
core.ring =
'internal:///share/sounds/linphone/rings/toy-mono.wav';
core.ringback =
'internal:///share/sounds/linphone/ringback.wav';
console.log('Ring file name: ' + core.ring);
console.log('Ringback file name: ' + core.ringback);
Console output:
Ring file name:
./share/sounds/linphone/rings/oldphone.wav
Ringback file name: ./share/sounds/linphone/ringback.wav
Ring file name:
internal://C%3a/Users/Alex/AppData/Roaming/Mozilla/Firefox/Profiles/hvnnj79p.default/extensions/%7bA7F0040E-4481-4C03-952F-D8491E5036A3%7d/plugins/linphoneweb/share/sounds/linphone/rings/toy-mono.wav
Ringback file name:
internal://C%3a/Users/Alex/AppData/Roaming/Mozilla/Firefox/Profiles/hvnnj79p.default/extensions/%7bA7F0040E-4481-4C03-952F-D8491E5036A3%7d/plugins/linphoneweb/share/sounds/linphone/ringback.wav
I have found example of such “internal:///” URL within
linphone-web-ui project.
I may change it and assign another sound.
BTW: linphone web plugin by default use stereo oldphone.wav
file, so the incoming ring sound is really crazy.
I reset it to toy-mono.vaw and it work OK.
Can I do something with this “hold sound” while using
linphone web plugin?
Regards
Alexander Altshuler