mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
VoIP status is now part of VoIP monitoring so we don't query the Asterisk server often
Uses the "Register" and "Unregister" options of Asterisk to get extension status Stores voip_status in operator table
This commit is contained in:
12
call.php
12
call.php
@@ -259,11 +259,7 @@ switch($state)
|
||||
$es = 1;
|
||||
if (is_voip_enabled($operator_id))
|
||||
{
|
||||
include("functions/functions.voip.php");
|
||||
$v = new voip();
|
||||
$v->connect(VOIP_SERVER);
|
||||
$ext = get_extension($operator_id);
|
||||
if ($v->getExtensionStatus($ext))
|
||||
if (get_extension_status($operator_id))
|
||||
$es = 1;
|
||||
else
|
||||
$es = 0;
|
||||
@@ -339,11 +335,7 @@ switch($state)
|
||||
$es = 1;
|
||||
if (is_voip_enabled($operator_id))
|
||||
{
|
||||
include("functions/functions.voip.php");
|
||||
$v = new voip();
|
||||
$v->connect(VOIP_SERVER);
|
||||
$ext = get_extension($operator_id);
|
||||
if ($v->getExtensionStatus($ext))
|
||||
if (get_extension_status($operator_id))
|
||||
$es = 1;
|
||||
else
|
||||
$es = 0;
|
||||
|
||||
Reference in New Issue
Block a user