forked from marcelog/PAMI
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ConfBridge classes from the cbstatus repository.
- Loading branch information
1 parent
c975e9a
commit 09e304a
Showing
14 changed files
with
1,126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} | ||
|
||
} |
Oops, something went wrong.