mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
simple code to add a gateway
This commit is contained in:
@@ -851,9 +851,15 @@ App.SofiaStatusController = Ember.ObjectController.extend({
|
||||
actions: {
|
||||
//Submit the modal
|
||||
submit: function() {
|
||||
alert("Not implemented");
|
||||
return false;
|
||||
$.post("/txtapi/lua?create_gw.lua%20" + $("#gateway_name").val(), {
|
||||
// alert("Not implemented");
|
||||
// return false;
|
||||
url = "/txtapi/lua?create_gateway.lua%20" +
|
||||
$("#gateway_name").val() + "%20" +
|
||||
$("#gateway_realm").val() + "%20" +
|
||||
$("#gateway_username").val() + "%20" +
|
||||
$("#gateway_password").val() + "%20" +
|
||||
$("#gateway_register").is(":checked");
|
||||
$.post(url, {
|
||||
success: function() { },
|
||||
error: function(e) { }
|
||||
});
|
||||
|
Reference in New Issue
Block a user