Fix authentication for originating EMSI session with known systems
This commit is contained in:
@@ -241,6 +241,7 @@ abstract class Protocol
|
||||
|
||||
// If we are connecting to a node
|
||||
if ($o->exists) {
|
||||
Log::debug(sprintf('%s: + Originating a connection to [%s]',self::LOGKEY,$o->ftn));
|
||||
$this->node->originate($o);
|
||||
|
||||
} else {
|
||||
@@ -255,17 +256,17 @@ abstract class Protocol
|
||||
switch ($type) {
|
||||
/** @noinspection PhpMissingBreakStatementInspection */
|
||||
case self::SESSION_AUTO:
|
||||
Log::debug(sprintf('%s: - Trying EMSI',self::LOGKEY));
|
||||
Log::debug(sprintf('%s: - Trying EMSI',self::LOGKEY));
|
||||
|
||||
$rc = $this->protocol_init();
|
||||
if ($rc < 0) {
|
||||
Log::error(sprintf('%s: ! Unable to start EMSI [%d]',self::LOGKEY,$rc));
|
||||
Log::error(sprintf('%s:! Unable to start EMSI [%d]',self::LOGKEY,$rc));
|
||||
|
||||
return self::S_REDIAL | self::S_ADDTRY;
|
||||
}
|
||||
|
||||
case self::SESSION_EMSI:
|
||||
Log::debug(sprintf('%s: - Starting EMSI',self::LOGKEY));
|
||||
Log::debug(sprintf('%s: - Starting EMSI',self::LOGKEY));
|
||||
$rc = $this->protocol_session();
|
||||
|
||||
break;
|
||||
|
Reference in New Issue
Block a user