2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

functions.voip.php connect() method uses defaults from config.default.php instead of hard coded strings

This commit is contained in:
azammitdcarf
2008-12-09 22:43:44 +00:00
parent 6466ed123e
commit bd621591aa
2 changed files with 7 additions and 2 deletions

View File

@@ -265,9 +265,9 @@ class voip {
*
* @return bool True if connected successfully, else false
*/
function connect($ip,$user="admin",$pass="amp111",$events = false)
function connect($ip=VOIP_SERVER,$user=VOIP_ADMIN_USER,$pass=VOIP_ADMIN_PASS,$events = false)
{
$this->socket = fsockopen($ip,"5038",$errno,$errstr,1);
$this->socket = fsockopen($ip,VOIP_PORT,$errno,$errstr,1);
if (!$this->socket)
{
print "$errno: $errstr";