Skip to main content

PBXINFO for eacht tenant (e.g show specific tenant>extension online)

Posted by Ierlandfan on Wed, 10/08/2008

If you specify TOOLS>PBXINFO for a tenant it now shows all extensions for all tenants
(let's call it admin view)

I want a user view for every tenant, so that a customer can see which phone is online or not.
Since the file is coded (but uses the normal asterisk asterisk_info.php for the most part)
i can't create it myself.

quick hack is to scrape page and make a custom page for eacht tenant on server side.

(quick code

Secure file and directory to write in.
wget //some-ip/asterisk/pbxinfo.cgi (needs login data from admin)
cat pbxinfo.sed >search "tenant-name" and define option for program to show every line with tenant-name (sed or awk wil do just fine)
and make it availabe for each tenant.

)


Submitted by eeman on Thu, 10/22/2009 Permalink

an easier approach is if the user isnt allowed to manage 'All' tenants then use currently selected tenant executing

sip show peers like ${tenant}

iax2 show peers like ${tenant}

voicemail show users for default-${tenant}

Dont let them see PBX Version (could be used to search for exploits)

Dont let them see sip channels

Dont let them see uptime

Dont let them see the sip registry