Source of file BlindTransferEvent.php
Size: 10,183 Bytes - Last Modified: 2019-04-30T12:53:24+00:00
/data/development/sccp/sources/PAMI/src/PAMI/Message/Event/BlindTransferEvent.php
| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456 | <?php/** * Event triggered when a blind transfer is complete. * * PHP Version 5 * * @category Pami * @package Message * @subpackage Event * @author Marcelo Gornstein <marcelog@gmail.com> * @license http://marcelog.github.com/PAMI/ Apache License 2.0 * @version SVN: $Id$ * @link http://marcelog.github.com/PAMI/ * * Copyright 2011 Marcelo Gornstein <marcelog@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */namespace PAMI\Message\Event; /** * Event triggered when a blind transfer is complete. * * PHP Version 5 * * @category Pami * @package Message * @subpackage Event * @author Marcelo Gornstein <marcelog@gmail.com> * @license http://marcelog.github.com/PAMI/ Apache License 2.0 * @link http://marcelog.github.com/PAMI/ */class BlindTransferEvent extends EventMessage {const RESULT_FAIL = 'Fail'; const RESULT_INVALID = 'Invalid'; const RESULT_NOT_PERMITTED = 'Not Permitted'; const RESULT_SUCCESS = 'Success'; /** * Returns key: 'Privilege'. * * @return string */public function getPrivilege() { return $this->getKey('Privilege'); } /** * Returns key: 'Result'. * Result - Indicates if the transfer was successful or if it failed. * * - Fail - An internal error occurred. * - Invalid - Invalid configuration for transfer (e.g. Not bridged) * - Not Permitted - Bridge does not permit transfers * - Success - Transfer completed successfully * * @return string */public function getResult() { return $this->getKey('Result'); } /** * Returns key: 'TransfererChannel'. * * @return string */public function getTransfererChannel() { return $this->getKey('TransfererChannel'); } /** * Returns key: 'TransfererChannelState'. * TransfererChannelState - A numeric code for the channel's current state, related to TransfererChannelStateDesc * * @return string */public function getTransfererChannelState() { return $this->getKey('TransfererChannelState'); } /** * Returns key: 'TransfererChannelStateDesc'. * * Down * Rsrvd * OffHook * Dialing * Ring * Ringing * Up * Busy * Dialing Offhook * Pre-ring * Unknown * * @return string */public function getTransfererChannelStateDesc() { return $this->getKey('TransfererChannelStateDesc'); } /** * Returns key: 'TransfererCallerIDNum'. * * @return string */public function getTransfererCallerIDNum() { return $this->getKey('TransfererCallerIDNum'); } /** * Returns key: 'TransfererCallerIDName'. * * @return string */public function getTransfererCallerIDName() { return $this->getKey('TransfererCallerIDName'); } /** * Returns key: 'TransfererConnectedLineNum'. * * @return string */public function getTransfererConnectedLineNum() { return $this->getKey('TransfererConnectedLineNum'); } /** * Returns key: 'TransfererConnectedLineName'. * * @return string */public function getTransfererConnectedLineName() { return $this->getKey('TransfererConnectedLineName'); } /** * Returns key: 'TransfererAccountCode'. * * @return string */public function getTransfererAccountCode() { return $this->getKey('TransfererAccountCode'); } /** * Returns key: 'TransfererContext'. * * @return string */public function getTransfererContext() { return $this->getKey('TransfererContext'); } /** * Returns key: 'TransfererExten'. * * @return string */public function getTransfererExten() { return $this->getKey('TransfererExten'); } /** * Returns key: 'TransfererPriority'. * * @return string */public function getTransfererPriority() { return $this->getKey('TransfererPriority'); } /** * Returns key: 'TransfererUniqueid'. * * @return string */public function getTransfererUniqueid() { return $this->getKey('TransfererUniqueid'); } /** * Returns key: 'TransfereeChannel'. * * @return string */public function getTransfereeChannel() { return $this->getKey('TransfereeChannel'); } /** * Returns key: 'TransfereeChannelState'. * TransfereeChannelState - A numeric code for the channel's current state, related to TransfereeChannelStateDesc * * @return string */public function getTransfereeChannelState() { return $this->getKey('TransfereeChannelState'); } /** * Returns key: 'TransfereeChannelStateDesc'. * * Down * Rsrvd * OffHook * Dialing * Ring * Ringing * Up * Busy * Dialing Offhook * Pre-ring * Unknown * * @return string */public function getTransfereeChannelStateDesc() { return $this->getKey('TransfereeChannelStateDesc'); } /** * Returns key: 'TransfereeCallerIDNum'. * * @return string */public function getTransfereeCallerIDNum() { return $this->getKey('TransfereeCallerIDNum'); } /** * Returns key: 'TransfereeCallerIDName'. * * @return string */public function getTransfereeCallerIDName() { return $this->getKey('TransfereeCallerIDName'); } /** * Returns key: 'TransfereeConnectedLineNum'. * * @return string */public function getTransfereeConnectedLineNum() { return $this->getKey('TransfereeConnectedLineNum'); } /** * Returns key: 'TransfereeConnectedLineName'. * * @return string */public function getTransfereeConnectedLineName() { return $this->getKey('TransfereeConnectedLineName'); } /** * Returns key: 'TransfereeAccountCode'. * * @return string */public function getTransfereeAccountCode() { return $this->getKey('TransfereeAccountCode'); } /** * Returns key: 'TransfereeContext'. * * @return string */public function getTransfereeContext() { return $this->getKey('TransfereeContext'); } /** * Returns key: 'TransfereeExten'. * * @return string */public function getTransfereeExten() { return $this->getKey('TransfereeExten'); } /** * Returns key: 'TransfereePriority'. * * @return string */public function getTransfereePriority() { return $this->getKey('TransfereePriority'); } /** * Returns key: 'TransfereeUniqueid'. * * @return string */public function getTransfereeUniqueid() { return $this->getKey('TransfereeUniqueid'); } /** * Returns key: 'BridgeUniqueid'. * * @return string */public function getBridgeUniqueid() { return $this->getKey('BridgeUniqueid'); } /** * Returns key: 'BridgeType'. * BridgeType - The type of bridge * * @return string */public function getBridgeType() { return $this->getKey('BridgeType'); } /** * Returns key: 'BridgeTechnology'. * BridgeTechnology - Technology in use by the bridge * * @return string */public function getBridgeTechnology() { return $this->getKey('BridgeTechnology'); } /** * Returns key: 'BridgeCreator'. * BridgeCreator - Entity that created the bridge if applicable * * @return string */public function getBridgeCreator() { return $this->getKey('BridgeCreator'); } /** * Returns key: 'BridgeName'. * BridgeName - Name used to refer to the bridge by its BridgeCreator if applicable * * @return string */public function getBridgeName() { return $this->getKey('BridgeName'); } /** * Returns key: 'BridgeNumChannels'. * BridgeNumChannels - Number of channels in the bridge * * @return string */public function getBridgeNumChannels() { return $this->getKey('BridgeNumChannels'); } /** * Returns key: 'IsExternal'. * IsExternal - Indicates if the transfer was performed outside of Asterisk. * For instance, a channel protocol native transfer is external. A DTMF transfer is internal. * * Yes * No * * @return string */public function getIsExternal() { return $this->getKey('IsExternal'); } /** * Indicates if the transfer was performed outside of Asterisk. * For instance, a channel protocol native transfer is external. A DTMF transfer is internal. * * @return bool */public function isExternal() { return $this->getIsExternal() === 'Yes'; } /** * Returns key: 'Context'. * Context - Destination context for the blind transfer. * * @return string */public function getContext() { return $this->getKey('Context'); } /** * Returns key: 'Extension'. * Extension - Destination extension for the blind transfer. * * @return string */public function getExtension() { return $this->getKey('Extension'); } } |