Skip to content

Commit

Permalink
Added ConfBridge classes from the cbstatus repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
parhamdoustdar committed Jul 19, 2015
1 parent c975e9a commit 09e304a
Show file tree
Hide file tree
Showing 14 changed files with 1,126 additions and 0 deletions.
57 changes: 57 additions & 0 deletions src/mg/PAMI/Message/Action/ConfbridgeKickAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php
/**
* Show sip peers.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @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\Action;

/**
* Show sip peers.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @link http://marcelog.github.com/PAMI/
*/
class ConfBridgeKickAction extends ActionMessage
{
/**
* Constructor.
*
* @return void
*/
public function __construct( $conference, $channel )
{
parent::__construct('ConfbridgeKick');
$this->setKey('Conference', $conference);
$this->setKey('Channel', $channel);
}
}
56 changes: 56 additions & 0 deletions src/mg/PAMI/Message/Action/ConfbridgeListAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php
/**
* Show sip peers.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @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\Action;

/**
* Show sip peers.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @link http://marcelog.github.com/PAMI/
*/
class ConfBridgeListAction extends ActionMessage
{
/**
* Constructor.
*
* @return void
*/
public function __construct( $conference )
{
parent::__construct('ConfbridgeList');
$this->setKey('Conference', $conference);
}
}
55 changes: 55 additions & 0 deletions src/mg/PAMI/Message/Action/ConfbridgeListRoomsAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
/**
* Show sip peers.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @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\Action;

/**
* Show sip peers.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Marcelo Gornstein <marcelog@gmail.com>
* @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');
}
}
68 changes: 68 additions & 0 deletions src/mg/PAMI/Message/Event/ConfbridgeEndEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?php
/**
* Event triggered when .. ?
*
* 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;

use PAMI\Message\Event\EventMessage;

/**
* Event triggered when .. ?
*
* 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 ConfbridgeEndEvent extends EventMessage
{
/**
* Returns key: 'Privilege'.
*
* @return string
*/
public function getPrivilege()
{
return $this->getKey('Privilege');
}

/**
* Returns key: 'Conference'.
*
* @return string
*/
public function getConference()
{
return $this->getKey('Conference');
}

}
108 changes: 108 additions & 0 deletions src/mg/PAMI/Message/Event/ConfbridgeJoinEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?php
/**
* Event triggered when .. ?
*
* 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;

use PAMI\Message\Event\EventMessage;

/**
* Event triggered when .. ?
*
* 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 ConfbridgeJoinEvent extends EventMessage
{
/**
* Returns key: 'Privilege'.
*
* @return string
*/
public function getPrivilege()
{
return $this->getKey('Privilege');
}

/**
* Returns key: 'Channel'.
*
* @return string
*/
public function getChannel()
{
return $this->getKey('Channel');
}

/**
* Returns key: 'Uniqueid'.
*
* @return string
*/
public function getUniqueid()
{
return $this->getKey('Uniqueid');
}

/**
* Returns key: 'Conference'.
*
* @return string
*/
public function getConference()
{
return $this->getKey('Conference');
}

/**
* Returns key: 'CallerIDnum'.
*
* @return string
*/
public function getCallerIDnum()
{
return $this->getKey('CallerIDnum');
}

/**
* Returns key: 'CallerIDname'.
*
* @return string
*/
public function getCallerIDname()
{
return $this->getKey('CallerIDname');
}

}
Loading

0 comments on commit 09e304a

Please sign in to comment.