Beispiel #1
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->args = $this->response->args;
     $this->channel = new Channel($client, $this->response->channel);
     $this->replaceChannel = property_exists($this->response, 'replace_channel') ? new Channel($client, $this->response->replace_channel) : null;
 }
Beispiel #2
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->callerPresentation = $this->response->caller_presentation;
     $this->callerPresentationTxt = $this->response->caller_presentation_txt;
     $this->channel = new Channel($client, $this->response->channel);
 }
Beispiel #3
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->channel = new Channel($client, $this->response->channel);
     $this->digit = $this->response->digit;
     $this->durationMs = $this->response->duration_ms;
 }
Beispiel #4
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->channel = $this->getResponseValue('channel', '\\phparia\\Resources\\Channel', $client);
     $this->dialplanApp = $this->getResponseValue('dialplan_app');
     $this->dialplanAppData = $this->getResponseValue('dialplan_app_data');
 }
Beispiel #5
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->args = $this->getResponseValue('args');
     $this->channel = $this->getResponseValue('channel', '\\phparia\\Resources\\Channel', $client);
     $this->replaceChannel = $this->getResponseValue('replace_channel', '\\phparia\\Resources\\Channel', $client);
 }
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->cause = property_exists($this->response, 'cause') ? $this->response->cause : null;
     $this->channel = new Channel($client, $this->response->channel);
     $this->soft = property_exists($this->response, 'soft') ? $this->response->soft : null;
 }
Beispiel #7
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->channel = new Channel($client, $this->response->channel);
     $this->dialplanApp = $this->response->dialplan_app;
     $this->dialplanAppData = $this->response->dialplan_app_data;
 }
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->cause = $this->getResponseValue('cause');
     $this->channel = $this->getResponseValue('channel', '\\phparia\\Resources\\Channel', $client);
     $this->soft = $this->getResponseValue('soft');
 }
Beispiel #9
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->channel = property_exists($this->response, 'channel') ? new Channel($client, $this->response->channel) : null;
     $this->value = property_exists($this->response, 'value') ? $this->response->value : null;
     $this->variable = property_exists($this->response, 'variable') ? $this->response->variable : null;
 }
Beispiel #10
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->callerPresentation = $this->getResponseValue('caller_presentation');
     $this->callerPresentationTxt = $this->getResponseValue('caller_presentation_txt');
     $this->channel = $this->getResponseValue('channel', '\\phparia\\Resources\\Channel', $client);
 }
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->channel = $this->getResponseValue('channel', '\\phparia\\Resources\\Channel', $client);
     $this->digit = $this->getResponseValue('digit');
     $this->durationMs = $this->getResponseValue('duration_ms');
 }
Beispiel #12
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->recording = new LiveRecording($client, $this->response->recording);
 }
Beispiel #13
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->bridge = $this->getResponseValue('bridge', '\\phparia\\Resources\\Bridge', $client);
     $this->channel = $this->getResponseValue('channel', '\\phparia\\Resources\\Channel', $client);
 }
Beispiel #14
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->channel = new Channel($client, $this->response->channel);
 }
Beispiel #15
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->caller = $this->getResponseValue('channel', '\\phparia\\Resources\\Channel', $client);
     $this->dialstatus = $this->getResponseValue('dialstatus');
     $this->dialstring = $this->getResponseValue('dialstring');
     $this->forward = $this->getResponseValue('forward');
     $this->forwarded = $this->getResponseValue('forwarded', '\\phparia\\Resources\\Channel', $client);
     $this->peer = $this->getResponseValue('peer');
 }
Beispiel #16
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->recording = $this->getResponseValue('recording', '\\phparia\\Resources\\LiveRecording', $client);
 }
