We are currently testing new version ( 2.1.0.2115 ) on linux debian and we have a problem. Access to the database using SOAP is very slow comparing to the old version. For example simple php script like I am attaching, takes exactly 2 minutes to return the results, while on the old version, it was taking 1-2 seconds. Userportal we are using for managing voicemail, forwarding etc. doesn't even load (probably because of the time out)
Once again, on the old version (3.1-2.0.4.1766) it takes seconds to return these results.
Thanks,
Nikola
php script for getting first and last name from pbxnsip if the phone numberis is given.
$r = array();
$search = array("name"=>$phone_number);
pbx_search("user_alias", 999999, 0, false, $search, $r, $pbx_server, $pbx_port);
$alias_id = array_pop($r);
if($alias_id)
{
$r = array();
$search = array("user", "domain");
pbx_get("user_alias", $alias_id, $search, $r, $pbx_server, $pbx_port);
$user_id = $r['user'];
$domain_id = $r['domain'];
}
else
{
echo "No User Found.";
}
$columns = array("id");
pbx_get("users", $user_id, $columns, $res, $pbx_server, $pbx_port);
$extension_id = $res['id'];
$columns = array("first_name", "display_name");
pbx_get("extensions", $extension_id, $columns, $res, $pbx_server, $pbx_port);
echo "<br />First name: ".$res['first_name'];
echo "<br />Last name: ".$res['display_name'];