|
|
car
Grünschnabel
Registration Date: 12.02.2015
Posts: 10
|
|
|
21.10.2015 11:00 |
|
i-p
Super Moderator
Registration Date: 14.01.2006
Posts: 4782
|
|
|
22.10.2015 14:28 |
|
car
Grünschnabel
Registration Date: 12.02.2015
Posts: 10
|
|
|
23.10.2015 07:26 |
|
i-p
Super Moderator
Registration Date: 14.01.2006
Posts: 4782
|
|
|
26.10.2015 08:57 |
|
car
Grünschnabel
Registration Date: 12.02.2015
Posts: 10
|
|
|
27.10.2015 14:35 |
|
i-p
Super Moderator
Registration Date: 14.01.2006
Posts: 4782
|
|
|
11.11.2015 09:51 |
|
car
Grünschnabel
Registration Date: 12.02.2015
Posts: 10
|
|
|
11.11.2015 11:57 |
|
i-p
Super Moderator
Registration Date: 14.01.2006
Posts: 4782
|
|
|
02.12.2015 11:40 |
|
car
Grünschnabel
Registration Date: 12.02.2015
Posts: 10
|
|
RE: See extension status from website |
|
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 14:34.
|
|
02.12.2015 17:33 |
|
i-p
Super Moderator
Registration Date: 14.01.2006
Posts: 4782
|
|
|
02.12.2015 22:33 |
|
i-p
Super Moderator
Registration Date: 14.01.2006
Posts: 4782
|
|
|
01.10.2016 11:56 |
|
sia
Premium Account
Registration Date: 07.07.2006
Posts: 11
|
|
|
01.04.2017 21:13 |
|
i-p
Super Moderator
Registration Date: 14.01.2006
Posts: 4782
|
|
|
03.04.2017 11:08 |
|
|
|
|
|
|
|