<extension name="bug">
<condition field="destination_number" expression="^decode$|^9952$">
<action application="answer"/>
- <action application="set" data="hold_music=local_stream://stereo"/>
+ <action application="set" data="hold_music=silence_stream://-1"/>
<action application="decode_video"/>
</condition>
</extension>
var autocall = false;
var chatting_with = false;
+var vid_width = 320;
+var vid_height = 180;
+
+
$( ".selector" ).pagecontainer({ "theme": "a" });
function display(msg) {
function check_vid_res()
{
- var width = 320;
- var height = 180;
-
if ($("#vqual_qvga").is(':checked')) {
- width = 320;
- height = 180;
+ vid_width = 320;
+ vid_height = 180;
} else if ($("#vqual_vga").is(':checked')) {
- width = 640;
- height = 360;
+ vid_width = 640;
+ vid_height = 360;
} else if ($("#vqual_hd").is(':checked')) {
- width = 1280;
- height = 720;
+ vid_width = 1280;
+ vid_height = 720;
} else if ($("#vqual_hhd").is(':checked')) {
- width = 1920;
- height = 1080;
+ vid_width = 1920;
+ vid_height = 1080;
}
- $("#webcam").width(width);
- $("#webcam").height(height);
+ $("#webcam").width(vid_width);
+ $("#webcam").height(vid_height);
if (verto) {
- verto.videoParams({"minWidth": width, "minHeight": height, "minFrameRate": 30});
+ verto.videoParams({"minWidth": vid_width, "minHeight": vid_height, "minFrameRate": 30});
}
}
}
});
- var width = 320;
- var height = 180;
+ check_vid_res();
verto = new $.verto({
login: $("#login").val() + "@" + $("#hostName").val(),
tag: "webcam",
ringFile: "sounds/bell_ring2.wav",
videoParams: {
- "minWidth": width,
- "minHeight": height,
+ "minWidth": vid_width,
+ "minHeight": vid_height,
"minFrameRate": 30
},
audioParams: {