PBXes (http://www1.pbxes.com/forum/index.php)
- English (http://www1.pbxes.com/forum/board.php?boardid=16)
-- Miscellaneous (http://www1.pbxes.com/forum/board.php?boardid=19)
--- RE: info required (http://www1.pbxes.com/forum/threadid.php?threadid=1449858285)


Posted by cartomanzia on 11.12.2015 at 20:24:

info required

Hi guys, as you know.. is possibile to see all webcall alias in a unique page ?
for istance a singolar page with all the webcall extention of a pbx ..


Posted by i-p-tel on 12.12.2015 at 13:01:

RE: info required

Yes, that's possible. Just add several extension aliases separated by "+", e.g. pbxes.org/url1+url2


Posted by cartomanzia on 13.12.2015 at 13:37:

RE: info required

Zitat:
Originally posted by i-p
Yes, that's possible. Just add several extension aliases separated by "+", e.g. pbxes.org/url1+url2

Thank you very much

EDIT:
I have to tell you, you finally help my work definitively. I'm really gratefull to you . Many tnx.
Now I have the script to show via web page ALL extentions status in real time smile

Here a simple istance to see all exts status of your PBX.

function ext_stat(){

$addr="http://pbxes.org/youralias1+youralias2+youralias3+youralias4+youralias5"; // here yuou need to create your webcall cumulative extentions page.

if(!$page=file_get_contents($addr)) die ("I can't read the page , or the page is unavailable");// we go to read the page we just created

$extentions=array('
1=>'youralias1',
2=>'youralias2',
3=>'youralias3',
4=>'youralias4',
5=>'youralias5
'); // in this array you need to specify all your webcall alias to check

while(list($key,$alias)=each($extensions)){

$check = "$alias</span></font><br>Busy";

if(!stripos($page, $check) === false) {

$state = "Extention Busy";

}else{

$state = "Extention Idle";

} // here we know only if the extentions we chekced is busy or not busy

echo $state;

}

fclose($page);

}

$curpage = $_SERVER['PHP_SELF'];
header('Refresh: 10; url=' . $curpage);

?>
youhtmlpage
<?php ext_stat(); ?>

Powered by: Burning Board Lite 1.0.2 © 2001-2004 WoltLab GmbH
English translation by Satelk