src/PAMI/Message/Event/ParkedCallEvent.php
<?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');
}
}