Add New Stat In Overview Status Page LEDE

All Viewers, I am using LEDE 17.5 & I installed asterisk on it, & now I want to customize a little more the web UI like adding a new page or add new stat in Overview >> status page & want to add asterisk IAX & SIP trunking status in Overview page, please if anyone knows about it, give me some hints, T.I.A

You can add new sections to the main status page by placing partial templates in /usr/lib/lua/luci/view/admin_status/index/. For example you could create a template like this:

<h3>Asterisk SIP Peers</h3>
    local cmd = io.popen("asterisk -rx 'sip show peers'", "r")
    if cmd then
        while true do
            local line = cmd:read("*l")
            if not line then

The code between <% and %> is ordinary Lua 5.1 code.

1 Like

Hello Jow... Thanks for your fast replay. to make you understand more clearly I upload one picture, please view it & try to help me if you can, Thanks...status%20page