applications/luci-asterisk: remove hostname column from trunk overview
[project/luci.git] / applications / luci-asterisk / luasrc / model / cbi / asterisk / trunks.lua
index 3a993da456b0f26818d73dfffe8b52b364d38323..a4d112d7dd698e55e36a5377a352b32ffe7e620e 100644 (file)
@@ -69,15 +69,6 @@ end
 
 user = sip_table:option(DummyValue, "username", "Username")
 
-host = sip_table:option(DummyValue, "host", "Hostname")
-function host.cfgvalue(self, s)
-       if sip_peers[s] and sip_peers[s].info.address then
-               return "%s:%i" %{ sip_peers[s].info.address, sip_peers[s].info.port }
-       else
-               return "n/a"
-       end
-end
-
 context = sip_table:option(DummyValue, "context", "Dialplan")
 context.href = luci.dispatcher.build_url("admin", "asterisk", "dialplan")
 function context.cfgvalue(...)