diff --git a/src/PAMI/Message/Action/ConfbridgeKickAction.php b/src/PAMI/Message/Action/ConfbridgeKickAction.php new file mode 100644 index 000000000..82a3ee910 --- /dev/null +++ b/src/PAMI/Message/Action/ConfbridgeKickAction.php @@ -0,0 +1,60 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2011 Marcelo Gornstein + * + * 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\Action; + +/** + * ConfbridgeKick action message. + * + * PHP Version 5 + * + * @category Pami + * @package Message + * @subpackage Action + * @author Matt Styles + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @link http://marcelog.github.com/PAMI/ + */ +class ConfbridgeKickAction extends ActionMessage +{ + /** + * Constructor. + * + * @param string $channel Channel to be muted. + * @param string $conference Conference on which to act. + * + * @return void + */ + public function __construct($channel, $conference) + { + parent::__construct('ConfbridgeKick'); + $this->setKey('Channel', $channel); + $this->setKey('Conference', $conference); + } +} diff --git a/src/PAMI/Message/Action/ConfbridgeListRoomsAction.php b/src/PAMI/Message/Action/ConfbridgeListRoomsAction.php new file mode 100644 index 000000000..1df7b846b --- /dev/null +++ b/src/PAMI/Message/Action/ConfbridgeListRoomsAction.php @@ -0,0 +1,55 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2011 Marcelo Gornstein + * + * 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\Action; + +/** + * ConfbridgeListRooms action message. + * + * PHP Version 5 + * + * @category Pami + * @package Message + * @subpackage Action + * @author Matt Styles + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @link http://marcelog.github.com/PAMI/ + */ +class ConfbridgeListRoomsAction extends ActionMessage +{ + /** + * Constructor. + * + * @return void + */ + public function __construct() + { + parent::__construct('ConfbridgeListRooms'); + } +} diff --git a/src/PAMI/Message/Action/ConfbridgeLockAction.php b/src/PAMI/Message/Action/ConfbridgeLockAction.php new file mode 100644 index 000000000..7b602a7e9 --- /dev/null +++ b/src/PAMI/Message/Action/ConfbridgeLockAction.php @@ -0,0 +1,58 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2011 Marcelo Gornstein + * + * 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\Action; + +/** + * ConfbridgeLock action message. + * + * PHP Version 5 + * + * @category Pami + * @package Message + * @subpackage Action + * @author Matt Styles + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @link http://marcelog.github.com/PAMI/ + */ +class ConfbridgeLockAction extends ActionMessage +{ + /** + * Constructor. + * + * @param string $conference Conference on which to act. + * + * @return void + */ + public function __construct($conference) + { + parent::__construct('ConfbridgeLock'); + $this->setKey('Conference', $conference); + } +} diff --git a/src/PAMI/Message/Action/ConfbridgeStartRecordAction.php b/src/PAMI/Message/Action/ConfbridgeStartRecordAction.php new file mode 100644 index 000000000..45b877387 --- /dev/null +++ b/src/PAMI/Message/Action/ConfbridgeStartRecordAction.php @@ -0,0 +1,58 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2011 Marcelo Gornstein + * + * 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\Action; + +/** + * ConfbridgeStartRecord action message. + * + * PHP Version 5 + * + * @category Pami + * @package Message + * @subpackage Action + * @author Matt Styles + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @link http://marcelog.github.com/PAMI/ + */ +class ConfbridgeStartRecordAction extends ActionMessage +{ + /** + * Constructor. + * + * @param string $conference Conference on which to act. + * + * @return void + */ + public function __construct($conference) + { + parent::__construct('ConfbridgeStartRecord'); + $this->setKey('Conference', $conference); + } +} diff --git a/src/PAMI/Message/Action/ConfbridgeStopRecordAction.php b/src/PAMI/Message/Action/ConfbridgeStopRecordAction.php new file mode 100644 index 000000000..b03d07b6d --- /dev/null +++ b/src/PAMI/Message/Action/ConfbridgeStopRecordAction.php @@ -0,0 +1,58 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2011 Marcelo Gornstein + * + * 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\Action; + +/** + * ConfbridgeStopRecord action message. + * + * PHP Version 5 + * + * @category Pami + * @package Message + * @subpackage Action + * @author Matt Styles + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @link http://marcelog.github.com/PAMI/ + */ +class ConfbridgeStopRecordAction extends ActionMessage +{ + /** + * Constructor. + * + * @param string $conference Conference on which to act. + * + * @return void + */ + public function __construct($conference) + { + parent::__construct('ConfbridgeStopRecord'); + $this->setKey('Conference', $conference); + } +} diff --git a/src/PAMI/Message/Action/ConfbridgeUnlockAction.php b/src/PAMI/Message/Action/ConfbridgeUnlockAction.php new file mode 100644 index 000000000..3d578f560 --- /dev/null +++ b/src/PAMI/Message/Action/ConfbridgeUnlockAction.php @@ -0,0 +1,58 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2011 Marcelo Gornstein + * + * 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\Action; + +/** + * ConfbridgeUnlock action message. + * + * PHP Version 5 + * + * @category Pami + * @package Message + * @subpackage Action + * @author Matt Styles + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @link http://marcelog.github.com/PAMI/ + */ +class ConfbridgeUnlockAction extends ActionMessage +{ + /** + * Constructor. + * + * @param string $conference Conference on which to act. + * + * @return void + */ + public function __construct($conference) + { + parent::__construct('ConfbridgeUnlock'); + $this->setKey('Conference', $conference); + } +} diff --git a/src/PAMI/Message/Event/ConfbridgeListRoomsCompleteEvent.php b/src/PAMI/Message/Event/ConfbridgeListRoomsCompleteEvent.php new file mode 100644 index 000000000..e7d0c5046 --- /dev/null +++ b/src/PAMI/Message/Event/ConfbridgeListRoomsCompleteEvent.php @@ -0,0 +1,57 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2011 Marcelo Gornstein + * + * 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; + +use PAMI\Message\Event\EventMessage; + +/** + * Event triggered for the end of the list when an action ConfbridgeListRooms is issued. + * + * PHP Version 5 + * + * @category Pami + * @package Message + * @subpackage Event + * @author Matt Styles + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @link http://marcelog.github.com/PAMI/ + */ +class ConfbridgeListRoomsCompleteEvent extends EventMessage +{ + /** + * Returns key: 'ListItems'. + * + * @return string + */ + public function getListItems() + { + return $this->getKey('ListItems'); + } +} diff --git a/src/PAMI/Message/Event/ConfbridgeListRoomsEvent.php b/src/PAMI/Message/Event/ConfbridgeListRoomsEvent.php new file mode 100644 index 000000000..6ab78fc25 --- /dev/null +++ b/src/PAMI/Message/Event/ConfbridgeListRoomsEvent.php @@ -0,0 +1,87 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2011 Marcelo Gornstein + * + * 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; + +use PAMI\Message\Event\EventMessage; + +/** + * Event triggered for each conference when an action ConfbridgeListRooms is issued. + * + * PHP Version 5 + * + * @category Pami + * @package Message + * @subpackage Event + * @author Marcelo Gornstein + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @link http://marcelog.github.com/PAMI/ + */ +class ConfbridgeListRoomsEvent extends EventMessage +{ + /** + * Returns key: 'Conference'. + * + * @return string + */ + public function getConference() + { + return $this->getKey('Conference'); + } + + /** + * Returns key: 'Parties'. + * + * @return string + */ + public function getParties() + { + return $this->getKey('Parties'); + } + + /** + * Returns key: 'Marked'. + * + * @return string + */ + public function getMarked() + { + return $this->getKey('Marked'); + } + + /** + * Returns key: 'Locked'. + * + * @return string + */ + public function getLocked() + { + return $this->getKey('Locked'); + } +} diff --git a/test/actions/Test_Actions.php b/test/actions/Test_Actions.php index 28f9138df..f75c0ab8b 100644 --- a/test/actions/Test_Actions.php +++ b/test/actions/Test_Actions.php @@ -275,6 +275,20 @@ public function can_command() $action = new \PAMI\Message\Action\CommandAction('command'); $client = $this->_start($write, $action); } + /** + * @test + */ + public function can_confbridge_list_rooms() + { + $conference = 'conf-59dba3997444e5'; + $write = array(implode("\r\n", array( + 'action: ConfbridgeListRooms', + 'actionid: 1432.123', + '' + ))); + $action = new \PAMI\Message\Action\ConfbridgeListRoomsAction(); + $client = $this->_start($write, $action); + } /** * @test */ @@ -320,6 +334,77 @@ public function can_confbridge_unmute() $action = new \PAMI\Message\Action\ConfbridgeUnmuteAction('channel', 'conference'); $client = $this->_start($write, $action); } + /** + * @test + */ + public function can_confbridge_lock() + { + $write = array(implode("\r\n", array( + 'action: ConfbridgeLock', + 'actionid: 1432.123', + 'conference: conference', + '' + ))); + $action = new \PAMI\Message\Action\ConfbridgeLockAction('conference'); + $client = $this->_start($write, $action); + } + /** + * @test + */ + public function can_confbridge_unlock() + { + $write = array(implode("\r\n", array( + 'action: ConfbridgeUnlock', + 'actionid: 1432.123', + 'conference: conference', + '' + ))); + $action = new \PAMI\Message\Action\ConfbridgeUnlockAction('conference'); + $client = $this->_start($write, $action); + } + /** + * @test + */ + public function can_confbridge_kick() + { + $write = array(implode("\r\n", array( + 'action: ConfbridgeKick', + 'actionid: 1432.123', + 'channel: channel', + 'conference: conference', + '' + ))); + $action = new \PAMI\Message\Action\ConfbridgeKickAction('channel', 'conference'); + $client = $this->_start($write, $action); + } + /** + * @test + */ + public function can_confbridge_start_record() + { + $write = array(implode("\r\n", array( + 'action: ConfbridgeStartRecord', + 'actionid: 1432.123', + 'conference: conference', + '' + ))); + $action = new \PAMI\Message\Action\ConfbridgeStartRecordAction('conference'); + $client = $this->_start($write, $action); + } + /** + * @test + */ + public function can_confbridge_stop_record() + { + $write = array(implode("\r\n", array( + 'action: ConfbridgeStopRecord', + 'actionid: 1432.123', + 'conference: conference', + '' + ))); + $action = new \PAMI\Message\Action\ConfbridgeStopRecordAction('conference'); + $client = $this->_start($write, $action); + } /** * @test */ @@ -1062,6 +1147,24 @@ public function can_stop_mix_monitor() $action->setMixMonitorId('mix_monitor'); $client = $this->_start($write, $action); } + /** + * @test + */ + public function can_mix_monitor_mute() + { + $write = array(implode("\r\n", array( + 'action: MixMonitorMute', + 'actionid: 1432.123', + 'channel: channel', + 'state: 1', + 'direction: write', + '' + ))); + $action = new \PAMI\Message\Action\MixMonitorMuteAction('channel'); + $action->setState(true); + $action->setDirection('write'); + $client = $this->_start($write, $action); + } /** * @test */ @@ -1670,6 +1773,9 @@ public function can_update_config() 'cat-000002: '.$number, 'var-000002: secret', 'value-000002: secret', + 'action-000003: Append', + 'match-000003: match', + 'line-000003: line', '' )) ); @@ -1691,6 +1797,10 @@ public function can_update_config() $actionCreate->setVar('secret'); $actionCreate->setValue('secret'); + $actionCreate->setAction('Append'); + $actionCreate->setMatch('match'); + $actionCreate->setLine('line'); + $client = $this->_start($writeCreate, $actionCreate); $writeDelete = array( implode("\r\n", array( diff --git a/test/client/Test_Client.php b/test/client/Test_Client.php index feec27b9f..87e59c62f 100644 --- a/test/client/Test_Client.php +++ b/test/client/Test_Client.php @@ -213,6 +213,22 @@ public function can_get_client() ); $client = new \PAMI\Client\Impl\ClientImpl($options); } + /** + * @test + */ + public function can_set_logger() + { + $options = array( + 'host' => 'tcp://1.1.1.1', + 'port' => 9999, + 'username' => 'asd', + 'secret' => 'asd', + 'connect_timeout' => 10, + 'read_timeout' => 10 + ); + $client = new \PAMI\Client\Impl\ClientImpl($options); + $client -> setLogger(new \Psr\Log\NullLogger); + } /** * @test */ @@ -1109,6 +1125,7 @@ public function can_get_channel_variables() ); $this->assertEquals($varChan1, $event->getChannelVariables()); $this->assertEquals($channelVars, $event->getAllChannelVariables()); + $this->assertNull($event->getChannelVariables('unknown')); } } class SomeListenerClass implements \PAMI\Listener\IEventListener diff --git a/test/events/Test_Events.php b/test/events/Test_Events.php index 580fccd13..b7e4848eb 100644 --- a/test/events/Test_Events.php +++ b/test/events/Test_Events.php @@ -80,6 +80,7 @@ public function can_report_events() 'AsyncAGIEnd', 'QueueCallerJoin', 'QueueCallerLeave', + 'QueueCallerAbandon', 'AttendedTransfer', 'BlindTransfer', 'DialBegin', @@ -101,8 +102,13 @@ public function can_report_events() 'ConfbridgeTalking', 'ConfbridgeList', 'ConfbridgeListComplete', + 'ConfbridgeListRooms', + 'ConfbridgeListRoomsComplete', 'BridgeInfoChannel', 'BridgeInfoComplete', + 'DNDState', + 'ParkedCallGiveUp', + 'ParkedCallTimeOut', ); $eventTranslatedValues = array( 'QueueMemberStatus' => array( @@ -863,6 +869,7 @@ public function can_report_events() 'Channel2' => 'Channel2' ), 'AGIExecStart' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -879,6 +886,7 @@ public function can_report_events() 'CommandId' => 'CommandId', ), 'AGIExecEnd' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -897,6 +905,7 @@ public function can_report_events() 'Result' => 'Result', ), 'AsyncAGIStart' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -912,6 +921,7 @@ public function can_report_events() 'Env' => 'Env', ), 'AsyncAGIExec' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -928,6 +938,7 @@ public function can_report_events() 'Result' => 'Result', ), 'AsyncAGIEnd' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -942,6 +953,7 @@ public function can_report_events() 'Uniqueid' => 'Uniqueid', ), 'QueueCallerJoin' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -959,6 +971,7 @@ public function can_report_events() 'Count' => 'Count', ), 'QueueCallerLeave' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -975,6 +988,25 @@ public function can_report_events() 'Count' => 'Count', 'Position' => 'Position', ), + 'QueueCallerAbandon' => array( + 'Privilege' => 'Privilege', + 'Channel' => 'Channel', + 'ChannelState' => 'ChannelState', + 'ChannelStateDesc' => 'ChannelStateDesc', + 'CallerIDNum' => 'CallerIDNum', + 'CallerIDName' => 'CallerIDName', + 'ConnectedLineNum' => 'ConnectedLineNum', + 'ConnectedLineName' => 'ConnectedLineName', + 'AccountCode' => 'AccountCode', + 'Context' => 'Context', + 'Exten' => 'Exten', + 'Priority' => 'Priority', + 'Uniqueid' => 'Uniqueid', + 'Queue' => 'Queue', + 'Position' => 'Position', + 'OriginalPosition' => 'OriginalPosition', + 'HoldTime' => 'HoldTime', + ), 'AttendedTransfer' => array( 'Result' => 'Result', 'OrigTransfererChannel' => 'OrigTransfererChannel', @@ -1055,6 +1087,7 @@ public function can_report_events() 'TransfereeUniqueid' => 'TransfereeUniqueid', ), 'BlindTransfer' => array( + 'Privilege' => 'Privilege', 'Result' => 'Result', 'TransfererChannel' => 'TransfererChannel', 'TransfererChannelState' => 'TransfererChannelState', @@ -1091,6 +1124,7 @@ public function can_report_events() 'Extension' => 'Extension', ), 'DialBegin' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -1115,9 +1149,11 @@ public function can_report_events() 'DestExten' => 'DestExten', 'DestPriority' => 'DestPriority', 'DestUniqueid' => 'DestUniqueid', + 'DialStatus' => 'DialStatus', 'DialString' => 'DialString', ), 'DialEnd' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -1145,6 +1181,7 @@ public function can_report_events() 'DialStatus' => 'DialStatus', ), 'DTMFBegin' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -1161,6 +1198,7 @@ public function can_report_events() 'Direction' => 'Direction', ), 'DTMFEnd' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -1178,6 +1216,7 @@ public function can_report_events() 'Direction' => 'Direction', ), 'BridgeCreate' => array( + 'Privilege' => 'Privilege', 'BridgeUniqueid' => 'BridgeUniqueid', 'BridgeType' => 'BridgeType', 'BridgeTechnology' => 'BridgeTechnology', @@ -1186,6 +1225,7 @@ public function can_report_events() 'BridgeNumChannels' => 'BridgeNumChannels', ), 'BridgeDestroy' => array( + 'Privilege' => 'Privilege', 'BridgeUniqueid' => 'BridgeUniqueid', 'BridgeType' => 'BridgeType', 'BridgeTechnology' => 'BridgeTechnology', @@ -1194,6 +1234,7 @@ public function can_report_events() 'BridgeNumChannels' => 'BridgeNumChannels', ), 'BridgeEnter' => array( + 'Privilege' => 'Privilege', 'BridgeUniqueid' => 'BridgeUniqueid', 'BridgeType' => 'BridgeType', 'BridgeTechnology' => 'BridgeTechnology', @@ -1215,6 +1256,7 @@ public function can_report_events() 'SwapUniqueid' => 'SwapUniqueid', ), 'BridgeLeave' => array( + 'Privilege' => 'Privilege', 'BridgeUniqueid' => 'BridgeUniqueid', 'BridgeType' => 'BridgeType', 'BridgeTechnology' => 'BridgeTechnology', @@ -1235,6 +1277,7 @@ public function can_report_events() 'Uniqueid' => 'Uniqueid', ), 'MusicOnHoldStart' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -1250,6 +1293,7 @@ public function can_report_events() 'Class' => 'Class', ), 'MusicOnHoldStop' => array( + 'Privilege' => 'Privilege', 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', 'ChannelStateDesc' => 'ChannelStateDesc', @@ -1264,6 +1308,7 @@ public function can_report_events() 'Uniqueid' => 'Uniqueid', ), 'ConfbridgeStart' => array( + 'Privilege' => 'Privilege', 'Conference' => 'Conference', 'BridgeUniqueid' => 'BridgeUniqueid', 'BridgeType' => 'BridgeType', @@ -1273,6 +1318,7 @@ public function can_report_events() 'BridgeNumChannels' => 'BridgeNumChannels', ), 'ConfbridgeEnd' => array( + 'Privilege' => 'Privilege', 'Conference' => 'Conference', 'BridgeUniqueid' => 'BridgeUniqueid', 'BridgeType' => 'BridgeType', @@ -1282,6 +1328,7 @@ public function can_report_events() 'BridgeNumChannels' => 'BridgeNumChannels', ), 'ConfbridgeJoin' => array( + 'Privilege' => 'Privilege', 'Conference' => 'Conference', 'BridgeUniqueid' => 'BridgeUniqueid', 'BridgeType' => 'BridgeType', @@ -1305,6 +1352,7 @@ public function can_report_events() 'Admin' => 'Admin', ), 'ConfbridgeLeave' => array( + 'Privilege' => 'Privilege', 'Conference' => 'Conference', 'BridgeUniqueid' => 'BridgeUniqueid', 'BridgeType' => 'BridgeType', @@ -1328,6 +1376,7 @@ public function can_report_events() 'Admin' => 'Admin', ), 'ConfbridgeMute' => array( + 'Privilege' => 'Privilege', 'Conference' => 'Conference', 'BridgeUniqueid' => 'BridgeUniqueid', 'BridgeType' => 'BridgeType', @@ -1351,6 +1400,7 @@ public function can_report_events() 'Admin' => 'Admin', ), 'ConfbridgeUnmute' => array( + 'Privilege' => 'Privilege', 'Conference' => 'Conference', 'BridgeUniqueid' => 'BridgeUniqueid', 'BridgeType' => 'BridgeType', @@ -1374,6 +1424,7 @@ public function can_report_events() 'Admin' => 'Admin', ), 'ConfbridgeTalking' => array( + 'Privilege' => 'Privilege', 'Conference' => 'Conference', 'BridgeUniqueid' => 'BridgeUniqueid', 'BridgeType' => 'BridgeType', @@ -1411,6 +1462,13 @@ public function can_report_events() 'Admin' => 'Admin', ), 'ConfbridgeListComplete' => array('ListItems' => 'ListItems'), + 'ConfbridgeListRooms' => array( + 'Conference' => 'Conference', + 'Parties' => 'Parties', + 'Marked' => 'Marked', + 'Locked' => 'Locked', + ), + 'ConfbridgeListRoomsComplete' => array('ListItems' => 'ListItems'), 'BridgeInfoChannel' => array( 'Channel' => 'Channel', 'ChannelState' => 'ChannelState', @@ -1436,6 +1494,76 @@ public function can_report_events() 'BridgeVideoSourceMode' => 'BridgeVideoSourceMode', 'BridgeVideoSource' => 'BridgeVideoSource', ), + 'DNDState' => array ( + 'Privilege' => 'Privilege', + 'Channel' => 'DAHDIChannel', + 'DAHDIChannel' => 'DAHDIChannel', + 'Status' => 'Status', + ), + 'ParkedCallGiveUp' => array ( + 'Privilege' => 'Privilege', + 'ParkeeChannel' => 'ParkeeChannel', + 'ParkeeChannelState' => 'ParkeeChannelState', + 'ParkeeChannelStateDesc' => 'ParkeeChannelStateDesc', + 'ParkeeCallerIDNum' => 'ParkeeCallerIDNum', + 'ParkeeCallerIDName' => 'ParkeeCallerIDName', + 'ParkeeConnectedLineNum' => 'ParkeeConnectedLineNum', + 'ParkeeConnectedLineName' => 'ParkeeConnectedLineName', + 'ParkeeAccountCode' => 'ParkeeAccountCode', + 'ParkeeContext' => 'ParkeeContext', + 'ParkeeExten' => 'ParkeeExten', + 'ParkeePriority' => 'ParkeePriority', + 'ParkeeUniqueid' => 'ParkeeUniqueid', + 'ParkerChannel' => 'ParkerChannel', + 'ParkerChannelState' => 'ParkerChannelState', + 'ParkerChannelStateDesc' => 'ParkerChannelStateDesc', + 'ParkerCallerIDNum' => 'ParkerCallerIDNum', + 'ParkerCallerIDName' => 'ParkerCallerIDName', + 'ParkerConnectedLineNum' => 'ParkerConnectedLineNum', + 'ParkerConnectedLineName' => 'ParkerConnectedLineName', + 'ParkerAccountCode' => 'ParkerAccountCode', + 'ParkerContext' => 'ParkerContext', + 'ParkerExten' => 'ParkerExten', + 'ParkerPriority' => 'ParkerPriority', + 'ParkerUniqueid' => 'ParkerUniqueid', + 'ParkerDialString' => 'ParkerDialString', + 'Parkinglot' => 'Parkinglot', + 'ParkingSpace' => 'ParkingSpace', + 'ParkingTimeout' => 'ParkingTimeout', + 'ParkingDuration' => 'ParkingDuration', + ), + 'ParkedCallTimeOut' => array ( + 'Privilege' => 'Privilege', + 'ParkeeChannel' => 'ParkeeChannel', + 'ParkeeChannelState' => 'ParkeeChannelState', + 'ParkeeChannelStateDesc' => 'ParkeeChannelStateDesc', + 'ParkeeCallerIDNum' => 'ParkeeCallerIDNum', + 'ParkeeCallerIDName' => 'ParkeeCallerIDName', + 'ParkeeConnectedLineNum' => 'ParkeeConnectedLineNum', + 'ParkeeConnectedLineName' => 'ParkeeConnectedLineName', + 'ParkeeAccountCode' => 'ParkeeAccountCode', + 'ParkeeContext' => 'ParkeeContext', + 'ParkeeExten' => 'ParkeeExten', + 'ParkeePriority' => 'ParkeePriority', + 'ParkeeUniqueid' => 'ParkeeUniqueid', + 'ParkerChannel' => 'ParkerChannel', + 'ParkerChannelState' => 'ParkerChannelState', + 'ParkerChannelStateDesc' => 'ParkerChannelStateDesc', + 'ParkerCallerIDNum' => 'ParkerCallerIDNum', + 'ParkerCallerIDName' => 'ParkerCallerIDName', + 'ParkerConnectedLineNum' => 'ParkerConnectedLineNum', + 'ParkerConnectedLineName' => 'ParkerConnectedLineName', + 'ParkerAccountCode' => 'ParkerAccountCode', + 'ParkerContext' => 'ParkerContext', + 'ParkerExten' => 'ParkerExten', + 'ParkerPriority' => 'ParkerPriority', + 'ParkerUniqueid' => 'ParkerUniqueid', + 'ParkerDialString' => 'ParkerDialString', + 'Parkinglot' => 'Parkinglot', + 'ParkingSpace' => 'ParkingSpace', + 'ParkingTimeout' => 'ParkingTimeout', + 'ParkingDuration' => 'ParkingDuration', + ), ); $eventGetters = array( 'UserEvent' => array(