Beispiel #17
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->bridge = property_exists($this->response, 'bridge') ? new Bridge($client, $this->response->bridge) : null;
     $this->channel = property_exists($this->response, 'channel') ? new Channel($client, $this->response->channel) : null;
     $this->endpoint = property_exists($this->response, 'endpoint') ? new Endpoint($client, $this->response->endpoint) : null;
     $this->eventname = $this->response->eventname;
     $this->userevent = $this->response->userevent;
 }
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->destinationApplication = property_exists($this->response, 'destination_application') ? $this->response->destination_application : null;
     $this->destinationBridge = property_exists($this->response, 'destination_bridge') ? $this->response->destination_bridge : null;
     $this->destinationLinkFirstLeg = property_exists($this->response, 'destination_link_first_leg') ? new Channel($client, $this->response->destination_link_first_leg) : null;
     $this->destinationLinkSecondLeg = property_exists($this->response, 'destination_link_second_leg') ? new Channel($client, $this->response->destination_link_second_leg) : null;
     $this->destinationThreewayBridge = property_exists($this->response, 'destination_threeway_bridge') ? new Bridge($client, $this->response->destination_threeway_bridge) : null;
     $this->destinationThreewayChannel = property_exists($this->response, 'destination_threeway_channel') ? new Channel($client, $this->response->destination_threeway_channel) : null;
     $this->destinationType = property_exists($this->response, 'destination_type') ? $this->response->destination_type : null;
     $this->isExternal = $this->response->is_external;
     $this->replaceChannel = property_exists($this->response, 'replace_channel') ? new Channel($client, $this->response->replace_channel) : null;
     $this->result = $this->response->result;
     $this->transferTarget = property_exists($this->response, 'transfer_target') ? new Channel($client, $this->response->transfer_target) : null;
     $this->transferee = property_exists($this->response, 'transferee') ? new Channel($client, $this->response->transferee) : null;
     $this->transfererFirstLeg = new Channel($client, $this->response->transferer_first_leg);
     $this->transfererFirstLegBridge = property_exists($this->response, 'transferer_first_leg_bridge') ? new Bridge($client, $this->response->transferer_first_leg_bridge) : null;
     $this->transfererSecondLeg = new Channel($client, $this->response->transferer_second_leg);
     $this->transfererSecondLegBridge = property_exists($this->response, 'transferer_second_leg_bridge') ? new Bridge($client, $this->response->transferer_second_leg_bridge) : null;
 }
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->endpoint = property_exists($this->response, 'endpoint') ? new Endpoint($client, $this->response->endpoint) : null;
     $this->message = new TextMessage($client, $this->response->message);
 }
Beispiel #20
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->deviceState = new DeviceState($client, $this->response->device_state);
 }
Beispiel #21
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->deviceState = $this->getResponseValue('device_state', '\\phparia\\Resources\\DeviceState', $client);
 }
Beispiel #22
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->playback = $this->getResponseValue('playback', '\\phparia\\Resources\\Playback', $client);
 }
Beispiel #23
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->endpoint = new Endpoint($client, $this->response->endpoint);
 }
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->endpoint = $this->getResponseValue('endpoint', '\\phparia\\Resources\\Endpoint', $client);
     $this->message = $this->getResponseValue('message', '\\phparia\\Resources\\TextMessage');
 }
Beispiel #25
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->playback = new Playback($client, $this->response->playback);
 }
Beispiel #26
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->bridge = $this->getResponseValue('bridge', '\\phparia\\Resources\\Bridge', $client);
     $this->channel = $this->getResponseValue('channel', '\\phparia\\Resources\\Channel', $client);
     $this->endpoint = $this->getResponseValue('endpoint', '\\phparia\\Resources\\Endpoint', $client);
     $this->eventname = $this->getResponseValue('eventname');
     $this->userevent = $this->getResponseValue('userevent');
 }
Beispiel #27
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->bridge = property_exists($this->response, 'bridge') ? new Bridge($client, $this->response->bridge) : null;
     $this->channel = new Channel($client, $this->response->channel);
     $this->contex = $this->response->context;
     $this->exten = $this->response->exten;
     $this->isExternal = $this->response->is_external;
     $this->replaceChannel = property_exists($this->response, 'replace_channel') ? new Channel($client, $this->response->replace_channel) : null;
     $this->result = $this->response->result;
     $this->transferee = property_exists($this->response, 'transferee') ? new Channel($client, $this->response->transferee) : null;
 }
Beispiel #28
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->bridge = new Bridge($client, $this->response->bridge);
     $this->bridgeFrom = new Bridge($client, $this->response->bridge_from);
 }
Beispiel #29
0
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->caller = property_exists($this->response, 'channel') ? new Channel($client, $this->response->caller) : null;
     $this->dialstatus = $this->response->dialstatus;
     $this->dialstring = property_exists($this->response, 'dialstring') ? $this->response->dialstring : null;
     $this->forward = property_exists($this->response, 'forward') ? $this->response->forward : null;
     $this->forwarded = property_exists($this->response, 'forwarded') ? new Channel($client, $this->response->forwarded) : null;
     $this->peer = $this->response->peer;
 }