Source of file ParkedCallEvent.php
Size: 7,169 Bytes - Last Modified: 2019-04-30T12:53:24+00:00
/data/development/sccp/sources/PAMI/src/PAMI/Message/Event/ParkedCallEvent.php
| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 | <?php/** * Event triggered when a call is parked. * * 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 call is parked. * * 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 ParkedCallEvent extends EventMessage {/** * Returns key: 'Privilege'. * * @return string */public function getPrivilege() { return $this->getKey('Privilege'); } /** * Returns key: 'Parkinglot'. * * @return string */public function getParkinglot() { return $this->getKey('Parkinglot'); } /** * Returns key: 'From'. * * @return string */public function getFrom() { return $this->getKey('From'); } /** * Returns key: 'Timeout'. * @deprecated Deprecated since Asterisk 12. {@use ParkingTimeout()}. * * @return string */public function getTimeout() { return $this->getParkingTimeout(); } /** * Returns key: 'ConnectedLineNum'. * @deprecated Deprecated since Asterisk 12. {@use getParkeeConnectedLineNum()}. * * @return string */public function getConnectedLineNum() { return $this->getParkeeConnectedLineNum(); } /** * Returns key: 'ConnectedLineName'. * @deprecated Deprecated since Asterisk 12. {@use getParkeeConnectedLineName()}. * * @return string */public function getConnectedLineName() { return $this->getParkeeConnectedLineName(); } /** * Returns key: 'Channel'. * @deprecated Deprecated since Asterisk 12. {@use getParkeeChannel()}. * * @return string */public function getChannel() { return $this->getParkeeChannel(); } /** * Returns key: 'CallerIDNum'. * @deprecated Deprecated since Asterisk 12. {@use getParkeeCallerIDNum()}. * * @return string */public function getCallerIDNum() { return $this->getParkeeCallerIDNum(); } /** * Returns key: 'CallerIDName'. * @deprecated Deprecated since Asterisk 12. {@use getParkeeCallerIDName()}. * * @return string */public function getCallerIDName() { return $this->getParkeeCallerIDName(); } /** * Returns key: 'UniqueID'. * @deprecated Deprecated since Asterisk 12. {@use getParkeeUniqueid()}. * * @return string */public function getUniqueID() { return $this->getParkeeUniqueid(); } /** * Returns key: 'Exten'. * @deprecated Deprecated since Asterisk 12. {@use getParkingSpace()}. * * @return string */public function getExtension() { return $this->getParkingSpace(); } /** * Returns key: 'ParkeeChannel'. * * @return string */public function getParkeeChannel() { return $this->getKey('ParkeeChannel') ?: $this->getKey('Channel'); } /** * Returns key: 'ParkeeChannelState'. * * @return string */public function getParkeeChannelState() { return $this->getKey('ParkeeChannelState'); } /** * Returns key: 'ParkeeChannelStateDesc'. * * @return string */public function getParkeeChannelStateDesc() { return $this->getKey('ParkeeChannelStateDesc'); } /** * Returns key: 'ParkeeCallerIDNum'. * * @return string */public function getParkeeCallerIDNum() { return $this->getKey('ParkeeCallerIDNum') ?: $this->getKey('CallerIDNum'); } /** * Returns key: 'ParkeeCallerIDName'. * * @return string */public function getParkeeCallerIDName() { return $this->getKey('ParkeeCallerIDName') ?: $this->getKey('CallerIDName'); } /** * Returns key: 'ParkeeConnectedLineNum'. * * @return string */public function getParkeeConnectedLineNum() { return $this->getKey('ParkeeConnectedLineNum') ?: $this->getKey('ConnectedLineNum'); } /** * Returns key: 'ParkeeConnectedLineName'. * * @return string */public function getParkeeConnectedLineName() { return $this->getKey('ParkeeConnectedLineName') ?: $this->getKey('ConnectedLineName'); } /** * Returns key: 'ParkeeAccountCode'. * * @return string */public function getParkeeAccountCode() { return $this->getKey('ParkeeAccountCode'); } /** * Returns key: 'ParkeeContext'. * * @return string */public function getParkeeContext() { return $this->getKey('ParkeeContext'); } /** * Returns key: 'ParkeeExten'. * * @return string */public function getParkeeExten() { return $this->getKey('ParkeeExten'); } /** * Returns key: 'ParkeePriority'. * * @return string */public function getParkeePriority() { return $this->getKey('ParkeePriority'); } /** * Returns key: 'ParkeeUniqueid'. * * @return string */public function getParkeeUniqueid() { return $this->getKey('ParkeeUniqueid') ?: $this->getKey('UniqueId'); } /** * Returns key: 'ParkerDialString'. * * @return string */public function getParkerDialString() { return $this->getKey('ParkerDialString'); } /** * Returns key: 'ParkingSpace'. * * @return string */public function getParkingSpace() { return $this->getKey('ParkingSpace') ?: $this->getKey('Exten'); } /** * Returns key: 'ParkingTimeout'. * * @return string */public function getParkingTimeout() { return $this->getKey('ParkingTimeout') ?: $this->getKey('Timeout'); } /** * Returns key: 'ParkingDuration'. * * @return string */public function getParkingDuration() { return $this->getKey('ParkingDuration'); } } |