Skip to content

Commit

Permalink
added DAHDIDialOffHook Action
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelog committed Jan 4, 2011
1 parent 5259379 commit 753038b
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
1 change: 1 addition & 0 deletions README
Expand Up @@ -75,6 +75,7 @@ Currently Supported Actions
* CoreSettings
* CoreShowChannels
* CoreStatus
* DAHDIDialOffHookAction
* DAHDIHangup
* DAHDIRestart
* DAHDIShowChannels
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/quickstart/example.php
Expand Up @@ -57,6 +57,7 @@
use PAMI\Message\Action\DAHDIShowChannelsAction;
use PAMI\Message\Action\DAHDIHangupAction;
use PAMI\Message\Action\DAHDIRestartAction;
use PAMI\Message\Action\DAHDIDialOffHookAction;

class A implements IEventListener
{
Expand Down Expand Up @@ -89,6 +90,7 @@ public function handle(EventMessage $event)
var_dump($a->send(new GetConfigAction('sip.conf', 'general')));
var_dump($a->send(new GetConfigJSONAction('extensions.conf')));
var_dump($a->send(new DAHDIShowChannelsAction()));
//var_dump($a->send(new DAHDIDialOffHookAction(1, '113')));
//var_dump($a->send(new DAHDIRestartAction()));
//var_dump($a->send(new RedirectAction('SIP/a-1', '51992266', 'netlabs', '1')));
//var_dump($a->send(new AttendedTransferAction('SIP/a-1', '51992266', 'netlabs', '1')));
Expand Down
42 changes: 42 additions & 0 deletions src/mg/PAMI/Message/Action/DAHDIDialOffHookAction.php
@@ -0,0 +1,42 @@
<?php
/**
* DAHDIDiallOffhook action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://www.noneyet.ar/ Apache License 2.0
* @version SVN: $Id$
* @link http://www.noneyet.ar/
*/
namespace PAMI\Message\Action;

/**
* DAHDIDiallOffhook action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://www.noneyet.ar/ Apache License 2.0
* @link http://www.noneyet.ar/
*/
class DAHDIDialOffHookAction extends ActionMessage
{
/**
* Constructor.
*
* @return void
*/
public function __construct($channel, $number)
{
parent::__construct('DAHDIDialOffhook');
$this->setKey('DAHDIChannel', $channel);
$this->setKey('Number', $number);
}
}
1 change: 0 additions & 1 deletion src/mg/PAMI/Message/Action/DAHDIDialOffhookAction.php

This file was deleted.

0 comments on commit 753038b

Please sign in to comment.