From: Jo-Philipp Wich Date: Sat, 21 Mar 2009 05:05:45 +0000 (+0000) Subject: applications/luci-asterisk: remove hostname column from trunk overview X-Git-Tag: 0.9.0~577 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=6286d3a09a1fe7512da30d1dac9ea3ec7fe3e612;p=project%2Fluci.git applications/luci-asterisk: remove hostname column from trunk overview --- diff --git a/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunks.lua b/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunks.lua index 3a993da456..a4d112d7dd 100644 --- a/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunks.lua +++ b/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunks.lua @@ -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(...)