]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
hash dial take 2
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 15 Jul 2014 19:11:48 +0000 (00:11 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 15 Jul 2014 19:11:48 +0000 (00:11 +0500)
html5/verto/demo/verto.js

index 393641dc5da574265029ea9a9ffb2f0e47c84ad7..e4017e7dcbcb005318dc0f3a96621eb7b0247e9c 100644 (file)
@@ -366,8 +366,24 @@ function init() {
 }
 
 $(document).ready(function() {
+    var autocall = false;
+    var hash = window.location.hash.substring(1);    
+
+    if (hash && hash.indexOf("page-") == -1) {
+       window.location.hash = "";
+       autocall = true;
+    }
+
     init();
+
     $("#page-incall").on("pagebeforechange", function(event) {});
+
+    if (autocall) {
+       $("#ext").val(hash);
+       $("#callbtn").trigger("click");
+    }
+
+
 });
 
 $(document).bind("pagebeforechange", function(e, data) {