Update event_socket.php

Add freeswitch defaults to event_socket.php
This commit is contained in:
FusionPBX 2017-01-11 14:14:47 -07:00 committed by GitHub
parent 406e4b0d6b
commit da9cd4cbcf
1 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,11 @@ class event_socket {
}
public function connect($host, $port, $password) {
//set defaults
if ($host == '') { $host = '127.0.0.1';
if ($port == '') { $port = '8021';
if ($password == '') { $password = 'ClueCon';
$fp = fsockopen($host, $port, $errno, $errdesc, 3);
if (!$fp) {