Dispo Call URL Not always executing
Posted: Mon Dec 02, 2013 11:16 am
Single Server Vicibox 3.04 From 64bit-Preload.iso VERSION: 2.8-403a BUILD:1305101350 : Asterisk 1.4.44-vici : NO Digium HArdware : Single Server
AMD 8-CORE 4Ghz 16GigRAM : MSI 3070 Mboard : 3-2TB SATA Drives : Disabled RAID : No extra software :
6 agents logged in on all servers
System Load Average: 0.93 0.96 1.01 M
Sometimes we have 10 agents. I have never seen load over 1.5 (8 cores)
Here is the URL.
VARhttp://24.155.188.156/postDisp3.php? ... dispo--B--
This php simply inserts the disposition into a mysql DB separate of vicidial (But on the same server)
Here is the code. I don't believe it is a loaded server issue. But I will get the latest vicibox and try setting up a 2 server cluster.
<?php
$phonenum= $_GET['phonenum'];
$agentname= $_GET['agentname'];
$lms_campaign= $_GET['lms_campaign'];
$vici_campaign= $_GET['campaign'];
$vici_list=$_GET['list'];
$product=$_GET['product'];
$disposition=$_GET['disposition'];
$agentID=substr($agentname,0,3);
$agentname=substr($agentname,4);
$LeadId=$_GET['lead_id'];
$db=mysql_pconnect("localhost","root","secret");
if (!$db){
echo "Vici-MySQL Database error!";
exit;
}
mysql_select_db("preleadDB", $db);
$sql="INSERT INTO `prelead` (phone_num,agentID,agentName,lms_campaign,vici_campaign,product,disposition)
VALUES
('$phonenum','$agentID','$agentname','$lms_campaign','$vici_campaign','$product','$disposition')";
if (!mysql_query($sql,$db))
{
die('Error: ' . mysql_error());
}
echo "1 record added<BR>";
AMD 8-CORE 4Ghz 16GigRAM : MSI 3070 Mboard : 3-2TB SATA Drives : Disabled RAID : No extra software :
6 agents logged in on all servers
System Load Average: 0.93 0.96 1.01 M
Sometimes we have 10 agents. I have never seen load over 1.5 (8 cores)
Here is the URL.
VARhttp://24.155.188.156/postDisp3.php? ... dispo--B--
This php simply inserts the disposition into a mysql DB separate of vicidial (But on the same server)
Here is the code. I don't believe it is a loaded server issue. But I will get the latest vicibox and try setting up a 2 server cluster.
<?php
$phonenum= $_GET['phonenum'];
$agentname= $_GET['agentname'];
$lms_campaign= $_GET['lms_campaign'];
$vici_campaign= $_GET['campaign'];
$vici_list=$_GET['list'];
$product=$_GET['product'];
$disposition=$_GET['disposition'];
$agentID=substr($agentname,0,3);
$agentname=substr($agentname,4);
$LeadId=$_GET['lead_id'];
$db=mysql_pconnect("localhost","root","secret");
if (!$db){
echo "Vici-MySQL Database error!";
exit;
}
mysql_select_db("preleadDB", $db);
$sql="INSERT INTO `prelead` (phone_num,agentID,agentName,lms_campaign,vici_campaign,product,disposition)
VALUES
('$phonenum','$agentID','$agentname','$lms_campaign','$vici_campaign','$product','$disposition')";
if (!mysql_query($sql,$db))
{
die('Error: ' . mysql_error());
}
echo "1 record added<BR>";