When originating a session, send anything received via the queue
This commit is contained in:
@@ -132,9 +132,11 @@ abstract class Protocol
|
||||
|
||||
private array $comms;
|
||||
|
||||
protected bool $force_queue = FALSE;
|
||||
|
||||
abstract protected function protocol_init(): int;
|
||||
|
||||
abstract protected function protocol_session(): int;
|
||||
abstract protected function protocol_session(bool $force_queue=FALSE): int;
|
||||
|
||||
public function __construct(Setup $o=NULL)
|
||||
{
|
||||
@@ -381,13 +383,13 @@ abstract class Protocol
|
||||
|
||||
case self::SESSION_EMSI:
|
||||
Log::debug(sprintf('%s:- Starting EMSI',self::LOGKEY));
|
||||
$rc = $this->protocol_session();
|
||||
$rc = $this->protocol_session($this->originate);
|
||||
|
||||
break;
|
||||
|
||||
case self::SESSION_BINKP:
|
||||
Log::debug(sprintf('%s:- Starting BINKP',self::LOGKEY));
|
||||
$rc = $this->protocol_session();
|
||||
$rc = $this->protocol_session($this->originate);
|
||||
|
||||
break;
|
||||
|
||||
@@ -396,7 +398,7 @@ abstract class Protocol
|
||||
$this->client->speed = self::TCP_SPEED;
|
||||
$this->originate = FALSE;
|
||||
|
||||
return $this->protocol_session();
|
||||
return $this->protocol_session($this->originate);
|
||||
|
||||
default:
|
||||
Log::error(sprintf('%s:! Unsupported session type [%d]',self::LOGKEY,$type));
|
||||
|
Reference in New Issue
Block a user