|
|
car
Grünschnabel
Registration Date: 12.02.2015
Posts: 10
![](images/en/spacer.gif) |
|
|
21.10.2015 12:00 |
|
i-p
Super Moderator
![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif)
Registration Date: 14.01.2006
Posts: 4775
![](images/en/spacer.gif) |
|
|
22.10.2015 15:28 |
|
car
Grünschnabel
Registration Date: 12.02.2015
Posts: 10
![](images/en/spacer.gif) |
|
|
23.10.2015 08:26 |
|
i-p
Super Moderator
![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif)
Registration Date: 14.01.2006
Posts: 4775
![](images/en/spacer.gif) |
|
|
26.10.2015 09:57 |
|
car
Grünschnabel
Registration Date: 12.02.2015
Posts: 10
![](images/en/spacer.gif) |
|
|
27.10.2015 15:35 |
|
i-p
Super Moderator
![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif)
Registration Date: 14.01.2006
Posts: 4775
![](images/en/spacer.gif) |
|
|
11.11.2015 10:51 |
|
car
Grünschnabel
Registration Date: 12.02.2015
Posts: 10
![](images/en/spacer.gif) |
|
|
11.11.2015 12:57 |
|
i-p
Super Moderator
![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif)
Registration Date: 14.01.2006
Posts: 4775
![](images/en/spacer.gif) |
|
|
02.12.2015 12:40 |
|
car
Grünschnabel
Registration Date: 12.02.2015
Posts: 10
![](images/en/spacer.gif) |
|
RE: See extension status from website |
![Go to the top of this page](images/en/goup.gif) |
Wow... finally an effective answer MANY MANY MANY THANK YOU FOR THAT. Here's the code to get the status to show, in case someone need:
EDIT: I see there is some troubles when this script is used in a while cycle. So, The suggestion is to use to get single result as well. Use the script below that result more effective:
<?php
$p="Number of extention you want to check"; // es 01, 02 ecc
$addr="http://pbxes.org/youralias$p"; /* address of your Webcall page, NOTE: for this script the address need to end with the number of the extention you wanna check.*/
/*Now we will get not entire page, 'cause of latency problems but only the term we need.*/
$start_read=3214;
$interval=912;
/*Then we are ready to know the status of extensions we want to check */
if(!$page= file_get_contents($addr, false, null, $start_read, $interval)) die ("impossible to read the page");
if($status=strstr($page, "Busy")){
$status; echo "Busy";
} else {
echo "Idle";
}
fclose($page); // we close the web page reading
$curpage = $_SERVER['PHP_SELF'];
header('Refresh: 5; url=?code=$p' . $curpage);
?>
This post has been edited 3 time(s), it was last edited by car on 03.12.2015 at 15:34.
|
|
02.12.2015 18:33 |
|
i-p
Super Moderator
![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif)
Registration Date: 14.01.2006
Posts: 4775
![](images/en/spacer.gif) |
|
|
02.12.2015 23:33 |
|
i-p
Super Moderator
![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif)
Registration Date: 14.01.2006
Posts: 4775
![](images/en/spacer.gif) |
|
|
01.10.2016 12:56 |
|
sia
Premium Account
![](images/en/star2.gif) ![](images/en/star2.gif)
Registration Date: 07.07.2006
Posts: 11
![](images/en/spacer.gif) |
|
|
01.04.2017 22:13 |
|
i-p
Super Moderator
![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif) ![](images/en/star3.gif)
Registration Date: 14.01.2006
Posts: 4775
![](images/en/spacer.gif) |
|
|
03.04.2017 12:08 |
|
|
|
|
|
|
|