mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
add support for user level auth to esl and fs_cli
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16161 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -112,11 +112,12 @@ class ESLevent {
|
||||
class ESLconnection {
|
||||
public $_cPtr=null;
|
||||
|
||||
function __construct($host_or_socket,$port=null,$password=null) {
|
||||
function __construct($host_or_socket,$port=null,$user_or_password=null,$password=null) {
|
||||
switch (func_num_args()) {
|
||||
case 1: $r=new_ESLconnection($host_or_socket); break;
|
||||
case 2: $r=new_ESLconnection($host_or_socket,$port); break;
|
||||
default: $r=new_ESLconnection($host_or_socket,$port,$password);
|
||||
case 3: $r=new_ESLconnection($host_or_socket,$port,$user_or_password); break;
|
||||
default: $r=new_ESLconnection($host_or_socket,$port,$user_or_password,$password);
|
||||
}
|
||||
$this->_cPtr=$r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user