├── .codeclimate.yml ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── build.xml ├── composer.json ├── composer.phar ├── doc ├── ApiIndex.md ├── PAMI-AsyncAgi-AsyncClientImpl.md ├── PAMI-Client-Exception-ClientException.md ├── PAMI-Client-IClient.md ├── PAMI-Client-Impl-ClientImpl.md ├── PAMI-Exception-PAMIException.md ├── PAMI-Listener-IEventListener.md ├── PAMI-Message-Action-AGIAction.md ├── PAMI-Message-Action-AbsoluteTimeoutAction.md ├── PAMI-Message-Action-ActionMessage.md ├── PAMI-Message-Action-AgentLogoffAction.md ├── PAMI-Message-Action-AgentsAction.md ├── PAMI-Message-Action-AttendedTransferAction.md ├── PAMI-Message-Action-BridgeAction.md ├── PAMI-Message-Action-BridgeInfoAction.md ├── PAMI-Message-Action-ChangeMonitorAction.md ├── PAMI-Message-Action-CommandAction.md ├── PAMI-Message-Action-ConfbridgeListAction.md ├── PAMI-Message-Action-ConfbridgeMuteAction.md ├── PAMI-Message-Action-ConfbridgeUnmuteAction.md ├── PAMI-Message-Action-CoreSettingsAction.md ├── PAMI-Message-Action-CoreShowChannelsAction.md ├── PAMI-Message-Action-CoreStatusAction.md ├── PAMI-Message-Action-CreateConfigAction.md ├── PAMI-Message-Action-DAHDIDNDOffAction.md ├── PAMI-Message-Action-DAHDIDNDOnAction.md ├── PAMI-Message-Action-DAHDIDialOffHookAction.md ├── PAMI-Message-Action-DAHDIHangupAction.md ├── PAMI-Message-Action-DAHDIRestartAction.md ├── PAMI-Message-Action-DAHDIShowChannelsAction.md ├── PAMI-Message-Action-DBDelAction.md ├── PAMI-Message-Action-DBDelTreeAction.md ├── PAMI-Message-Action-DBGetAction.md ├── PAMI-Message-Action-DBPutAction.md ├── PAMI-Message-Action-DongleReloadAction.md ├── PAMI-Message-Action-DongleResetAction.md ├── PAMI-Message-Action-DongleRestartAction.md ├── PAMI-Message-Action-DongleSendPDUAction.md ├── PAMI-Message-Action-DongleSendSMSAction.md ├── PAMI-Message-Action-DongleSendUSSDAction.md ├── PAMI-Message-Action-DongleShowDevicesAction.md ├── PAMI-Message-Action-DongleStartAction.md ├── PAMI-Message-Action-DongleStopAction.md ├── PAMI-Message-Action-EventsAction.md ├── PAMI-Message-Action-ExtensionStateAction.md ├── PAMI-Message-Action-GetConfigAction.md ├── PAMI-Message-Action-GetConfigJSONAction.md ├── PAMI-Message-Action-GetVarAction.md ├── PAMI-Message-Action-HangupAction.md ├── PAMI-Message-Action-JabberSendAction.md ├── PAMI-Message-Action-ListCategoriesAction.md ├── PAMI-Message-Action-ListCommandsAction.md ├── PAMI-Message-Action-LocalOptimizeAwayAction.md ├── PAMI-Message-Action-LoginAction.md ├── PAMI-Message-Action-LogoffAction.md ├── PAMI-Message-Action-MailboxCountAction.md ├── PAMI-Message-Action-MailboxStatusAction.md ├── PAMI-Message-Action-MeetmeListAction.md ├── PAMI-Message-Action-MeetmeMuteAction.md ├── PAMI-Message-Action-MeetmeUnmuteAction.md ├── PAMI-Message-Action-MixMonitorAction.md ├── PAMI-Message-Action-ModuleCheckAction.md ├── PAMI-Message-Action-ModuleLoadAction.md ├── PAMI-Message-Action-ModuleReloadAction.md ├── PAMI-Message-Action-ModuleUnloadAction.md ├── PAMI-Message-Action-MonitorAction.md ├── PAMI-Message-Action-OriginateAction.md ├── PAMI-Message-Action-ParkAction.md ├── PAMI-Message-Action-ParkedCallsAction.md ├── PAMI-Message-Action-PauseMonitorAction.md ├── PAMI-Message-Action-PingAction.md ├── PAMI-Message-Action-PlayDTMFAction.md ├── PAMI-Message-Action-QueueAddAction.md ├── PAMI-Message-Action-QueueLogAction.md ├── PAMI-Message-Action-QueuePauseAction.md ├── PAMI-Message-Action-QueuePenaltyAction.md ├── PAMI-Message-Action-QueueReloadAction.md ├── PAMI-Message-Action-QueueRemoveAction.md ├── PAMI-Message-Action-QueueResetAction.md ├── PAMI-Message-Action-QueueRuleAction.md ├── PAMI-Message-Action-QueueStatusAction.md ├── PAMI-Message-Action-QueueSummaryAction.md ├── PAMI-Message-Action-QueueUnpauseAction.md ├── PAMI-Message-Action-QueuesAction.md ├── PAMI-Message-Action-RedirectAction.md ├── PAMI-Message-Action-ReloadAction.md ├── PAMI-Message-Action-SIPNotifyAction.md ├── PAMI-Message-Action-SIPPeersAction.md ├── PAMI-Message-Action-SIPQualifyPeerAction.md ├── PAMI-Message-Action-SIPShowPeerAction.md ├── PAMI-Message-Action-SIPShowRegistryAction.md ├── PAMI-Message-Action-SendTextAction.md ├── PAMI-Message-Action-SetVarAction.md ├── PAMI-Message-Action-ShowDialPlanAction.md ├── PAMI-Message-Action-StatusAction.md ├── PAMI-Message-Action-StopMixMonitorAction.md ├── PAMI-Message-Action-StopMonitorAction.md ├── PAMI-Message-Action-UnpauseMonitorAction.md ├── PAMI-Message-Action-UpdateConfigAction.md ├── PAMI-Message-Action-VGSMSMSTxAction.md ├── PAMI-Message-Action-VoicemailUsersListAction.md ├── PAMI-Message-Event-AGIExecEvent.md ├── PAMI-Message-Event-AgentConnectEvent.md ├── PAMI-Message-Event-AgentloginEvent.md ├── PAMI-Message-Event-AgentlogoffEvent.md ├── PAMI-Message-Event-AgentsCompleteEvent.md ├── PAMI-Message-Event-AgentsEvent.md ├── PAMI-Message-Event-AsyncAGIEvent.md ├── PAMI-Message-Event-BridgeEvent.md ├── PAMI-Message-Event-BridgeInfoChannelEvent.md ├── PAMI-Message-Event-BridgeInfoCompleteEvent.md ├── PAMI-Message-Event-CELEvent.md ├── PAMI-Message-Event-ChannelUpdateEvent.md ├── PAMI-Message-Event-ConfbridgeListCompleteEvent.md ├── PAMI-Message-Event-ConfbridgeListEvent.md ├── PAMI-Message-Event-CoreShowChannelEvent.md ├── PAMI-Message-Event-CoreShowChannelsCompleteEvent.md ├── PAMI-Message-Event-DAHDIShowChannelsCompleteEvent.md ├── PAMI-Message-Event-DAHDIShowChannelsEvent.md ├── PAMI-Message-Event-DBGetResponseEvent.md ├── PAMI-Message-Event-DTMFEvent.md ├── PAMI-Message-Event-DialEvent.md ├── PAMI-Message-Event-DongleDeviceEntryEvent.md ├── PAMI-Message-Event-DongleNewCUSDEvent.md ├── PAMI-Message-Event-DongleNewUSSDBase64Event.md ├── PAMI-Message-Event-DongleNewUSSDEvent.md ├── PAMI-Message-Event-DongleSMSStatusEvent.md ├── PAMI-Message-Event-DongleShowDevicesCompleteEvent.md ├── PAMI-Message-Event-DongleStatusEvent.md ├── PAMI-Message-Event-DongleUSSDStatusEvent.md ├── PAMI-Message-Event-EventMessage.md ├── PAMI-Message-Event-ExtensionStatusEvent.md ├── PAMI-Message-Event-Factory-Impl-EventFactoryImpl.md ├── PAMI-Message-Event-FullyBootedEvent.md ├── PAMI-Message-Event-HangupEvent.md ├── PAMI-Message-Event-HoldEvent.md ├── PAMI-Message-Event-JabberEventEvent.md ├── PAMI-Message-Event-JoinEvent.md ├── PAMI-Message-Event-LeaveEvent.md ├── PAMI-Message-Event-LinkEvent.md ├── PAMI-Message-Event-ListDialPlanEvent.md ├── PAMI-Message-Event-MasqueradeEvent.md ├── PAMI-Message-Event-MessageWaitingEvent.md ├── PAMI-Message-Event-MusicOnHoldEvent.md ├── PAMI-Message-Event-NewAccountCodeEvent.md ├── PAMI-Message-Event-NewCalleridEvent.md ├── PAMI-Message-Event-NewchannelEvent.md ├── PAMI-Message-Event-NewextenEvent.md ├── PAMI-Message-Event-NewstateEvent.md ├── PAMI-Message-Event-OriginateResponseEvent.md ├── PAMI-Message-Event-ParkedCallEvent.md ├── PAMI-Message-Event-ParkedCallsCompleteEvent.md ├── PAMI-Message-Event-PeerEntryEvent.md ├── PAMI-Message-Event-PeerStatusEvent.md ├── PAMI-Message-Event-PeerlistCompleteEvent.md ├── PAMI-Message-Event-QueueMemberAddedEvent.md ├── PAMI-Message-Event-QueueMemberEvent.md ├── PAMI-Message-Event-QueueMemberPausedEvent.md ├── PAMI-Message-Event-QueueMemberRemovedEvent.md ├── PAMI-Message-Event-QueueMemberStatusEvent.md ├── PAMI-Message-Event-QueueParamsEvent.md ├── PAMI-Message-Event-QueueStatusCompleteEvent.md ├── PAMI-Message-Event-QueueSummaryCompleteEvent.md ├── PAMI-Message-Event-QueueSummaryEvent.md ├── PAMI-Message-Event-RTCPReceivedEvent.md ├── PAMI-Message-Event-RTCPReceiverStatEvent.md ├── PAMI-Message-Event-RTCPSentEvent.md ├── PAMI-Message-Event-RTPReceiverStatEvent.md ├── PAMI-Message-Event-RTPSenderStatEvent.md ├── PAMI-Message-Event-RegistrationsCompleteEvent.md ├── PAMI-Message-Event-RegistryEvent.md ├── PAMI-Message-Event-RenameEvent.md ├── PAMI-Message-Event-ShowDialPlanCompleteEvent.md ├── PAMI-Message-Event-StatusCompleteEvent.md ├── PAMI-Message-Event-StatusEvent.md ├── PAMI-Message-Event-TransferEvent.md ├── PAMI-Message-Event-UnParkedCallEvent.md ├── PAMI-Message-Event-UnknownEvent.md ├── PAMI-Message-Event-UnlinkEvent.md ├── PAMI-Message-Event-UserEventEvent.md ├── PAMI-Message-Event-VarSetEvent.md ├── PAMI-Message-Event-VgsmMeStateEvent.md ├── PAMI-Message-Event-VgsmNetStateEvent.md ├── PAMI-Message-Event-VgsmSmsRxEvent.md ├── PAMI-Message-Event-VoicemailUserEntryCompleteEvent.md ├── PAMI-Message-Event-VoicemailUserEntryEvent.md ├── PAMI-Message-IncomingMessage.md ├── PAMI-Message-Message.md ├── PAMI-Message-OutgoingMessage.md ├── PAMI-Message-Response-ResponseMessage.md └── examples │ ├── asyncagi │ ├── MyPAGIApplication.php │ └── example.php │ ├── quickstart │ └── example.php │ └── sms │ └── example.php ├── src └── PAMI │ ├── AsyncAgi │ └── AsyncClientImpl.php │ ├── Client │ ├── Exception │ │ └── ClientException.php │ ├── IClient.php │ └── Impl │ │ └── ClientImpl.php │ ├── Exception │ └── PAMIException.php │ ├── Listener │ └── IEventListener.php │ └── Message │ ├── Action │ ├── AGIAction.php │ ├── AbsoluteTimeoutAction.php │ ├── ActionMessage.php │ ├── AgentLogoffAction.php │ ├── AgentsAction.php │ ├── AttendedTransferAction.php │ ├── BlindTransferAction.php │ ├── BridgeAction.php │ ├── BridgeInfoAction.php │ ├── ChallengeAction.php │ ├── ChangeMonitorAction.php │ ├── CommandAction.php │ ├── ConfbridgeListAction.php │ ├── ConfbridgeMuteAction.php │ ├── ConfbridgeUnmuteAction.php │ ├── CoreSettingsAction.php │ ├── CoreShowChannelsAction.php │ ├── CoreStatusAction.php │ ├── CreateConfigAction.php │ ├── DAHDIDNDOffAction.php │ ├── DAHDIDNDOnAction.php │ ├── DAHDIDialOffHookAction.php │ ├── DAHDIHangupAction.php │ ├── DAHDIRestartAction.php │ ├── DAHDIShowChannelsAction.php │ ├── DAHDITransferAction.php │ ├── DBDelAction.php │ ├── DBDelTreeAction.php │ ├── DBGetAction.php │ ├── DBPutAction.php │ ├── DongleReloadAction.php │ ├── DongleResetAction.php │ ├── DongleRestartAction.php │ ├── DongleSendPDUAction.php │ ├── DongleSendSMSAction.php │ ├── DongleSendUSSDAction.php │ ├── DongleShowDevicesAction.php │ ├── DongleStartAction.php │ ├── DongleStopAction.php │ ├── EventsAction.php │ ├── ExtensionStateAction.php │ ├── GetConfigAction.php │ ├── GetConfigJSONAction.php │ ├── GetVarAction.php │ ├── HangupAction.php │ ├── JabberSendAction.php │ ├── ListCategoriesAction.php │ ├── ListCommandsAction.php │ ├── LocalOptimizeAwayAction.php │ ├── LoginAction.php │ ├── LogoffAction.php │ ├── MailboxCountAction.php │ ├── MailboxStatusAction.php │ ├── MeetmeListAction.php │ ├── MeetmeMuteAction.php │ ├── MeetmeUnmuteAction.php │ ├── MixMonitorAction.php │ ├── MixMonitorMuteAction.php │ ├── ModuleCheckAction.php │ ├── ModuleLoadAction.php │ ├── ModuleReloadAction.php │ ├── ModuleUnloadAction.php │ ├── MonitorAction.php │ ├── OriginateAction.php │ ├── ParkAction.php │ ├── ParkedCallsAction.php │ ├── PauseMonitorAction.php │ ├── PingAction.php │ ├── PlayDTMFAction.php │ ├── QueueAddAction.php │ ├── QueueLogAction.php │ ├── QueuePauseAction.php │ ├── QueuePenaltyAction.php │ ├── QueueReloadAction.php │ ├── QueueRemoveAction.php │ ├── QueueResetAction.php │ ├── QueueRuleAction.php │ ├── QueueStatusAction.php │ ├── QueueSummaryAction.php │ ├── QueueUnpauseAction.php │ ├── QueuesAction.php │ ├── RedirectAction.php │ ├── ReloadAction.php │ ├── SIPNotifyAction.php │ ├── SIPPeersAction.php │ ├── SIPQualifyPeerAction.php │ ├── SIPShowPeerAction.php │ ├── SIPShowRegistryAction.php │ ├── SendTextAction.php │ ├── SetVarAction.php │ ├── ShowDialPlanAction.php │ ├── StatusAction.php │ ├── StopMixMonitorAction.php │ ├── StopMonitorAction.php │ ├── UnpauseMonitorAction.php │ ├── UpdateConfigAction.php │ ├── UserEventAction.php │ ├── VGSMSMSTxAction.php │ ├── VoicemailUsersListAction.php │ └── WaitEventAction.php │ ├── Event │ ├── AGIExecEndEvent.php │ ├── AGIExecEvent.php │ ├── AGIExecStartEvent.php │ ├── AgentConnectEvent.php │ ├── AgentloginEvent.php │ ├── AgentlogoffEvent.php │ ├── AgentsCompleteEvent.php │ ├── AgentsEvent.php │ ├── AsyncAGIEndEvent.php │ ├── AsyncAGIEvent.php │ ├── AsyncAGIExecEvent.php │ ├── AsyncAGIStartEvent.php │ ├── AttendedTransferEvent.php │ ├── BlindTransferEvent.php │ ├── BridgeCreateEvent.php │ ├── BridgeDestroyEvent.php │ ├── BridgeEnterEvent.php │ ├── BridgeEvent.php │ ├── BridgeInfoChannelEvent.php │ ├── BridgeInfoCompleteEvent.php │ ├── BridgeLeaveEvent.php │ ├── CELEvent.php │ ├── ChannelUpdateEvent.php │ ├── ConfbridgeEndEvent.php │ ├── ConfbridgeJoinEvent.php │ ├── ConfbridgeLeaveEvent.php │ ├── ConfbridgeListCompleteEvent.php │ ├── ConfbridgeListEvent.php │ ├── ConfbridgeMuteEvent.php │ ├── ConfbridgeStartEvent.php │ ├── ConfbridgeTalkingEvent.php │ ├── ConfbridgeUnmuteEvent.php │ ├── CoreShowChannelEvent.php │ ├── CoreShowChannelsCompleteEvent.php │ ├── DAHDIShowChannelsCompleteEvent.php │ ├── DAHDIShowChannelsEvent.php │ ├── DBGetResponseEvent.php │ ├── DNDStateEvent.php │ ├── DTMFBeginEvent.php │ ├── DTMFEndEvent.php │ ├── DTMFEvent.php │ ├── DialBeginEvent.php │ ├── DialEndEvent.php │ ├── DialEvent.php │ ├── DongleDeviceEntryEvent.php │ ├── DongleNewCUSDEvent.php │ ├── DongleNewUSSDBase64Event.php │ ├── DongleNewUSSDEvent.php │ ├── DongleSMSStatusEvent.php │ ├── DongleShowDevicesCompleteEvent.php │ ├── DongleStatusEvent.php │ ├── DongleUSSDStatusEvent.php │ ├── EventMessage.php │ ├── ExtensionStatusEvent.php │ ├── Factory │ │ └── Impl │ │ │ └── EventFactoryImpl.php │ ├── FullyBootedEvent.php │ ├── HangupEvent.php │ ├── HoldEvent.php │ ├── JabberEventEvent.php │ ├── JoinEvent.php │ ├── LeaveEvent.php │ ├── LinkEvent.php │ ├── ListDialplanEvent.php │ ├── MasqueradeEvent.php │ ├── MessageWaitingEvent.php │ ├── MusicOnHoldEvent.php │ ├── MusicOnHoldStartEvent.php │ ├── MusicOnHoldStopEvent.php │ ├── NewAccountCodeEvent.php │ ├── NewCalleridEvent.php │ ├── NewchannelEvent.php │ ├── NewextenEvent.php │ ├── NewstateEvent.php │ ├── OriginateResponseEvent.php │ ├── ParkedCallEvent.php │ ├── ParkedCallGiveUpEvent.php │ ├── ParkedCallTimeOutEvent.php │ ├── ParkedCallsCompleteEvent.php │ ├── PeerEntryEvent.php │ ├── PeerStatusEvent.php │ ├── PeerlistCompleteEvent.php │ ├── QueueCallerAbandonEvent.php │ ├── QueueCallerJoinEvent.php │ ├── QueueCallerLeaveEvent.php │ ├── QueueMemberAddedEvent.php │ ├── QueueMemberEvent.php │ ├── QueueMemberPausedEvent.php │ ├── QueueMemberRemovedEvent.php │ ├── QueueMemberStatusEvent.php │ ├── QueueParamsEvent.php │ ├── QueueStatusCompleteEvent.php │ ├── QueueSummaryCompleteEvent.php │ ├── QueueSummaryEvent.php │ ├── RTCPReceivedEvent.php │ ├── RTCPReceiverStatEvent.php │ ├── RTCPSentEvent.php │ ├── RTPReceiverStatEvent.php │ ├── RTPSenderStatEvent.php │ ├── RegistrationsCompleteEvent.php │ ├── RegistryEvent.php │ ├── RenameEvent.php │ ├── ShowDialPlanCompleteEvent.php │ ├── StatusCompleteEvent.php │ ├── StatusEvent.php │ ├── TransferEvent.php │ ├── UnParkedCallEvent.php │ ├── UnknownEvent.php │ ├── UnlinkEvent.php │ ├── UserEventEvent.php │ ├── VarSetEvent.php │ ├── VgsmMeStateEvent.php │ ├── VgsmNetStateEvent.php │ ├── VgsmSmsRxEvent.php │ ├── VoicemailUserEntryCompleteEvent.php │ └── VoicemailUserEntryEvent.php │ ├── IncomingMessage.php │ ├── Message.php │ ├── OutgoingMessage.php │ └── Response │ └── ResponseMessage.php └── test ├── actions └── Test_Actions.php ├── client └── Test_Client.php ├── events └── Test_Events.php └── resources ├── bootstrap.php ├── php.ini └── phpunit.xml /.codeclimate.yml: -------------------------------------------------------------------------------- 1 | engines: 2 | duplication: 3 | enabled: true 4 | config: 5 | languages: 6 | - php 7 | fixme: 8 | enabled: false 9 | phpcodesniffer: 10 | enabled: true 11 | phpmd: 12 | enabled: true 13 | 14 | ratings: 15 | paths: 16 | - "**.php" 17 | 18 | exclude_paths: 19 | - test/**/* -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | composer.lock 2 | vendor 3 | .buildpath 4 | .project 5 | .settings 6 | build 7 | docs/examples/quickstart/log.log 8 | resources/php.ini 9 | 10 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | php: 3 | - '5.4' 4 | - '5.5' 5 | - '5.6' 6 | - '7.0' 7 | 8 | before_script: 9 | - phpenv config-add test/resources/php.ini 10 | 11 | install: 12 | - composer install 13 | 14 | script: 15 | - vendor/bin/phing travis 16 | 17 | after_script: 18 | - travis_retry php vendor/bin/coveralls -v 19 | - vendor/bin/test-reporter 20 | 21 | addons: 22 | code_climate: 23 | repo_token: 5d81d5163c7f9b810b46451042cb0069d24c91a5887466ba774bf89a56f0187e -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "marcelog/pami", 3 | "type": "library", 4 | "description": "Asterisk Manager Interface (AMI) client for PHP, event driven, object oriented", 5 | "keywords": ["asterisk","ami","client","telephony","voip","event","action","manager","monitor"], 6 | "homepage": "http://marcelog.github.com/PAMI", 7 | "license": "Apache-2.0", 8 | "authors": [ 9 | { 10 | "name": "Marcelo Gornstein", 11 | "email": "marcelog@gmail.com", 12 | "homepage": "http://marcelog.github.com/", 13 | "role": "Developer" 14 | } 15 | ], 16 | "autoload": { 17 | "psr-4": { 18 | "PAMI\\": "src/PAMI" 19 | } 20 | }, 21 | "require": { 22 | "php": ">=5.3.3", 23 | "psr/log": ">= 1.0.0" 24 | }, 25 | "require-dev": { 26 | "phpunit/phpunit": "4.*", 27 | "monolog/monolog": "1.*", 28 | "squizlabs/php_codesniffer": "2.*", 29 | "phpdocumentor/phpdocumentor": "2.*", 30 | "phing/phing": "2.*", 31 | "phpmd/phpmd": "2.*", 32 | "satooshi/php-coveralls": "1.0.1", 33 | "evert/phpdoc-md" : "~0.1.1", 34 | "codeclimate/php-test-reporter": "dev-master", 35 | "sebastian/phpcpd": "*", 36 | "marcelog/pagi": "2.*" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /composer.phar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcelog/PAMI/db4b2278e2f15362a176e79ae96a0fa3b2e66dd1/composer.phar -------------------------------------------------------------------------------- /doc/PAMI-Client-Exception-ClientException.md: -------------------------------------------------------------------------------- 1 | PAMI\Client\Exception\ClientException 2 | =============== 3 | 4 | Connection/Protocol exception. 5 | 6 | PHP Version 5 7 | 8 | 9 | * Class name: ClientException 10 | * Namespace: PAMI\Client\Exception 11 | * Parent class: [PAMI\Exception\PAMIException](PAMI-Exception-PAMIException.md) 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /doc/PAMI-Exception-PAMIException.md: -------------------------------------------------------------------------------- 1 | PAMI\Exception\PAMIException 2 | =============== 3 | 4 | PAMI family of exceptions. 5 | 6 | PHP Version 5 7 | 8 | 9 | * Class name: PAMIException 10 | * Namespace: PAMI\Exception 11 | * Parent class: Exception 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /doc/PAMI-Listener-IEventListener.md: -------------------------------------------------------------------------------- 1 | PAMI\Listener\IEventListener 2 | =============== 3 | 4 | Implement this interface in your own classes to make them event listeners. 5 | 6 | PHP Version 5 7 | 8 | 9 | * Interface name: IEventListener 10 | * Namespace: PAMI\Listener 11 | * This is an **interface** 12 | 13 | 14 | 15 | 16 | 17 | 18 | Methods 19 | ------- 20 | 21 | 22 | ### handle 23 | 24 | void PAMI\Listener\IEventListener::handle(\PAMI\Message\Event\EventMessage $event) 25 | 26 | Event handler. 27 | 28 | 29 | 30 | * Visibility: **public** 31 | 32 | 33 | #### Arguments 34 | * $event **[PAMI\Message\Event\EventMessage](PAMI-Message-Event-EventMessage.md)** - <p>The received event.</p> 35 | 36 | 37 | -------------------------------------------------------------------------------- /doc/PAMI-Message-Event-Factory-Impl-EventFactoryImpl.md: -------------------------------------------------------------------------------- 1 | PAMI\Message\Event\Factory\Impl\EventFactoryImpl 2 | =============== 3 | 4 | This factory knows which event to return according to a given raw message 5 | from ami. 6 | 7 | PHP Version 5 8 | 9 | 10 | * Class name: EventFactoryImpl 11 | * Namespace: PAMI\Message\Event\Factory\Impl 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Methods 20 | ------- 21 | 22 | 23 | ### createFromRaw 24 | 25 | \PAMI\Message\Event\EventMessage PAMI\Message\Event\Factory\Impl\EventFactoryImpl::createFromRaw(string $message) 26 | 27 | This is our factory method. 28 | 29 | 30 | 31 | * Visibility: **public** 32 | * This method is **static**. 33 | 34 | 35 | #### Arguments 36 | * $message **string** - <p>Literall message as received from ami.</p> 37 | 38 | 39 | 40 | ### __construct 41 | 42 | void PAMI\Message\Event\Factory\Impl\EventFactoryImpl::__construct() 43 | 44 | Constructor. Nothing to see here, move along. 45 | 46 | 47 | 48 | * Visibility: **public** 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /src/PAMI/Client/Exception/ClientException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Client\Exception; 31 | 32 | use PAMI\Exception\PAMIException; 33 | 34 | /** 35 | * Connection/Protocol exception. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Client 41 | * @subpackage Exception 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class ClientException extends PAMIException 47 | { 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/PAMI/Exception/PAMIException.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 11 | * @version SVN: $Id$ 12 | * @link http://marcelog.github.com/PAMI/ 13 | * 14 | * Copyright 2011 Marcelo Gornstein 15 | * 16 | * Licensed under the Apache License, Version 2.0 (the "License"); 17 | * you may not use this file except in compliance with the License. 18 | * You may obtain a copy of the License at 19 | * 20 | * http://www.apache.org/licenses/LICENSE-2.0 21 | * 22 | * Unless required by applicable law or agreed to in writing, software 23 | * distributed under the License is distributed on an "AS IS" BASIS, 24 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 25 | * See the License for the specific language governing permissions and 26 | * limitations under the License. 27 | * 28 | */ 29 | namespace PAMI\Exception; 30 | 31 | /** 32 | * PAMI family of exceptions. 33 | * 34 | * PHP Version 5 35 | * 36 | * @category Pami 37 | * @package Exception 38 | * @author Marcelo Gornstein 39 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 40 | * @link http://marcelog.github.com/PAMI/ 41 | */ 42 | class PAMIException extends \Exception 43 | { 44 | } 45 | -------------------------------------------------------------------------------- /src/PAMI/Listener/IEventListener.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Listener; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Implement this interface in your own classes to make them event listeners. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Event 41 | * @subpackage Listener 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | interface IEventListener 47 | { 48 | /** 49 | * Event handler. 50 | * 51 | * @param \PAMI\Message\Event\EventMessage $event The received event. 52 | * 53 | * @return void 54 | */ 55 | public function handle(EventMessage $event); 56 | } 57 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/AGIAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * AGI action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class AGIAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct($channel, $command, $commandId = false) 52 | { 53 | parent::__construct('AGI'); 54 | $this->setKey('Channel', $channel); 55 | $this->setKey('Command', $command); 56 | if ($commandId !== false) { 57 | $this->setKey('CommandId', $commandId); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/AbsoluteTimeoutAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * AbsoluteTimeout action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class AbsoluteTimeoutAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Channel to work on. 50 | * @param integer $timeout Maximum duration of the call (sec). 51 | * 52 | * @return void 53 | */ 54 | public function __construct($channel, $timeout) 55 | { 56 | parent::__construct('AbsoluteTimeout'); 57 | $this->setKey('Channel', $channel); 58 | $this->setKey('Timeout', $timeout); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/AgentLogoffAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * AgentLogoff action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class AgentLogoffAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $agent Agent ID of the agent to log off. 50 | * @param string $soft Set to true to not hangup existing calls. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($agent, $soft = false) 55 | { 56 | parent::__construct('AgentLogoff'); 57 | $this->setKey('Agent', $agent); 58 | $this->setKey('Soft', $soft ? 'true' : 'false'); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/AgentsAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Agents action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class AgentsAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('Agents'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/AttendedTransferAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Atxfer action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class AttendedTransferAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Transferer's channel. 50 | * @param string $extension Extension to transfer to. 51 | * @param string $context Context to transfer to. 52 | * @param string $priority Priority to transfer to. 53 | * 54 | * @return void 55 | */ 56 | public function __construct($channel, $extension, $context, $priority) 57 | { 58 | parent::__construct('Atxfer'); 59 | $this->setKey('Channel', $channel); 60 | $this->setKey('Exten', $extension); 61 | $this->setKey('Context', $context); 62 | $this->setKey('Priority', $priority); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/BlindTransferAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * BlindTransfer action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class BlindTransferAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Transferer's channel. 50 | * @param string $extension Extension to transfer to. 51 | * @param string $context Context to transfer to. 52 | */ 53 | public function __construct($channel, $extension, $context) 54 | { 55 | parent::__construct('BlindTransfer'); 56 | $this->setKey('Channel', $channel); 57 | $this->setKey('Exten', $extension); 58 | $this->setKey('Context', $context); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/BridgeAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Bridge action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class BridgeAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel1 Channel1 50 | * @param string $channel1 Channel1 51 | * @param boolean $tone Play courtesy tone to Channel2 52 | * 53 | * @return void 54 | */ 55 | public function __construct($channel1, $channel2, $tone = false) 56 | { 57 | parent::__construct('Bridge'); 58 | $this->setKey('Channel1', $channel1); 59 | $this->setKey('Channel2', $channel2); 60 | $this->setKey('Tone', $tone ? 'true' : 'false'); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/BridgeInfoAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Returns detailed information about a bridge and the channels in it. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Matt Styles 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class BridgeInfoAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $bridgeUniqueid The unique ID of the bridge about which to retrieve information. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($bridgeUniqueid) 54 | { 55 | parent::__construct('BridgeInfo'); 56 | 57 | $this->setKey('BridgeUniqueid', $bridgeUniqueid); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ChallengeAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Challenge action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ChallengeAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $authType Auth type 50 | */ 51 | public function __construct($authType = 'MD5') 52 | { 53 | parent::__construct('Challenge'); 54 | $this->setKey('AuthType', $authType); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ChangeMonitorAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Changes the monitor filename. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ChangeMonitorAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Channel to monitor. 50 | * @param string $filename Absolute path to target filename. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($channel, $filename) 55 | { 56 | parent::__construct('ChangeMonitor'); 57 | $this->setKey('Channel', $channel); 58 | $this->setKey('File', $filename); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/CommandAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Command action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class CommandAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $command CLI Command to issue. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($command) 54 | { 55 | parent::__construct('Command'); 56 | $this->setKey('Command', $command); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ConfbridgeListAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Lists all users in a particular ConfBridge conference. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Matt Styles 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ConfbridgeListAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $conference Conference on which to act. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($conference) 54 | { 55 | parent::__construct('ConfbridgeList'); 56 | $this->setKey('Conference', $conference); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ConfbridgeMuteAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * ConfbridgeMute action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Matt Styles 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ConfbridgeMuteAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Channel to be muted. 50 | * @param string $conference Conference on which to act. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($channel, $conference) 55 | { 56 | parent::__construct('ConfbridgeMute'); 57 | $this->setKey('Channel', $channel); 58 | $this->setKey('Conference', $conference); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ConfbridgeUnmuteAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * ConfbridgeUnmute action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Matt Styles 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ConfbridgeUnmuteAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Channel to be unmuted. 50 | * @param string $conference Conference on which to act. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($channel, $conference) 55 | { 56 | parent::__construct('ConfbridgeUnmute'); 57 | $this->setKey('Channel', $channel); 58 | $this->setKey('Conference', $conference); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/CoreSettingsAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * CoreSettings action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class CoreSettingsAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('CoreSettings'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/CoreShowChannelsAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Show channels. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class CoreShowChannelsAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('CoreShowChannels'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/CoreStatusAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * CoreStatus action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class CoreStatusAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('CoreStatus'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/CreateConfigAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * CreateConfig action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class CreateConfigAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $filename Configuration filename (e.g.: foo.conf). 50 | * 51 | * @return void 52 | */ 53 | public function __construct($filename) 54 | { 55 | parent::__construct('CreateConfig'); 56 | $this->setKey('Filename', $filename); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DAHDIDNDOffAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * DAHDIDNDoff action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DAHDIDNDOffAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Target dahdi Channel. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($channel) 54 | { 55 | parent::__construct('DAHDIDNDOff'); 56 | $this->setKey('DAHDIChannel', $channel); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DAHDIDNDOnAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * DAHDIDNDon action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DAHDIDNDOnAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Target dahdi Channel. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($channel) 54 | { 55 | parent::__construct('DAHDIDNDOn'); 56 | $this->setKey('DAHDIChannel', $channel); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DAHDIDialOffHookAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * DAHDIDiallOffhook action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DAHDIDialOffHookAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct($channel, $number) 52 | { 53 | parent::__construct('DAHDIDialOffhook'); 54 | $this->setKey('DAHDIChannel', $channel); 55 | $this->setKey('Number', $number); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DAHDIHangupAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * DAHDIHangup action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DAHDIHangupAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Channel to hangup. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($channel) 54 | { 55 | parent::__construct('DAHDIHangup'); 56 | $this->setKey('DAHDIChannel', $channel); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DAHDIRestartAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * DAHDIRestart action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DAHDIRestartAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('DAHDIRestart'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DAHDIShowChannelsAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * DAHDIShowChannels action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DAHDIShowChannelsAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('DAHDIShowChannels'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DAHDITransferAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * DAHDITransfer action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DAHDITransferAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel DAHDIChannel 50 | */ 51 | public function __construct($channel) 52 | { 53 | parent::__construct('DAHDITransfer'); 54 | $this->setKey('DAHDIChannel', $channel); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DBDelAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * DBDel action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DBDelAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $family Family. 50 | * @param string $key Name. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($family, $key) 55 | { 56 | parent::__construct('DBDel'); 57 | $this->setKey('Family', $family); 58 | $this->setKey('Key', $key); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DBDelTreeAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * DBDelTree action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DBDelTreeAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $family Family. 50 | * @param string $key Name (optional) 51 | * 52 | * @return void 53 | */ 54 | public function __construct($family, $key = false) 55 | { 56 | parent::__construct('DBDelTree'); 57 | $this->setKey('Family', $family); 58 | if ($key != false) { 59 | $this->setKey('Key', $key); 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DBGetAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * DBGet action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DBGetAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $family Family. 50 | * @param string $key Name. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($family, $key) 55 | { 56 | parent::__construct('DBGet'); 57 | $this->setKey('Family', $family); 58 | $this->setKey('Key', $key); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DBPutAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * DBPut action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DBPutAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $family Family. 50 | * @param string $key Name. 51 | * @param string $value Value. 52 | * 53 | * @return void 54 | */ 55 | public function __construct($family, $key, $value) 56 | { 57 | parent::__construct('DBPut'); 58 | $this->setKey('Family', $family); 59 | $this->setKey('Key', $key); 60 | $this->setKey('Val', $value); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DongleReloadAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Reload a dongle. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DongleReloadAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $when now | gracefully | when convenient 50 | * 51 | * @return void 52 | */ 53 | public function __construct($when) 54 | { 55 | parent::__construct('DongleReload'); 56 | $this->setKey('when', $when); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DongleResetAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Resets a dongle. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DongleResetAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $device Dongle device name. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($device) 54 | { 55 | parent::__construct('DongleReset'); 56 | $this->setKey('device', $device); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DongleRestartAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Restarts a dongle. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DongleRestartAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $when now | gracefully | when convenient 50 | * @param string $device Dongle device name. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($when, $device) 55 | { 56 | parent::__construct('DongleRestart'); 57 | $this->setKey('when', $when); 58 | $this->setKey('device', $device); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DongleSendPDUAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Send a PDU through dongle. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DongleSendPDUAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $device Device name (like dongle01). 50 | * @param string $pdu PDU to send. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($device, $pdu) 55 | { 56 | parent::__construct('DongleSendPDU'); 57 | $this->setKey('Device', $device); 58 | $this->setKey('Pdu', $pdu); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DongleSendSMSAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Send a SMS through Dongle. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DongleSendSMSAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $device Device name (like dongle01). 50 | * @param string $number Destination number. 51 | * @param string $message What to send. 52 | * 53 | * @return void 54 | */ 55 | public function __construct($device, $number, $message) 56 | { 57 | parent::__construct('DongleSendSMS'); 58 | $this->setKey('Device', $device); 59 | $this->setKey('Number', $number); 60 | $this->setKey('Message', $message); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DongleSendUSSDAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Send a USSD through dongle. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DongleSendUSSDAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $device Device name (like dongle01). 50 | * @param string $ussd USSD to send. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($device, $ussd) 55 | { 56 | parent::__construct('DongleSendUSSD'); 57 | $this->setKey('Device', $device); 58 | $this->setKey('Ussd', $ussd); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DongleShowDevicesAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Show all dongle devices. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DongleShowDevicesAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $device Device name (like dongle01). 50 | * @param string $number Destination number. 51 | * @param string $message What to send. 52 | * 53 | * @return void 54 | */ 55 | public function __construct() 56 | { 57 | parent::__construct('DongleShowDevices'); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DongleStartAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Starts a dongle. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DongleStartAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $device Dongle device name. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($device) 54 | { 55 | parent::__construct('DongleStart'); 56 | $this->setKey('device', $device); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/DongleStopAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Stops a dongle. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class DongleStopAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $when now | gracefully | when convenient 50 | * @param string $device Dongle device name. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($when, $device) 55 | { 56 | parent::__construct('DongleStop'); 57 | $this->setKey('when', $when); 58 | $this->setKey('device', $device); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/EventsAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Events action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class EventsAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string[] $mask Asterisk events to handle (system, call, log, etc). 50 | * 51 | * @return void 52 | */ 53 | public function __construct(array $mask = array()) 54 | { 55 | parent::__construct('Events'); 56 | if (empty($mask)) { 57 | $this->setKey('EventMask', 'off'); 58 | } else { 59 | $this->setKey('EventMask', implode(',', $mask)); 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ExtensionStateAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * ExtensionState action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ExtensionStateAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $exten Extension to check for. 50 | * @param string $context Context for extension. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($exten, $context) 55 | { 56 | parent::__construct('ExtensionState'); 57 | $this->setKey('Exten', $exten); 58 | $this->setKey('Context', $context); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/GetConfigAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * GetConfig action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class GetConfigAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $filename Configuration filename (e.g.: foo.conf). 50 | * @param boolean $category Category in configuration file. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($filename, $category = false) 55 | { 56 | parent::__construct('GetConfig'); 57 | $this->setKey('Filename', $filename); 58 | if ($category != false) { 59 | $this->setKey('Category', $category); 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/GetConfigJSONAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * GetConfigJSON action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class GetConfigJSONAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $filename Configuration filename (e.g.: foo.conf). 50 | * 51 | * @return void 52 | */ 53 | public function __construct($filename) 54 | { 55 | parent::__construct('GetConfigJSON'); 56 | $this->setKey('Filename', $filename); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/GetVarAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * GetVar action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class GetVarAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $name Variable name. 50 | * @param string $channel Optional channel name. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($name, $channel = false) 55 | { 56 | parent::__construct('Getvar'); 57 | $this->setKey('Variable', $name); 58 | if ($channel != false) { 59 | $this->setKey('Channel', $channel); 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/HangupAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Hangup action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class HangupAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Channel to hangup. 50 | * @param int $cause Hangup cause. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($channel, $cause = null) 55 | { 56 | parent::__construct('Hangup'); 57 | $this->setKey('Channel', $channel); 58 | 59 | if (null !== $cause) { 60 | $this->setKey('Cause', $cause); 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/JabberSendAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * JabberSend action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class JabberSendAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $jabber Client or transport Asterisk uses to connect to JABBER. 50 | * @param string $jid XMPP/Jabber JID (Name) of recipient. 51 | * @param string $message Message to be sent to the buddy. 52 | * 53 | * @return void 54 | */ 55 | public function __construct($jabber, $jid, $message) 56 | { 57 | parent::__construct('JabberSend'); 58 | $this->setKey('Jabber', $jabber); 59 | $this->setKey('JID', $jid); 60 | $this->setKey('ScreenName', $jid); 61 | $this->setKey('Message', $message); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ListCategoriesAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * ListCategories action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ListCategoriesAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $file File to dump categories from. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($file) 54 | { 55 | parent::__construct('ListCategories'); 56 | $this->setKey('Filename', $file); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ListCommandsAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Lists avaiable manager actions. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ListCommandsAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('ListCommands'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/LocalOptimizeAwayAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * LocalOptimizeAway action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class LocalOptimizeAwayAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel The channel name to optimize away. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($channel) 54 | { 55 | parent::__construct('LocalOptimizeAway'); 56 | $this->setKey('Channel', $channel); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/LoginAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Login action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class LoginAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $user AMI username. 50 | * @param string $password AMI password. 51 | * @param string|null $eventMask 52 | * 53 | * @return void 54 | */ 55 | public function __construct($user, $password, $eventMask = null) 56 | { 57 | parent::__construct('Login'); 58 | $this->setKey('Username', $user); 59 | $this->setKey('Secret', $password); 60 | 61 | if (null !== $eventMask) { 62 | $this->setKey('Events', $eventMask); 63 | } 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/LogoffAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Logoff action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class LogoffAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('Logoff'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/MailboxCountAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * MailboxCount action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class MailboxCountAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $mailbox MailboxId (mailbox@vm-context) 50 | * 51 | * @return void 52 | */ 53 | public function __construct($mailbox) 54 | { 55 | parent::__construct('MailboxCount'); 56 | $this->setKey('Mailbox', $mailbox); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/MailboxStatusAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * MailboxStatus action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class MailboxStatusAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $mailbox MailboxId (mailbox@vm-context) 50 | * 51 | * @return void 52 | */ 53 | public function __construct($mailbox) 54 | { 55 | parent::__construct('MailboxStatus'); 56 | $this->setKey('Mailbox', $mailbox); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/MeetmeListAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * MeetmeList action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class MeetmeListAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $conference Conference number. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($conference) 54 | { 55 | parent::__construct('MeetmeList'); 56 | $this->setKey('Conference', $conference); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/MeetmeMuteAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * MeetmeMute action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class MeetmeMuteAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $conference Conference number. 50 | * @param string $user User. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($conference, $user) 55 | { 56 | parent::__construct('MeetmeMute'); 57 | $this->setKey('Meetme', $conference); 58 | $this->setKey('Usernum', $user); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/MeetmeUnmuteAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * MeetmeUnmute action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class MeetmeUnmuteAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $conference Conference number. 50 | * @param string $user User. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($conference, $user) 55 | { 56 | parent::__construct('MeetmeUnmute'); 57 | $this->setKey('Meetme', $conference); 58 | $this->setKey('Usernum', $user); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ModuleCheckAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * ModuleCheck action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ModuleCheckAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $module Module name. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($module) 54 | { 55 | parent::__construct('ModuleCheck'); 56 | $this->setKey('Module', $module); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ModuleLoadAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * ModuleLoad action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ModuleLoadAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $module - Asterisk module name (including.so extension) or 50 | * subsystem identifier: 51 | * cdr 52 | * enum 53 | * dnsmgr 54 | * extconfig 55 | * manager 56 | * rtp 57 | * http Module name. 58 | * 59 | * @return void 60 | */ 61 | public function __construct($module) 62 | { 63 | parent::__construct('ModuleLoad'); 64 | $this->setKey('Module', $module); 65 | $this->setKey('LoadType', 'load'); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ModuleReloadAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * ModuleReload action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ModuleReloadAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $module - Asterisk module name (including.so extension) or 50 | * subsystem identifier: 51 | * cdr 52 | * enum 53 | * dnsmgr 54 | * extconfig 55 | * manager 56 | * rtp 57 | * http Module name. 58 | * 59 | * @return void 60 | */ 61 | public function __construct($module) 62 | { 63 | parent::__construct('ModuleLoad'); 64 | $this->setKey('Module', $module); 65 | $this->setKey('LoadType', 'reload'); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ModuleUnloadAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * ModuleUnload action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ModuleUnloadAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $module - Asterisk module name (including.so extension) or 50 | * subsystem identifier: 51 | * cdr 52 | * enum 53 | * dnsmgr 54 | * extconfig 55 | * manager 56 | * rtp 57 | * http Module name. 58 | * 59 | * @return void 60 | */ 61 | public function __construct($module) 62 | { 63 | parent::__construct('ModuleLoad'); 64 | $this->setKey('Module', $module); 65 | $this->setKey('LoadType', 'unload'); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ParkedCallsAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * ParkedCalls action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ParkedCallsAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('ParkedCalls'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/PauseMonitorAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Pauses the Monitor for a given channel. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class PauseMonitorAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Channel monitored to pause. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($channel) 54 | { 55 | parent::__construct('PauseMonitor'); 56 | $this->setKey('Channel', $channel); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/PingAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Ping action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class PingAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('Ping'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/PlayDTMFAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * PlayDTMF action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class PlayDTMFAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $user AMI username. 50 | * @param string $password AMI password. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($channel, $digit) 55 | { 56 | parent::__construct('PlayDTMF'); 57 | $this->setKey('Channel', $channel); 58 | $this->setKey('Digit', $digit); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/QueuePauseAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Queue pause action. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class QueuePauseAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct($interface, $queue = false, $reason = false) 52 | { 53 | parent::__construct('QueuePause'); 54 | if ($queue !== false) { 55 | $this->setKey('Queue', $queue); 56 | } 57 | if ($reason !== false) { 58 | $this->setKey('Reason', $reason); 59 | } 60 | $this->setKey('Interface', $interface); 61 | $this->setKey('Paused', 'true'); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/QueuePenaltyAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * QueuePenalty action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class QueuePenaltyAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $queue Queue name. 50 | * @param string $event Event. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($interface, $penalty, $queue = false) 55 | { 56 | parent::__construct('QueuePenalty'); 57 | $this->setKey('Interface', $interface); 58 | $this->setKey('Penalty', $penalty); 59 | if ($queue !== false) { 60 | $this->setKey('Queue', $queue); 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/QueueRemoveAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * QueueRemove action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class QueueRemoveAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $queue The queue. 50 | * @param string $interface The interface. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($queue, $interface) 55 | { 56 | parent::__construct('QueueRemove'); 57 | $this->setKey('Queue', $queue); 58 | $this->setKey('Interface', $interface); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/QueueResetAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * QueueReset action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class QueueResetAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $queue Queue name. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($queue = false) 54 | { 55 | parent::__construct('QueueReset'); 56 | if ($queue !== false) { 57 | $this->setKey('Queue', $queue); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/QueueRuleAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * QueueRule action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class QueueRuleAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $rule Rule. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($rule = false) 54 | { 55 | parent::__construct('QueueRule'); 56 | if ($rule !== false) { 57 | $this->setKey('Rule', $rule); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/QueueStatusAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * QueueStatus action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class QueueStatusAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $queue The queue (optional). 50 | * 51 | * @return void 52 | */ 53 | public function __construct($queue = false, $member = false) 54 | { 55 | parent::__construct('QueueStatus'); 56 | if ($queue != false) { 57 | $this->setKey('Queue', $queue); 58 | } 59 | if ($member != false) { 60 | $this->setKey('Member', $member); 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/QueueSummaryAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * QueueSummary action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class QueueSummaryAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $queue The queue (optional). 50 | * 51 | * @return void 52 | */ 53 | public function __construct($queue = false) 54 | { 55 | parent::__construct('QueueSummary'); 56 | if ($queue != false) { 57 | $this->setKey('Queue', $queue); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/QueueUnpauseAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Queue unpause action. This does not exist in the ami. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class QueueUnpauseAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct($interface, $queue = false, $reason = false) 52 | { 53 | parent::__construct('QueuePause'); 54 | if ($queue !== false) { 55 | $this->setKey('Queue', $queue); 56 | } 57 | if ($reason !== false) { 58 | $this->setKey('Reason', $reason); 59 | } 60 | $this->setKey('Interface', $interface); 61 | $this->setKey('Paused', 'false'); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/QueuesAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Queues action. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class QueuesAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('Queues'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ReloadAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Reload action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ReloadAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $module Optional module name. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($module = false) 54 | { 55 | parent::__construct('Reload'); 56 | if ($module !== false) { 57 | $this->setKey('Module', $module); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/SIPNotifyAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * SIPNotify action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class SIPNotifyAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Peer to receive the notify. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($channel) 54 | { 55 | parent::__construct('SIPnotify'); 56 | $this->setKey('Channel', $channel); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/SIPPeersAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Show sip peers. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class SIPPeersAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('Sippeers'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/SIPQualifyPeerAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * SipQualifyPeer action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class SIPQualifyPeerAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $peer The peer name you want to qualify. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($peer) 54 | { 55 | parent::__construct('Sipqualifypeer'); 56 | $this->setKey('Peer', $peer); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/SIPShowPeerAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Sipshowpeer action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class SIPShowPeerAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $peer Peer name. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($peer) 54 | { 55 | parent::__construct('SIPshowpeer'); 56 | $this->setKey('Peer', $peer); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/SIPShowRegistryAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Sipshowregistry action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class SIPShowRegistryAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('SIPshowregistry'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/SendTextAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * SendText action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class SendTextAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Channel to send message to. 50 | * @param string $message Message to send. 51 | * 52 | * @return void 53 | */ 54 | public function __construct($channel, $message) 55 | { 56 | parent::__construct('SendText'); 57 | $this->setKey('Channel', $channel); 58 | $this->setKey('Message', $message); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/SetVarAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * SetVar action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class SetVarAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $name Variable name. 50 | * @param string $value Variable value. 51 | * @param string $channel Optional channel name. 52 | * 53 | * @return void 54 | */ 55 | public function __construct($name, $value, $channel = false) 56 | { 57 | parent::__construct('Setvar'); 58 | $this->setKey('Variable', $name); 59 | $this->setKey('Value', $value); 60 | if ($channel != false) { 61 | $this->setKey('Channel', $channel); 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/ShowDialPlanAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * ShowDialPlan action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class ShowDialPlanAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $context Show a specific context (optional) 50 | * @param string $extension Show a specific extension (optional) 51 | * 52 | * @return void 53 | */ 54 | public function __construct($context = false, $extension = false) 55 | { 56 | parent::__construct('ShowDialPlan'); 57 | if ($context != false) { 58 | $this->setKey('Context', $context); 59 | } 60 | if ($extension != false) { 61 | $this->setKey('Extension', $extension); 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/StatusAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Queries for the status of a channel or all channels if none specified. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class StatusAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Channel to query (optional) 50 | * 51 | * @return void 52 | */ 53 | public function __construct($channel = false) 54 | { 55 | parent::__construct('Status'); 56 | if ($channel !== false) { 57 | $this->setKey('Channel', $channel); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/StopMixMonitorAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * StopMixMonitor action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Matt Styles 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class StopMixMonitorAction extends ActionMessage 45 | { 46 | /** 47 | * Sets MixMonitorID key. 48 | * 49 | * @param string $mixMonitorId MixMonitorID to use. 50 | * 51 | * @return void 52 | */ 53 | public function setMixMonitorId($mixMonitorId) 54 | { 55 | $this->setKey('MixMonitorID', $mixMonitorId); 56 | } 57 | 58 | /** 59 | * Constructor. 60 | * 61 | * @param string $channel Channel on which to act. 62 | * 63 | * @return void 64 | */ 65 | public function __construct($channel) 66 | { 67 | parent::__construct('StopMixMonitor'); 68 | $this->setKey('Channel', $channel); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/StopMonitorAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Stops the Monitor for a given channel. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class StopMonitorAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Channel monitored to pause. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($channel) 54 | { 55 | parent::__construct('StopMonitor'); 56 | $this->setKey('Channel', $channel); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/UnpauseMonitorAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * Unpauses the Monitor for a given channel. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class UnpauseMonitorAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $channel Channel monitored to unpause. 50 | * 51 | * @return void 52 | */ 53 | public function __construct($channel) 54 | { 55 | parent::__construct('UnpauseMonitor'); 56 | $this->setKey('Channel', $channel); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/UserEventAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * UserEvent action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class UserEventAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param string $userEvent UserEvent 50 | * @param array $headers 51 | */ 52 | public function __construct($userEvent, array $headers = []) 53 | { 54 | parent::__construct('UserEvent'); 55 | $this->setKey('UserEvent', $userEvent); 56 | foreach ($headers as $key => $value) { 57 | $this->setKey((string)$key, (string)$value); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/VoicemailUsersListAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * VoicemailUsersList action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class VoicemailUsersListAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @return void 50 | */ 51 | public function __construct() 52 | { 53 | parent::__construct('VoicemailUsersList'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/PAMI/Message/Action/WaitEventAction.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Action; 31 | 32 | /** 33 | * WaitEvent action message. 34 | * 35 | * PHP Version 5 36 | * 37 | * @category Pami 38 | * @package Message 39 | * @subpackage Action 40 | * @author Marcelo Gornstein 41 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 42 | * @link http://marcelog.github.com/PAMI/ 43 | */ 44 | class WaitEventAction extends ActionMessage 45 | { 46 | /** 47 | * Constructor. 48 | * 49 | * @param int $timeout Timeout in seconds 50 | */ 51 | public function __construct($timeout) 52 | { 53 | parent::__construct('WaitEvent'); 54 | $this->setKey('Timeout', (int)$timeout); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/AgentsCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Event triggered for the end of the list when an action Agents is issued. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class AgentsCompleteEvent extends EventMessage 47 | { 48 | } 49 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/ConfbridgeListCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Event triggered for the end of the list when an action ConfbridgeList is issued. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Matt Styles 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class ConfbridgeListCompleteEvent extends EventMessage 47 | { 48 | /** 49 | * Returns key: 'ListItems'. 50 | * 51 | * @return string 52 | */ 53 | public function getListItems() 54 | { 55 | return $this->getKey('ListItems'); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/CoreShowChannelsCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 12 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 13 | * @version SVN: $Id$ 14 | * @link http://marcelog.github.com/PAMI/ 15 | * 16 | * Copyright 2011 Marcelo Gornstein 17 | * 18 | * Licensed under the Apache License, Version 2.0 (the "License"); 19 | * you may not use this file except in compliance with the License. 20 | * You may obtain a copy of the License at 21 | * 22 | * http://www.apache.org/licenses/LICENSE-2.0 23 | * 24 | * Unless required by applicable law or agreed to in writing, software 25 | * distributed under the License is distributed on an "AS IS" BASIS, 26 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27 | * See the License for the specific language governing permissions and 28 | * limitations under the License. 29 | * 30 | */ 31 | namespace PAMI\Message\Event; 32 | 33 | use PAMI\Message\Event\EventMessage; 34 | 35 | /** 36 | * Event triggered for the end of the list when an action CoreShowChannels 37 | * is issued. 38 | * 39 | * PHP Version 5 40 | * 41 | * @category Pami 42 | * @package Message 43 | * @subpackage Event 44 | * @author Marcelo Gornstein 45 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 46 | * @link http://marcelog.github.com/PAMI/ 47 | */ 48 | class CoreShowChannelsCompleteEvent extends EventMessage 49 | { 50 | /** 51 | * Returns key: 'ListItems'. 52 | * 53 | * @return string 54 | */ 55 | public function getListItems() 56 | { 57 | return $this->getKey('ListItems'); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/DAHDIShowChannelsCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 12 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 13 | * @version SVN: $Id$ 14 | * @link http://marcelog.github.com/PAMI/ 15 | * 16 | * Copyright 2011 Marcelo Gornstein 17 | * 18 | * Licensed under the Apache License, Version 2.0 (the "License"); 19 | * you may not use this file except in compliance with the License. 20 | * You may obtain a copy of the License at 21 | * 22 | * http://www.apache.org/licenses/LICENSE-2.0 23 | * 24 | * Unless required by applicable law or agreed to in writing, software 25 | * distributed under the License is distributed on an "AS IS" BASIS, 26 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27 | * See the License for the specific language governing permissions and 28 | * limitations under the License. 29 | * 30 | */ 31 | namespace PAMI\Message\Event; 32 | 33 | use PAMI\Message\Event\EventMessage; 34 | 35 | /** 36 | * Event triggered for the end of the list when an action DAHDIShowChannels 37 | * is issued. 38 | * 39 | * PHP Version 5 40 | * 41 | * @category Pami 42 | * @package Message 43 | * @subpackage Event 44 | * @author Marcelo Gornstein 45 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 46 | * @link http://marcelog.github.com/PAMI/ 47 | */ 48 | class DAHDIShowChannelsCompleteEvent extends EventMessage 49 | { 50 | /** 51 | * Returns key: 'Items'. 52 | * 53 | * @return string 54 | */ 55 | public function getListItems() 56 | { 57 | return $this->getKey('items'); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/DBGetResponseEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Event triggered when a database key is asked for. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class DBGetResponseEvent extends EventMessage 47 | { 48 | /** 49 | * Returns key: 'Family'. 50 | * 51 | * @return string 52 | */ 53 | public function getFamily() 54 | { 55 | return $this->getKey('Family'); 56 | } 57 | 58 | /** 59 | * Returns key: 'Key'. 60 | * 61 | * @return string 62 | */ 63 | public function getKeyName() 64 | { 65 | return $this->getKey('Key'); 66 | } 67 | 68 | /** 69 | * Returns key: 'Val'. 70 | * 71 | * @return string 72 | */ 73 | public function getValue() 74 | { 75 | return $this->getKey('Val'); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/DongleShowDevicesCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Event triggered for the end of the list of dongle channels. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class DongleShowDevicesCompleteEvent extends EventMessage 47 | { 48 | /** 49 | * Returns key: 'ListItems'. 50 | * 51 | * @return string 52 | */ 53 | public function getListItems() 54 | { 55 | return $this->getKey('listitems'); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/DongleStatusEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Event triggered starting/stopping a dongle. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class DongleStatusEvent extends EventMessage 47 | { 48 | /** 49 | * Returns key: 'Status'. 50 | * 51 | * @return string 52 | */ 53 | public function getStatus() 54 | { 55 | return $this->getKey('Status'); 56 | } 57 | 58 | /** 59 | * Returns key: 'Device'. 60 | * 61 | * @return string 62 | */ 63 | public function getDevice() 64 | { 65 | return $this->getKey('Device'); 66 | } 67 | 68 | /** 69 | * Returns key: 'Privilege'. 70 | * 71 | * @return string 72 | */ 73 | public function getPrivilege() 74 | { 75 | return $this->getKey('Privilege'); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/EventMessage.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\IncomingMessage; 33 | 34 | /** 35 | * This is a generic event received from ami. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | abstract class EventMessage extends IncomingMessage 47 | { 48 | /** 49 | * Returns key 'Event'. 50 | * 51 | * @return string 52 | */ 53 | public function getName() 54 | { 55 | return $this->getKey('Event'); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/FullyBootedEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Event triggered when ? 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class FullyBootedEvent extends EventMessage 47 | { 48 | } 49 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/MessageWaitingEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Event triggered when ..? 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class MessageWaitingEvent extends EventMessage 47 | { 48 | /** 49 | * Returns key: 'Privilege'. 50 | * 51 | * @return string 52 | */ 53 | public function getPrivilege() 54 | { 55 | return $this->getKey('Privilege'); 56 | } 57 | 58 | /** 59 | * Returns key: 'Mailbox'. 60 | * 61 | * @return string 62 | */ 63 | public function getMailbox() 64 | { 65 | return $this->getKey('Mailbox'); 66 | } 67 | 68 | /** 69 | * Returns key: 'Waiting'. 70 | * 71 | * @return string 72 | */ 73 | public function getWaiting() 74 | { 75 | return $this->getKey('Waiting'); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/ParkedCallsCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 12 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 13 | * @version SVN: $Id$ 14 | * @link http://marcelog.github.com/PAMI/ 15 | * 16 | * Copyright 2011 Marcelo Gornstein 17 | * 18 | * Licensed under the Apache License, Version 2.0 (the "License"); 19 | * you may not use this file except in compliance with the License. 20 | * You may obtain a copy of the License at 21 | * 22 | * http://www.apache.org/licenses/LICENSE-2.0 23 | * 24 | * Unless required by applicable law or agreed to in writing, software 25 | * distributed under the License is distributed on an "AS IS" BASIS, 26 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27 | * See the License for the specific language governing permissions and 28 | * limitations under the License. 29 | * 30 | */ 31 | namespace PAMI\Message\Event; 32 | 33 | use PAMI\Message\Event\EventMessage; 34 | 35 | /** 36 | * Event triggered for the end of the list when an action ParkedCalls 37 | * is issued. 38 | * 39 | * PHP Version 5 40 | * 41 | * @category Pami 42 | * @package Message 43 | * @subpackage Event 44 | * @author Marcelo Gornstein 45 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 46 | * @link http://marcelog.github.com/PAMI/ 47 | */ 48 | class ParkedCallsCompleteEvent extends EventMessage 49 | { 50 | } 51 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/PeerlistCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Event triggered for the end of the list when an action Sippeers is issued. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class PeerlistCompleteEvent extends EventMessage 47 | { 48 | /** 49 | * Returns key: 'ListItems'. 50 | * 51 | * @return string 52 | */ 53 | public function getListItems() 54 | { 55 | return $this->getKey('ListItems'); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/QueueStatusCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 12 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 13 | * @version SVN: $Id$ 14 | * @link http://marcelog.github.com/PAMI/ 15 | * 16 | * Copyright 2011 Marcelo Gornstein 17 | * 18 | * Licensed under the Apache License, Version 2.0 (the "License"); 19 | * you may not use this file except in compliance with the License. 20 | * You may obtain a copy of the License at 21 | * 22 | * http://www.apache.org/licenses/LICENSE-2.0 23 | * 24 | * Unless required by applicable law or agreed to in writing, software 25 | * distributed under the License is distributed on an "AS IS" BASIS, 26 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27 | * See the License for the specific language governing permissions and 28 | * limitations under the License. 29 | * 30 | */ 31 | namespace PAMI\Message\Event; 32 | 33 | use PAMI\Message\Event\EventMessage; 34 | 35 | /** 36 | * Event triggered for the end of the list when an action QueueStatus 37 | * is issued. 38 | * 39 | * PHP Version 5 40 | * 41 | * @category Pami 42 | * @package Message 43 | * @subpackage Event 44 | * @author Marcelo Gornstein 45 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 46 | * @link http://marcelog.github.com/PAMI/ 47 | */ 48 | class QueueStatusCompleteEvent extends EventMessage 49 | { 50 | } 51 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/QueueSummaryCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 12 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 13 | * @version SVN: $Id$ 14 | * @link http://marcelog.github.com/PAMI/ 15 | * 16 | * Copyright 2011 Marcelo Gornstein 17 | * 18 | * Licensed under the Apache License, Version 2.0 (the "License"); 19 | * you may not use this file except in compliance with the License. 20 | * You may obtain a copy of the License at 21 | * 22 | * http://www.apache.org/licenses/LICENSE-2.0 23 | * 24 | * Unless required by applicable law or agreed to in writing, software 25 | * distributed under the License is distributed on an "AS IS" BASIS, 26 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27 | * See the License for the specific language governing permissions and 28 | * limitations under the License. 29 | * 30 | */ 31 | namespace PAMI\Message\Event; 32 | 33 | use PAMI\Message\Event\EventMessage; 34 | 35 | /** 36 | * Event triggered for the end of the list when an action QueueSummary 37 | * is issued. 38 | * 39 | * PHP Version 5 40 | * 41 | * @category Pami 42 | * @package Message 43 | * @subpackage Event 44 | * @author Marcelo Gornstein 45 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 46 | * @link http://marcelog.github.com/PAMI/ 47 | */ 48 | class QueueSummaryCompleteEvent extends EventMessage 49 | { 50 | } 51 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/RegistrationsCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 12 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 13 | * @version SVN: $Id$ 14 | * @link http://marcelog.github.com/PAMI/ 15 | * 16 | * Copyright 2011 Marcelo Gornstein 17 | * 18 | * Licensed under the Apache License, Version 2.0 (the "License"); 19 | * you may not use this file except in compliance with the License. 20 | * You may obtain a copy of the License at 21 | * 22 | * http://www.apache.org/licenses/LICENSE-2.0 23 | * 24 | * Unless required by applicable law or agreed to in writing, software 25 | * distributed under the License is distributed on an "AS IS" BASIS, 26 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27 | * See the License for the specific language governing permissions and 28 | * limitations under the License. 29 | * 30 | */ 31 | namespace PAMI\Message\Event; 32 | 33 | use PAMI\Message\Event\EventMessage; 34 | 35 | /** 36 | * Event triggered for the end of the list when an action Sipshowregistry 37 | * is issued. 38 | * 39 | * PHP Version 5 40 | * 41 | * @category Pami 42 | * @package Message 43 | * @subpackage Event 44 | * @author Marcelo Gornstein 45 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 46 | * @link http://marcelog.github.com/PAMI/ 47 | */ 48 | class RegistrationsCompleteEvent extends EventMessage 49 | { 50 | /** 51 | * Returns key: 'ListItems'. 52 | * 53 | * @return string 54 | */ 55 | public function getListItems() 56 | { 57 | return $this->getKey('ListItems'); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/RegistryEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Registry event. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class RegistryEvent extends EventMessage 47 | { 48 | /** 49 | * Returns key: 'Channel'. 50 | * 51 | * @return string 52 | */ 53 | public function getChannel() 54 | { 55 | return $this->getKey('Channel'); 56 | } 57 | 58 | /** 59 | * Returns key: 'Domain'. 60 | * 61 | * @return string 62 | */ 63 | public function getDomain() 64 | { 65 | return $this->getKey('Domain'); 66 | } 67 | 68 | /** 69 | * Returns key: 'Status'. 70 | * 71 | * @return string 72 | */ 73 | public function getStatus() 74 | { 75 | return $this->getKey('Status'); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/StatusCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Event triggered for the end of the list when an action Status is issued. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class StatusCompleteEvent extends EventMessage 47 | { 48 | /** 49 | * Returns key: 'Items'. 50 | * 51 | * @return string 52 | */ 53 | public function getListItems() 54 | { 55 | return $this->getKey('Items'); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/UnknownEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2011 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\IncomingMessage; 33 | 34 | /** 35 | * This is an unknown (not implemented yet) event received from ami. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class UnknownEvent extends EventMessage 47 | { 48 | } 49 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/UserEventEvent.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 12 | * @version SVN: $Id$ 13 | * @link http://marcelog.github.com/PAMI/ 14 | * 15 | * Copyright 2012 Marcelo Gornstein 16 | * 17 | * Licensed under the Apache License, Version 2.0 (the "License"); 18 | * you may not use this file except in compliance with the License. 19 | * You may obtain a copy of the License at 20 | * 21 | * http://www.apache.org/licenses/LICENSE-2.0 22 | * 23 | * Unless required by applicable law or agreed to in writing, software 24 | * distributed under the License is distributed on an "AS IS" BASIS, 25 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 | * See the License for the specific language governing permissions and 27 | * limitations under the License. 28 | * 29 | */ 30 | namespace PAMI\Message\Event; 31 | 32 | use PAMI\Message\Event\EventMessage; 33 | 34 | /** 35 | * Custom user events. 36 | * 37 | * PHP Version 5 38 | * 39 | * @category Pami 40 | * @package Message 41 | * @subpackage Event 42 | * @author Marcelo Gornstein 43 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 44 | * @link http://marcelog.github.com/PAMI/ 45 | */ 46 | class UserEventEvent extends EventMessage 47 | { 48 | /** 49 | * Returns key: 'UserEvent'. 50 | * 51 | * @return string 52 | */ 53 | public function getUserEventName() 54 | { 55 | return $this->getKey('UserEvent'); 56 | } 57 | 58 | /** 59 | * Returns key: 'Privilege'. 60 | * 61 | * @return string 62 | */ 63 | public function getPrivilege() 64 | { 65 | return $this->getKey('Privilege'); 66 | } 67 | 68 | /** 69 | * Returns key: 'UniqueID'. 70 | * 71 | * @return string 72 | */ 73 | public function getUniqueID() 74 | { 75 | return $this->getKey('UniqueID'); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/PAMI/Message/Event/VoicemailUserEntryCompleteEvent.php: -------------------------------------------------------------------------------- 1 | 12 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 13 | * @version SVN: $Id$ 14 | * @link http://marcelog.github.com/PAMI/ 15 | * 16 | * Copyright 2011 Marcelo Gornstein 17 | * 18 | * Licensed under the Apache License, Version 2.0 (the "License"); 19 | * you may not use this file except in compliance with the License. 20 | * You may obtain a copy of the License at 21 | * 22 | * http://www.apache.org/licenses/LICENSE-2.0 23 | * 24 | * Unless required by applicable law or agreed to in writing, software 25 | * distributed under the License is distributed on an "AS IS" BASIS, 26 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27 | * See the License for the specific language governing permissions and 28 | * limitations under the License. 29 | * 30 | */ 31 | namespace PAMI\Message\Event; 32 | 33 | use PAMI\Message\Event\EventMessage; 34 | 35 | /** 36 | * Event triggered for the end of the list when an action VoicemailUsersList 37 | * is issued. 38 | * 39 | * PHP Version 5 40 | * 41 | * @category Pami 42 | * @package Message 43 | * @subpackage Event 44 | * @author Marcelo Gornstein 45 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 46 | * @link http://marcelog.github.com/PAMI/ 47 | */ 48 | class VoicemailUserEntryCompleteEvent extends EventMessage 49 | { 50 | } 51 | -------------------------------------------------------------------------------- /src/PAMI/Message/OutgoingMessage.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 11 | * @version SVN: $Id$ 12 | * @link http://marcelog.github.com/PAMI/ 13 | * 14 | * Copyright 2011 Marcelo Gornstein 15 | * 16 | * Licensed under the Apache License, Version 2.0 (the "License"); 17 | * you may not use this file except in compliance with the License. 18 | * You may obtain a copy of the License at 19 | * 20 | * http://www.apache.org/licenses/LICENSE-2.0 21 | * 22 | * Unless required by applicable law or agreed to in writing, software 23 | * distributed under the License is distributed on an "AS IS" BASIS, 24 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 25 | * See the License for the specific language governing permissions and 26 | * limitations under the License. 27 | * 28 | */ 29 | namespace PAMI\Message; 30 | 31 | /** 32 | * A generic outgoing message. 33 | * 34 | * PHP Version 5 35 | * 36 | * @category Pami 37 | * @package Message 38 | * @author Marcelo Gornstein 39 | * @license http://marcelog.github.com/PAMI/ Apache License 2.0 40 | * @link http://marcelog.github.com/PAMI/ 41 | */ 42 | abstract class OutgoingMessage extends Message 43 | { 44 | } 45 | -------------------------------------------------------------------------------- /test/resources/bootstrap.php: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | ../../src 26 | 27 | ../../src/PAMI/Application 28 | ../../vendor 29 | 30 | 31 | 32 | 33 | 34 | ../client 35 | 36 | 37 | ../actions 38 | 39 | 40 | ../events 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | --------------------------------------------------------------------------------