add some more signal tracking to verto

This commit is contained in:
Anthony Minessale
2014-07-14 21:25:43 +05:00
parent 236233d2c7
commit ab292dc33d
5 changed files with 50 additions and 18 deletions

View File

@@ -145,7 +145,9 @@ var callbacks = {
goto_page("incall");
break;
case $.verto.enum.state.hangup:
$("#main_info").html("Call ended with cause: " + d.cause);
case $.verto.enum.state.destroy:
$("#hangup_cause").html("");
clearConfMan();
goto_page("main");
cur_call = null;
@@ -251,6 +253,8 @@ $("#callbtn").click(function() {
return;
}
$("#main_info").html("Trying");
cur_call = verto.newCall({
destination_number: $("#ext").val(),
caller_id_name: $("#name").val(),