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:
Anthony Minessale
2010-01-05 20:37:16 +00:00
parent 87ca6ed553
commit a53236da7f
18 changed files with 548 additions and 48 deletions
+3 -2
View File
@@ -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;
}