├── .gitignore ├── .travis.yml ├── LICENSE ├── Makefile ├── README.md └── asterisk-cpp ├── .gitignore ├── AUTHORS ├── COPYING ├── INSTALL ├── Makefile.am ├── NEWS ├── README ├── asteriskcpp ├── Manager.hpp ├── exceptions │ ├── Exception.h │ ├── ExceptionHandler.h │ ├── IOException.h │ └── RuntimeException.h ├── manager │ ├── Actions.hpp │ ├── AsteriskVersion.h │ ├── Dispatcher.h │ ├── EventBuilder.h │ ├── Events.hpp │ ├── ManagerConnection.h │ ├── ManagerEventListener.h │ ├── ManagerEventsHandler.h │ ├── ManagerResponsesHandler.h │ ├── Reader.h │ ├── ResponseBuilder.h │ ├── Writer.h │ ├── actions │ │ ├── AbsoluteTimeoutAction.h │ │ ├── AbstractManagerAction.h │ │ ├── AbstractMeetMeMuteAction.h │ │ ├── AgentCallbackLoginAction.h │ │ ├── AgentLogoffAction.h │ │ ├── AgentsAction.h │ │ ├── AgiAction.h │ │ ├── AtxferAction.h │ │ ├── BridgeAction.h │ │ ├── ChallengeAction.h │ │ ├── ChangeMonitorAction.h │ │ ├── CommandAction.h │ │ ├── ConfbridgeKickAction.h │ │ ├── ConfbridgeListAction.h │ │ ├── ConfbridgeListRoomsAction.h │ │ ├── ConfbridgeLockAction.h │ │ ├── ConfbridgeMuteAction.h │ │ ├── ConfbridgeSetSingleVideoSrcAction.h │ │ ├── ConfbridgeStartRecordAction.h │ │ ├── ConfbridgeStopRecordAction.h │ │ ├── ConfbridgeUnlockAction.h │ │ ├── ConfbridgeUnmuteAction.h │ │ ├── CoreSettingsAction.h │ │ ├── CoreShowChannelsAction.h │ │ ├── CoreStatusAction.h │ │ ├── DahdiShowChannelsAction.h │ │ ├── DbDelAction.h │ │ ├── DbDelTreeAction.h │ │ ├── DbGetAction.h │ │ ├── DbPutAction.h │ │ ├── EventsAction.h │ │ ├── ExtensionStateAction.h │ │ ├── GetConfigAction.h │ │ ├── GetVarAction.h │ │ ├── HangupAction.h │ │ ├── IaxPeerListAction.h │ │ ├── JabberSendAction.h │ │ ├── ListCommandsAction.h │ │ ├── LocalOptimizeAwayAction.h │ │ ├── LoginAction.h │ │ ├── LogoffAction.h │ │ ├── MailboxCountAction.h │ │ ├── MailboxStatusAction.h │ │ ├── ManagerAction.h │ │ ├── MeetMeMuteAction.h │ │ ├── MeetMeUnmuteAction.h │ │ ├── MixMonitorMuteAction.h │ │ ├── ModuleCheckAction.h │ │ ├── ModuleLoadAction.h │ │ ├── MonitorAction.h │ │ ├── ParkAction.h │ │ ├── ParkedCallsAction.h │ │ ├── PauseMixMonitorAction.h │ │ ├── PauseMonitorAction.h │ │ ├── PingAction.h │ │ ├── PlayDtmfAction.h │ │ ├── QueueAddAction.h │ │ ├── QueueLogAction.h │ │ ├── QueuePauseAction.h │ │ ├── QueuePenaltyAction.h │ │ ├── QueueRemoveAction.h │ │ ├── QueueResetAction.h │ │ ├── QueueStatusAction.h │ │ ├── QueueSummaryAction.h │ │ ├── RedirectAction.h │ │ ├── SendTextAction.h │ │ ├── SetCdrUserFieldAction.h │ │ ├── SetVarAction.h │ │ ├── ShowDialplanAction.h │ │ ├── SipPeersAction.h │ │ ├── SipShowPeerAction.h │ │ ├── SipShowRegistryAction.h │ │ ├── SkypeAddBuddyAction.h │ │ ├── SkypeBuddiesAction.h │ │ ├── SkypeBuddyAction.h │ │ ├── SkypeChatSendAction.h │ │ ├── SkypeLicenseListAction.h │ │ ├── SkypeLicenseStatusAction.h │ │ ├── SkypeRemoveBuddyAction.h │ │ ├── StatusAction.h │ │ ├── StopMonitorAction.h │ │ ├── UnpauseMonitorAction.h │ │ ├── UserEventAction.h │ │ ├── VoicemailUsersListAction.h │ │ ├── ZapDialOffhookAction.h │ │ ├── ZapDndOffAction.h │ │ ├── ZapDndOnAction.h │ │ ├── ZapHangupAction.h │ │ ├── ZapRestartAction.h │ │ ├── ZapShowChannelsAction.h │ │ └── ZapTransferAction.h │ ├── events │ │ ├── AbstractAgentEvent.h │ │ ├── AbstractChannelEvent.h │ │ ├── AbstractChannelStateEvent.h │ │ ├── AbstractFaxEvent.h │ │ ├── AbstractMeetMeEvent.h │ │ ├── AbstractMonitorEvent.h │ │ ├── AbstractParkedCallEvent.h │ │ ├── AbstractQueueMemberEvent.h │ │ ├── AbstractRtcpEvent.h │ │ ├── AbstractRtpStatEvent.h │ │ ├── AgentCallbackLoginEvent.h │ │ ├── AgentCallbackLogoffEvent.h │ │ ├── AgentCalledEvent.h │ │ ├── AgentCompleteEvent.h │ │ ├── AgentConnectEvent.h │ │ ├── AgentDumpEvent.h │ │ ├── AgentLoginEvent.h │ │ ├── AgentLogoffEvent.h │ │ ├── AgentRingNoAnswer.h │ │ ├── AgentsCompleteEvent.h │ │ ├── AgentsEvent.h │ │ ├── AgiExecEvent.h │ │ ├── AlarmClearEvent.h │ │ ├── AlarmEvent.h │ │ ├── AsyncAgiEvent.h │ │ ├── BridgeEvent.h │ │ ├── BridgeExecEvent.h │ │ ├── CdrEvent.h │ │ ├── ChannelReloadEvent.h │ │ ├── ChannelUpdateEvent.h │ │ ├── ConfbridgeEndEvent.h │ │ ├── ConfbridgeJoinEvent.h │ │ ├── ConfbridgeLeaveEvent.h │ │ ├── ConfbridgeListCompleteEvent.h │ │ ├── ConfbridgeListEvent.h │ │ ├── ConfbridgeListRoomsCompleteEvent.h │ │ ├── ConfbridgeListRoomsEvent.h │ │ ├── ConfbridgeStartEvent.h │ │ ├── ConfbridgeTalkingEvent.h │ │ ├── ConnectEvent.h │ │ ├── CoreShowChannelEvent.h │ │ ├── CoreShowChannelsCompleteEvent.h │ │ ├── DahdiShowChannelsCompleteEvent.h │ │ ├── DahdiShowChannelsEvent.h │ │ ├── DbGetResponseEvent.h │ │ ├── DialEvent.h │ │ ├── DisconnectEvent.h │ │ ├── DndStateEvent.h │ │ ├── DtmfEvent.h │ │ ├── ExtensionStatusEvent.h │ │ ├── FaxDocumentStatusEvent.h │ │ ├── FaxReceivedEvent.h │ │ ├── FaxStatusEvent.h │ │ ├── FullyBootedEvent.h │ │ ├── HangupEvent.h │ │ ├── HoldEvent.h │ │ ├── HoldedCallEvent.h │ │ ├── JabberEventEvent.h │ │ ├── JitterBufStatsEvent.h │ │ ├── JoinEvent.h │ │ ├── LeaveEvent.h │ │ ├── LinkEvent.h │ │ ├── ListDialplanEvent.h │ │ ├── LogChannelEvent.h │ │ ├── ManagerEvent.h │ │ ├── MasqueradeEvent.h │ │ ├── MeetMeEndEvent.h │ │ ├── MeetMeJoinEvent.h │ │ ├── MeetMeLeaveEvent.h │ │ ├── MeetMeMuteEvent.h │ │ ├── MeetMeStopTalkingEvent.h │ │ ├── MeetMeTalkingEvent.h │ │ ├── MeetMeTalkingRequestEvent.h │ │ ├── MessageWaitingEvent.h │ │ ├── ModuleLoadReportEvent.h │ │ ├── MonitorStartEvent.h │ │ ├── MonitorStopEvent.h │ │ ├── MusicOnHoldEvent.h │ │ ├── NewAccountCodeEvent.h │ │ ├── NewCallerIdEvent.h │ │ ├── NewChannelEvent.h │ │ ├── NewExtenEvent.h │ │ ├── NewStateEvent.h │ │ ├── OriginateFailureEvent.h │ │ ├── OriginateResponseEvent.h │ │ ├── OriginateSuccessEvent.h │ │ ├── ParkedCallEvent.h │ │ ├── ParkedCallGiveUpEvent.h │ │ ├── ParkedCallTimeOutEvent.h │ │ ├── ParkedCallsCompleteEvent.h │ │ ├── PeerEntryEvent.h │ │ ├── PeerStatusEvent.h │ │ ├── PeerlistCompleteEvent.h │ │ ├── PriEventEvent.h │ │ ├── ProtocolIdentifierReceivedEvent.h │ │ ├── QueueCallerAbandonEvent.h │ │ ├── QueueEntryEvent.h │ │ ├── QueueEvent.h │ │ ├── QueueMemberAddedEvent.h │ │ ├── QueueMemberEvent.h │ │ ├── QueueMemberPausedEvent.h │ │ ├── QueueMemberPenaltyEvent.h │ │ ├── QueueMemberRemovedEvent.h │ │ ├── QueueMemberStatusEvent.h │ │ ├── QueueParamsEvent.h │ │ ├── QueueStatusCompleteEvent.h │ │ ├── QueueSummaryCompleteEvent.h │ │ ├── QueueSummaryEvent.h │ │ ├── ReceiveFaxEvent.h │ │ ├── RegistrationsCompleteEvent.h │ │ ├── RegistryEntryEvent.h │ │ ├── RegistryEvent.h │ │ ├── ReloadEvent.h │ │ ├── RenameEvent.h │ │ ├── ResponseEvent.h │ │ ├── RtcpReceivedEvent.h │ │ ├── RtcpSentEvent.h │ │ ├── RtpReceiverStatEvent.h │ │ ├── RtpSenderStatEvent.h │ │ ├── SendFaxEvent.h │ │ ├── SendFaxStatusEvent.h │ │ ├── ShowDialplanCompleteEvent.h │ │ ├── ShutdownEvent.h │ │ ├── SkypeAccountStatusEvent.h │ │ ├── SkypeBuddyEntryEvent.h │ │ ├── SkypeBuddyListCompleteEvent.h │ │ ├── SkypeBuddyStatusEvent.h │ │ ├── SkypeChatMessageEvent.h │ │ ├── SkypeLicenseEvent.h │ │ ├── SkypeLicenseListCompleteEvent.h │ │ ├── StatusCompleteEvent.h │ │ ├── StatusEvent.h │ │ ├── T38FaxStatusEvent.h │ │ ├── TransferEvent.h │ │ ├── UnholdEvent.h │ │ ├── UnlinkEvent.h │ │ ├── UnparkedCallEvent.h │ │ ├── UserEvent.h │ │ ├── VarSetEvent.h │ │ ├── VoicemailUserEntryCompleteEvent.h │ │ ├── VoicemailUserEntryEvent.h │ │ ├── ZapShowChannelsCompleteEvent.h │ │ └── ZapShowChannelsEvent.h │ └── responses │ │ ├── ChallengeResponse.h │ │ ├── CommandResponse.h │ │ ├── CoreSettingsResponse.h │ │ ├── CoreStatusResponse.h │ │ ├── ExtensionStateResponse.h │ │ ├── GetConfigResponse.h │ │ ├── GetVarResponse.h │ │ ├── MailboxCountResponse.h │ │ ├── MailboxStatusResponse.h │ │ ├── ManagerError.h │ │ ├── ManagerResponse.h │ │ ├── ModuleCheckResponse.h │ │ ├── PingResponse.h │ │ ├── SipShowPeerResponse.h │ │ ├── SkypeBuddyResponse.h │ │ └── SkypeLicenseStatusResponse.h ├── net │ ├── IPAddress.h │ ├── SSLContext.h │ ├── SSLSocket.h │ └── TCPSocket.h ├── structs │ ├── PropertyMap.h │ ├── Singleton.h │ ├── SynchronisedQueue.h │ └── Thread.h └── utils │ ├── Base64.h │ ├── LogHandler.h │ ├── MD5.h │ ├── StringUtils.h │ └── timesupport.h ├── autogen.sh ├── configure.ac ├── examples ├── Test.cpp ├── makeTest.sh └── t.cpp └── src ├── exceptions ├── Exception.cpp ├── ExceptionHandler.cpp ├── IOException.cpp └── RuntimeException.cpp ├── manager ├── AsteriskVersion.cpp ├── Dispatcher.cpp ├── EventBuilder.cpp ├── ManagerConnection.cpp ├── ManagerEventListener.cpp ├── ManagerEventsHandler.cpp ├── ManagerResponsesHandler.cpp ├── Reader.cpp ├── ResponseBuilder.cpp ├── Writer.cpp ├── actions │ ├── AbsoluteTimeoutAction.cpp │ ├── AbstractManagerAction.cpp │ ├── AbstractMeetMeMuteAction.cpp │ ├── AgentCallbackLoginAction.cpp │ ├── AgentLogoffAction.cpp │ ├── AgentsAction.cpp │ ├── AgiAction.cpp │ ├── AtxferAction.cpp │ ├── BridgeAction.cpp │ ├── ChallengeAction.cpp │ ├── ChangeMonitorAction.cpp │ ├── CommandAction.cpp │ ├── ConfbridgeKickAction.cpp │ ├── ConfbridgeListAction.cpp │ ├── ConfbridgeListRoomsAction.cpp │ ├── ConfbridgeLockAction.cpp │ ├── ConfbridgeMuteAction.cpp │ ├── ConfbridgeSetSingleVideoSrcAction.cpp │ ├── ConfbridgeStartRecordAction.cpp │ ├── ConfbridgeStopRecordAction.cpp │ ├── ConfbridgeUnlockAction.cpp │ ├── ConfbridgeUnmuteAction.cpp │ ├── CoreSettingsAction.cpp │ ├── CoreShowChannelsAction.cpp │ ├── CoreStatusAction.cpp │ ├── DahdiShowChannelsAction.cpp │ ├── DbDelAction.cpp │ ├── DbDelTreeAction.cpp │ ├── DbGetAction.cpp │ ├── DbPutAction.cpp │ ├── EventsAction.cpp │ ├── ExtensionStateAction.cpp │ ├── GetConfigAction.cpp │ ├── GetVarAction.cpp │ ├── HangupAction.cpp │ ├── IaxPeerListAction.cpp │ ├── JabberSendAction.cpp │ ├── ListCommandsAction.cpp │ ├── LocalOptimizeAwayAction.cpp │ ├── LoginAction.cpp │ ├── LogoffAction.cpp │ ├── MailboxCountAction.cpp │ ├── MailboxStatusAction.cpp │ ├── ManagerAction.cpp │ ├── MeetMeMuteAction.cpp │ ├── MeetMeUnmuteAction.cpp │ ├── MixMonitorMuteAction.cpp │ ├── ModuleCheckAction.cpp │ ├── ModuleLoadAction.cpp │ ├── MonitorAction.cpp │ ├── ParkAction.cpp │ ├── ParkedCallsAction.cpp │ ├── PauseMixMonitorAction.cpp │ ├── PauseMonitorAction.cpp │ ├── PingAction.cpp │ ├── PlayDtmfAction.cpp │ ├── QueueAddAction.cpp │ ├── QueueLogAction.cpp │ ├── QueuePauseAction.cpp │ ├── QueuePenaltyAction.cpp │ ├── QueueRemoveAction.cpp │ ├── QueueResetAction.cpp │ ├── QueueStatusAction.cpp │ ├── QueueSummaryAction.cpp │ ├── RedirectAction.cpp │ ├── SendTextAction.cpp │ ├── SetCdrUserFieldAction.cpp │ ├── SetVarAction.cpp │ ├── ShowDialplanAction.cpp │ ├── SipPeersAction.cpp │ ├── SipShowPeerAction.cpp │ ├── SipShowRegistryAction.cpp │ ├── SkypeAddBuddyAction.cpp │ ├── SkypeBuddiesAction.cpp │ ├── SkypeBuddyAction.cpp │ ├── SkypeChatSendAction.cpp │ ├── SkypeLicenseListAction.cpp │ ├── SkypeLicenseStatusAction.cpp │ ├── SkypeRemoveBuddyAction.cpp │ ├── StatusAction.cpp │ ├── StopMonitorAction.cpp │ ├── UnpauseMonitorAction.cpp │ ├── UserEventAction.cpp │ ├── VoicemailUsersListAction.cpp │ ├── ZapDialOffhookAction.cpp │ ├── ZapDndOffAction.cpp │ ├── ZapDndOnAction.cpp │ ├── ZapHangupAction.cpp │ ├── ZapRestartAction.cpp │ ├── ZapShowChannelsAction.cpp │ └── ZapTransferAction.cpp ├── events │ ├── AbstractAgentEvent.cpp │ ├── AbstractChannelEvent.cpp │ ├── AbstractChannelStateEvent.cpp │ ├── AbstractFaxEvent.cpp │ ├── AbstractMeetMeEvent.cpp │ ├── AbstractMonitorEvent.cpp │ ├── AbstractParkedCallEvent.cpp │ ├── AbstractQueueMemberEvent.cpp │ ├── AbstractRtcpEvent.cpp │ ├── AbstractRtpStatEvent.cpp │ ├── AgentCallbackLoginEvent.cpp │ ├── AgentCallbackLogoffEvent.cpp │ ├── AgentCalledEvent.cpp │ ├── AgentCompleteEvent.cpp │ ├── AgentConnectEvent.cpp │ ├── AgentDumpEvent.cpp │ ├── AgentLoginEvent.cpp │ ├── AgentLogoffEvent.cpp │ ├── AgentRingNoAnswer.cpp │ ├── AgentsCompleteEvent.cpp │ ├── AgentsEvent.cpp │ ├── AgiExecEvent.cpp │ ├── AlarmClearEvent.cpp │ ├── AlarmEvent.cpp │ ├── AsyncAgiEvent.cpp │ ├── DahdiShowChannelsCompleteEvent.cpp │ ├── DahdiShowChannelsEvent.cpp │ ├── JabberEventEvent.cpp │ ├── JitterBufStatsEvent.cpp │ ├── JoinEvent.cpp │ ├── LeaveEvent.cpp │ ├── LinkEvent.cpp │ ├── ListDialplanEvent.cpp │ ├── LogChannelEvent.cpp │ ├── ManagerEvent.cpp │ ├── MasqueradeEvent.cpp │ ├── MeetMeEndEvent.cpp │ ├── MeetMeJoinEvent.cpp │ ├── MeetMeLeaveEvent.cpp │ ├── MeetMeMuteEvent.cpp │ ├── MeetMeStopTalkingEvent.cpp │ ├── MeetMeTalkingEvent.cpp │ ├── MeetMeTalkingRequestEvent.cpp │ ├── MessageWaitingEvent.cpp │ ├── ModuleLoadReportEvent.cpp │ ├── MonitorStartEvent.cpp │ ├── MonitorStopEvent.cpp │ ├── MusicOnHoldEvent.cpp │ ├── NewAccountCodeEvent.cpp │ ├── NewCallerIdEvent.cpp │ ├── NewChannelEvent.cpp │ ├── NewExtenEvent.cpp │ ├── NewStateEvent.cpp │ ├── OriginateFailureEvent.cpp │ ├── OriginateResponseEvent.cpp │ ├── OriginateSuccessEvent.cpp │ ├── ParkedCallEvent.cpp │ ├── ParkedCallGiveUpEvent.cpp │ ├── ParkedCallTimeOutEvent.cpp │ ├── ParkedCallsCompleteEvent.cpp │ ├── PeerEntryEvent.cpp │ ├── PeerStatusEvent.cpp │ ├── PeerlistCompleteEvent.cpp │ ├── PriEventEvent.cpp │ ├── ProtocolIdentifierReceivedEvent.cpp │ ├── QueueCallerAbandonEvent.cpp │ ├── QueueEntryEvent.cpp │ ├── QueueEvent.cpp │ ├── QueueMemberAddedEvent.cpp │ ├── QueueMemberEvent.cpp │ ├── QueueMemberPausedEvent.cpp │ ├── QueueMemberPenaltyEvent.cpp │ ├── QueueMemberRemovedEvent.cpp │ ├── QueueMemberStatusEvent.cpp │ ├── QueueParamsEvent.cpp │ ├── QueueStatusCompleteEvent.cpp │ ├── QueueSummaryCompleteEvent.cpp │ ├── QueueSummaryEvent.cpp │ ├── ReceiveFaxEvent.cpp │ ├── RegistrationsCompleteEvent.cpp │ ├── RegistryEntryEvent.cpp │ ├── RegistryEvent.cpp │ ├── ReloadEvent.cpp │ ├── RenameEvent.cpp │ ├── RtcpReceivedEvent.cpp │ ├── RtcpSentEvent.cpp │ ├── RtpReceiverStatEvent.cpp │ ├── RtpSenderStatEvent.cpp │ ├── SendFaxEvent.cpp │ ├── SendFaxStatusEvent.cpp │ ├── ShowDialplanCompleteEvent.cpp │ ├── ShutdownEvent.cpp │ ├── SkypeAccountStatusEvent.cpp │ ├── SkypeBuddyEntryEvent.cpp │ ├── SkypeBuddyListCompleteEvent.cpp │ ├── SkypeBuddyStatusEvent.cpp │ ├── SkypeChatMessageEvent.cpp │ ├── SkypeLicenseEvent.cpp │ ├── SkypeLicenseListCompleteEvent.cpp │ ├── StatusCompleteEvent.cpp │ ├── StatusEvent.cpp │ ├── T38FaxStatusEvent.cpp │ ├── TransferEvent.cpp │ ├── UnholdEvent.cpp │ ├── UnlinkEvent.cpp │ ├── UnparkedCallEvent.cpp │ ├── UserEvent.cpp │ ├── VarSetEvent.cpp │ ├── VoicemailUserEntryCompleteEvent.cpp │ ├── VoicemailUserEntryEvent.cpp │ ├── ZapShowChannelsCompleteEvent.cpp │ └── ZapShowChannelsEvent.cpp └── responses │ ├── ChallengeResponse.cpp │ ├── CommandResponse.cpp │ ├── CoreSettingsResponse.cpp │ ├── CoreStatusResponse.cpp │ ├── ExtensionStateResponse.cpp │ ├── GetConfigResponse.cpp │ ├── GetVarResponse.cpp │ ├── MailboxCountResponse.cpp │ ├── MailboxStatusResponse.cpp │ ├── ManagerError.cpp │ ├── ManagerResponse.cpp │ ├── ModuleCheckResponse.cpp │ ├── PingResponse.cpp │ ├── SipShowPeerResponse.cpp │ ├── SkypeBuddyResponse.cpp │ └── SkypeLicenseStatusResponse.cpp ├── net ├── IPAddress.cpp ├── SSLContext.cpp ├── SSLSocket.cpp └── TCPSocket.cpp ├── structs ├── PropertyMap.cpp ├── Singleton.cpp └── Thread.cpp └── utils ├── Base64.cpp ├── LogHandler.cpp ├── MD5.cpp ├── StringUtils.cpp └── timesupport.cpp /.gitignore: -------------------------------------------------------------------------------- 1 | /asterisk-cpp/aclocal.m4 2 | /asterisk-cpp/examples/Test.o 3 | /asterisk-cpp/config.status 4 | /asterisk-cpp/configure 5 | /asterisk-cpp/config.log 6 | /asterisk-cpp/config.sub 7 | /asterisk-cpp/config.guess 8 | /asterisk-cpp/depcomp 9 | /asterisk-cpp/nbproject/private/CodeAssistancePathMapper.properties 10 | /asterisk-cpp/nbproject/private/Default.properties 11 | /asterisk-cpp/missing 12 | /asterisk-cpp/Makefile.in 13 | /asterisk-cpp/Makefile 14 | /asterisk-cpp/libtool 15 | /asterisk-cpp/nbproject/project.xml 16 | /asterisk-cpp/ltmain.sh 17 | /asterisk-cpp/nbproject/configurations.xml 18 | /asterisk-cpp/nbproject/private/configurations.xml 19 | /asterisk-cpp/nbproject/private/private.xml 20 | /asterisk-cpp/examples/Test 21 | /asterisk-cpp/install-sh 22 | /asterisk-cpp/examples/Makefile 23 | /asterisk-cpp/*.lo 24 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: cpp 2 | compiler: gcc 3 | 4 | before_install: 5 | - sudo apt-get -qq update 6 | - sudo apt-get install -y liblog4cplus-dev libssl-dev libboost-thread-dev libboost-regex-dev 7 | 8 | install: true 9 | 10 | before_script: cd asterisk-cpp 11 | 12 | script: 13 | - aclocal ; autoheader; automake -a -c; libtoolize --force --copy; autoconf; 14 | - autoconf; automake; ./configure 15 | - make 16 | - ls -ls 17 | - sudo make install 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | asterisk-cpp [![Build Status](https://travis-ci.org/augcampos/asterisk-cpp.svg?branch=master)](https://travis-ci.org/augcampos/asterisk-cpp) 2 | ============ 3 | 4 | The free C++ library for Asterisk PBX integration. (asterisk-java ported) 5 | 6 | Check Example on wiki 7 | -------------------------------------------------------------------------------- /asterisk-cpp/.gitignore: -------------------------------------------------------------------------------- 1 | /Debug 2 | /Release 3 | /.deps/ 4 | /.libs/ 5 | /autom4te.cache/ 6 | /m4/ 7 | -------------------------------------------------------------------------------- /asterisk-cpp/AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/augcampos/asterisk-cpp/f5d85cd7c34eb0ab8f8a2607fa274baf6b04f68f/asterisk-cpp/AUTHORS -------------------------------------------------------------------------------- /asterisk-cpp/COPYING: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /asterisk-cpp/NEWS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/augcampos/asterisk-cpp/f5d85cd7c34eb0ab8f8a2607fa274baf6b04f68f/asterisk-cpp/NEWS -------------------------------------------------------------------------------- /asterisk-cpp/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/augcampos/asterisk-cpp/f5d85cd7c34eb0ab8f8a2607fa274baf6b04f68f/asterisk-cpp/README -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/Manager.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * manager.hpp 3 | * 4 | * Created on: Feb 10, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef MANAGER_HPP_ 9 | #define MANAGER_HPP_ 10 | 11 | #include "asteriskcpp/manager/ManagerConnection.h" 12 | 13 | #include "asteriskcpp/manager/actions/AbsoluteTimeoutAction.h" 14 | #include "asteriskcpp/manager/actions/CommandAction.h" 15 | #include "asteriskcpp/manager/actions/EventsAction.h" 16 | #include "asteriskcpp/manager/actions/ListCommandsAction.h" 17 | #include "asteriskcpp/manager/actions/LoginAction.h" 18 | 19 | #include "asteriskcpp/manager/responses/ManagerResponse.h" 20 | #include "asteriskcpp/manager/responses/CommandResponse.h" 21 | 22 | #include "asteriskcpp/manager/Actions.hpp" 23 | 24 | #include "asteriskcpp/manager/Events.hpp" 25 | 26 | #include "asteriskcpp/exceptions/Exception.h" 27 | 28 | #include "asteriskcpp/utils/LogHandler.h" 29 | #include "asteriskcpp/utils/timesupport.h" 30 | 31 | #endif /* MANAGER_HPP_ */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/exceptions/ExceptionHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ExceptionHandler.h 3 | * 4 | * Created on: 29 de Jun de 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef EXCEPTIONHANDLER_H_ 9 | #define EXCEPTIONHANDLER_H_ 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | #ifdef _WIN32 16 | #else 17 | #include 18 | #include 19 | #include 20 | #include 21 | #endif 22 | 23 | #define MAX_STACKTRACE_NAME 256 24 | #define MAX_STACKTRACE_FRAMES 128 25 | 26 | namespace asteriskcpp { 27 | 28 | class ExceptionHandler { 29 | private: 30 | static ExceptionHandler* exceptionHandlerPtr; 31 | 32 | public: 33 | ~ExceptionHandler(); 34 | 35 | static void createExceptionHandler(); 36 | static std::string getStackTraceString(); 37 | static void destroyExceptionHandler(); 38 | 39 | private: 40 | ExceptionHandler(); 41 | 42 | static void signalHandler(int signal); 43 | }; 44 | 45 | } 46 | 47 | #endif /* EXCEPTIONHANDLER_H_ */ 48 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/Actions.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Actions.hpp 3 | * 4 | * Created on: May 17, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef ACTIONS_HPP_ 9 | #define ACTIONS_HPP_ 10 | 11 | #include "asteriskcpp/manager/actions/AbsoluteTimeoutAction.h" 12 | #include "asteriskcpp/manager/actions/AbstractManagerAction.h" 13 | #include "asteriskcpp/manager/actions/AbstractMeetMeMuteAction.h" 14 | #include "asteriskcpp/manager/actions/AgentCallbackLoginAction.h" 15 | #include "asteriskcpp/manager/actions/ChallengeAction.h" 16 | #include "asteriskcpp/manager/actions/CommandAction.h" 17 | #include "asteriskcpp/manager/actions/EventsAction.h" 18 | #include "asteriskcpp/manager/actions/ListCommandsAction.h" 19 | #include "asteriskcpp/manager/actions/LoginAction.h" 20 | #include "asteriskcpp/manager/actions/LogoffAction.h" 21 | #include "asteriskcpp/manager/actions/ManagerAction.h" 22 | 23 | 24 | #endif /* ACTIONS_HPP_ */ 25 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/AsteriskVersion.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AsteriskVersion.h 3 | * 4 | * Created on: Jul 9, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef ASTERISKVERSION_H_ 9 | #define ASTERISKVERSION_H_ 10 | 11 | #include 12 | 13 | namespace asteriskcpp { 14 | 15 | class AsteriskVersion { 16 | public: 17 | 18 | enum ManagerType { 19 | ASTERISK = 0, OPENPBX, CALLWEAVER, ASTMANPROXY 20 | }; 21 | void setManagerValues(const std::string& value); 22 | 23 | std::string toString() const; 24 | private: 25 | ManagerType type; 26 | float managerVersion; 27 | }; 28 | 29 | } 30 | 31 | #endif /* ASTERISKVERSION_H_ */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/ManagerEventListener.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ManagerEventListener.h 3 | * 4 | * Created on: Jul 12, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef MANAGEREVENTLISTENER_H_ 9 | #define MANAGEREVENTLISTENER_H_ 10 | 11 | #include "events/ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | class ManagerEventListener { 16 | public: 17 | virtual ~ManagerEventListener(); 18 | virtual void onManagerEvent(const ManagerEvent& me) = 0; 19 | }; 20 | 21 | } 22 | 23 | #endif /* MANAGEREVENTLISTENER_H_ */ 24 | 25 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/Reader.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Reader.h 3 | * 4 | * Created on: Jul 5, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef READER_H_ 9 | #define READER_H_ 10 | 11 | #include 12 | 13 | #include "../structs/Thread.h" 14 | #include "../net/TCPSocket.h" 15 | #include "Dispatcher.h" 16 | 17 | namespace asteriskcpp { 18 | 19 | class Reader : public Thread { 20 | public: 21 | Reader(); 22 | void start(TCPSocket* s, Dispatcher* d); 23 | void stop(); 24 | void run(); 25 | virtual ~Reader(); 26 | 27 | void delegeteResponseMessage(const std::string& responseMessage); 28 | void delegeteEventMessage(const std::string& eventMessage); 29 | 30 | private: 31 | using Thread::start; 32 | TCPSocket* connectionSocket; 33 | Dispatcher* dispatcher; 34 | std::string unprocessedStr; 35 | 36 | MessageTable* responseMessageTable; 37 | MessageTable* eventMessageTable; 38 | DispatchThread* responseThread; 39 | DispatchThread* eventThread; 40 | 41 | void processIncomming(const std::string& newStr); 42 | 43 | }; 44 | 45 | } 46 | 47 | #endif /* READER_H_ */ 48 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/ResponseBuilder.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ResponseBuilder.h 3 | * 4 | * Created on: Aug 1, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef RESPONSEBUILDER_H_ 9 | #define RESPONSEBUILDER_H_ 10 | 11 | #include "responses/ManagerResponse.h" 12 | #include "actions/ManagerAction.h" 13 | 14 | namespace asteriskcpp { 15 | 16 | class ResponseBuilder { 17 | public: 18 | ResponseBuilder(); 19 | virtual ~ResponseBuilder(); 20 | virtual ManagerResponse* buildResponse(ManagerAction* action, const std::string& responseStr); 21 | }; 22 | 23 | } 24 | 25 | #endif /* RESPONSEBUILDER_H_ */ 26 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/Writer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Writer.h 3 | * 4 | * Created on: Jul 7, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef WRITER_H_ 9 | #define WRITER_H_ 10 | 11 | #include "../structs/Thread.h" 12 | #include "../net/TCPSocket.h" 13 | #include "../structs/SynchronisedQueue.h" 14 | 15 | namespace asteriskcpp { 16 | 17 | class Writer : public Thread { 18 | public: 19 | Writer(); 20 | virtual ~Writer(); 21 | 22 | void start(TCPSocket* s, SynchronisedQueue* wq); 23 | void run(); 24 | 25 | private: 26 | using Thread::start; 27 | TCPSocket* m_connectionSocket; 28 | SynchronisedQueue* m_WriteQueue; 29 | }; 30 | 31 | } 32 | 33 | #endif /* WRITER_H_ */ 34 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/ConfbridgeListAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeListAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef CONFBRIDGELISTACTION_H_ 9 | #define CONFBRIDGELISTACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Lists all users in a particular ConfBridge conference. ConfbridgeList will follow as separate events, 17 | * followed by a final event called ConfbridgeListComplete. 18 | * 19 | * @since 1.0.0 20 | */ 21 | 22 | class ConfbridgeListAction : public AbstractManagerAction { 23 | public: 24 | 25 | 26 | ConfbridgeListAction(); 27 | 28 | 29 | ConfbridgeListAction(const std::string& conference); 30 | 31 | virtual ~ConfbridgeListAction(); 32 | 33 | 34 | 35 | void setConference(const std::string& conference); 36 | 37 | 38 | const std::string& getConference() const; 39 | }; 40 | 41 | } //NAMESPACE 42 | 43 | #endif /*CONFBRIDGELISTACTION_H_*/ 44 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/ConfbridgeListRoomsAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeListRoomsAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef CONFBRIDGELISTROOMSACTION_H_ 9 | #define CONFBRIDGELISTROOMSACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Lists data about all active conferences. ConfbridgeListRoomsEvent will follow as separate events, 17 | * followed by a final event called ConfbridgeListRoomsComplete. 18 | * 19 | * @since 1.0.0 20 | */ 21 | 22 | class ConfbridgeListRoomsAction : public AbstractManagerAction { 23 | public: 24 | 25 | virtual ~ConfbridgeListRoomsAction(); 26 | 27 | }; 28 | 29 | } //NAMESPACE 30 | 31 | #endif /*CONFBRIDGELISTROOMSACTION_H_*/ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/ConfbridgeLockAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeLockAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef CONFBRIDGELOCKACTION_H_ 9 | #define CONFBRIDGELOCKACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The ConfbridgeLockAction lockes a specified conference. 17 | * 18 | * @author jmb 19 | * @version $Id$ 20 | */ 21 | 22 | class ConfbridgeLockAction : public AbstractManagerAction { 23 | public: 24 | 25 | /** 26 | * Creates a new empty ConfbridgeLockAction. 27 | */ 28 | ConfbridgeLockAction(); 29 | 30 | /** 31 | * Creates a new ConfbridgeLockAction for a specific conference. 32 | */ 33 | ConfbridgeLockAction(const std::string& conference); 34 | 35 | virtual ~ConfbridgeLockAction(); 36 | 37 | 38 | /** 39 | * Sets the id of the conference to lock. 40 | */ 41 | void setConference(const std::string& conference); 42 | 43 | 44 | const std::string& getConference() const; 45 | }; 46 | 47 | } //NAMESPACE 48 | 49 | #endif /*CONFBRIDGELOCKACTION_H_*/ 50 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/CoreStatusAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * CoreStatusAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef CORESTATUSACTION_H_ 9 | #define CORESTATUSACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The CoreStatusAction requests a status summary from the server.

17 | * It returns a {@link org.asteriskjava.manager.response.CoreStatusResponse}.

18 | * Available since Asterisk 1.6.0 19 | * 20 | * @author augcampos 21 | * @version $Id$ 22 | * @see org.asteriskjava.manager.response.CoreStatusResponse 23 | * @since 1.0.0 24 | * see @ExpectedResponse(CoreStatusResponse.class) 25 | */ 26 | 27 | class CoreStatusAction : public AbstractManagerAction { 28 | public: 29 | 30 | /** 31 | * Creates a new CoreStatusAction. 32 | */ 33 | CoreStatusAction(); 34 | 35 | virtual ~CoreStatusAction(); 36 | 37 | virtual ManagerResponse* expectedResponce(const std::string& reponse); 38 | 39 | }; 40 | 41 | } //NAMESPACE 42 | 43 | #endif /*CORESTATUSACTION_H_*/ 44 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/DahdiShowChannelsAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * DahdiShowChannelsAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef DAHDISHOWCHANNELSACTION_H_ 9 | #define DAHDISHOWCHANNELSACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The DahdiShowChannelsAction requests the state of all Dahdi channels.

17 | * For each Dahdi channel aDahdiShowChannelsEvent is generated. After all Dahdi 18 | * channels have been listed a DahdiShowChannelsCompleteEvent is generated. 19 | * 20 | * @see org.asteriskjava.manager.event.DahdiShowChannelsEvent 21 | * @see org.asteriskjava.manager.event.DahdiShowChannelsCompleteEvent 22 | * @author augcampos 23 | * @version $Id$ 24 | */ 25 | 26 | class DahdiShowChannelsAction : public AbstractManagerAction { 27 | public: 28 | 29 | /** 30 | * Creates a new DahdiShowChannelsAction. 31 | */ 32 | DahdiShowChannelsAction(); 33 | 34 | virtual ~DahdiShowChannelsAction(); 35 | 36 | }; 37 | 38 | } //NAMESPACE 39 | 40 | #endif /*DAHDISHOWCHANNELSACTION_H_*/ 41 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/EventsAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * EventsAction.h 3 | * 4 | * Created on: Aug 18, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef EVENTSACTION_H_ 9 | #define EVENTSACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * With the EventsAction you can specify what kind of events should be sent to 17 | * this manager connection. 18 | * 19 | */ 20 | class EventsAction : public AbstractManagerAction { 21 | public: 22 | EventsAction(const std::string& eventMask); 23 | 24 | virtual ~EventsAction(); 25 | 26 | /** 27 | * Returns the event mask. 28 | */ 29 | const std::string& getEventMask() const; 30 | 31 | /** 32 | * Sets the event mask.

33 | * Set to "on" if all events should be send, "off" if not events should be 34 | * sent or a combination of "system", "call" and "log" (separated by ',') to 35 | * specify what kind of events should be sent. 36 | */ 37 | void setEventMask(const std::string& eventMask); 38 | 39 | }; 40 | 41 | } //NS 42 | 43 | #endif /* EVENTSACTION_H_ */ 44 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/IaxPeerListAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IaxPeerListAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef IAXPEERLISTACTION_H_ 9 | #define IAXPEERLISTACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Retrieves a list of all defined IAX peers.

17 | * For each peer that is found a PeerEntryEvent is sent by Asterisk containing 18 | * the details. When all peers have been reported a PeerlistCompleteEvent is 19 | * sent.

20 | * Available since Asterisk 1.6 21 | * 22 | * @author augcampos 23 | * @version $Id$ 24 | * @see org.asteriskjava.manager.event.PeerEntryEvent 25 | * @see org.asteriskjava.manager.event.PeerlistCompleteEvent 26 | * @since 1.0.0 27 | */ 28 | 29 | class IaxPeerListAction : public AbstractManagerAction { 30 | public: 31 | 32 | 33 | IaxPeerListAction(); 34 | 35 | virtual ~IaxPeerListAction(); 36 | 37 | }; 38 | 39 | } //NAMESPACE 40 | 41 | #endif /*IAXPEERLISTACTION_H_*/ 42 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/ListCommandsAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ListCommandsAction.h 3 | * 4 | * Created on: Jul 21, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef LISTCOMMANDSACTION_H_ 9 | #define LISTCOMMANDSACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The ListCommandsAction returns possible commands in the Manager interface. 17 | *

18 | * Use the getAttributes method on the ManagerResponse for a map of commands and explanations. 19 | * 20 | * @see org.asteriskjava.manager.response.ManagerResponse#getAttributes() 21 | */ 22 | class ListCommandsAction : public AbstractManagerAction { 23 | public: 24 | ListCommandsAction(); 25 | 26 | virtual ~ListCommandsAction(); 27 | }; 28 | 29 | } 30 | 31 | #endif /* LISTCOMMANDSACTION_H_ */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/LogoffAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * LogoffAction.h 3 | * 4 | * Created on: Jul 20, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef LOGOFFACTION_H_ 9 | #define LOGOFFACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | class LogoffAction : public AbstractManagerAction { 16 | public: 17 | LogoffAction(); 18 | 19 | virtual ~LogoffAction(); 20 | }; 21 | 22 | } 23 | 24 | #endif /* LOGOFFACTION_H_ */ 25 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/MeetMeMuteAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeMuteAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef MEETMEMUTEACTION_H_ 9 | #define MEETMEMUTEACTION_H_ 10 | 11 | #include "AbstractMeetMeMuteAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The MeetMeMuteAction mutes a user in a conference.

17 | * Defined in apps/app_meetme.c

18 | * Available since Asterisk 1.4. 19 | * 20 | * @author augcampos 21 | * @version $Id$ 22 | */ 23 | 24 | class MeetMeMuteAction : public AbstractMeetMeMuteAction { 25 | public: 26 | 27 | /** 28 | * Creates a new empty MeetMeMuteAction. 29 | */ 30 | MeetMeMuteAction(); 31 | 32 | /** 33 | * Creates a new MeetMeMuteAction. 34 | * 35 | * @param meetMe the conference number. 36 | * @param userNum the index of the user in the conference. 37 | */ 38 | MeetMeMuteAction(const std::string& meetMe, int userNum); 39 | 40 | virtual ~MeetMeMuteAction(); 41 | 42 | }; 43 | 44 | } //NAMESPACE 45 | 46 | #endif /*MEETMEMUTEACTION_H_*/ 47 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/MeetMeUnmuteAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeUnmuteAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef MEETMEUNMUTEACTION_H_ 9 | #define MEETMEUNMUTEACTION_H_ 10 | 11 | #include "AbstractMeetMeMuteAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The MeetMeUnmuteAction unmutes a user in a conference.

17 | * Defined in apps/app_meetme.c

18 | * Available since Asterisk 1.4. 19 | * 20 | * @author augcampos 21 | * @version $Id$ 22 | */ 23 | 24 | class MeetMeUnmuteAction : public AbstractMeetMeMuteAction { 25 | public: 26 | 27 | /** 28 | * Creates a new empty MeetMeUnmuteAction. 29 | */ 30 | MeetMeUnmuteAction(); 31 | 32 | /** 33 | * Creates a new MeetMeUnmuteAction. 34 | * 35 | * @param meetMe the conference number. 36 | * @param userNum the index of the user in the conference. 37 | */ 38 | MeetMeUnmuteAction(const std::string& meetMe, int userNum); 39 | 40 | virtual ~MeetMeUnmuteAction(); 41 | 42 | }; 43 | 44 | } //NAMESPACE 45 | 46 | #endif /*MEETMEUNMUTEACTION_H_*/ 47 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/ParkedCallsAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ParkedCallsAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef PARKEDCALLSACTION_H_ 9 | #define PARKEDCALLSACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The ParkedCallsAction requests a list of all currently parked calls.

17 | * For each active channel a ParkedCallEvent is generated. After all parked 18 | * calls have been reported a ParkedCallsCompleteEvent is generated. 19 | * 20 | * @see org.asteriskjava.manager.event.ParkedCallEvent 21 | * @see org.asteriskjava.manager.event.ParkedCallsCompleteEvent 22 | * @author augcampos 23 | * @version $Id$ 24 | */ 25 | 26 | class ParkedCallsAction : public AbstractManagerAction { 27 | public: 28 | 29 | /** 30 | * Creates a new ParkedCallsAction. 31 | */ 32 | ParkedCallsAction(); 33 | 34 | virtual ~ParkedCallsAction(); 35 | 36 | }; 37 | 38 | } //NAMESPACE 39 | 40 | #endif /*PARKEDCALLSACTION_H_*/ 41 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/PingAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PingAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef PINGACTION_H_ 9 | #define PINGACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The PingAction is used to keep the manager connection open and performs no operation.

17 | * Asterisk versions prior to 1.6 send a "Pong" response, since Asterisk 1.6 a 18 | * "Success" response is sent with a "Ping" property set to "Pong". 19 | * 20 | * @author augcampos 21 | * @version $Id$ 22 | * 23 | * @ExpectedResponse(PingResponse) 24 | */ 25 | 26 | 27 | class PingAction : public AbstractManagerAction { 28 | public: 29 | 30 | /** 31 | * Creates a new PingAction. 32 | */ 33 | PingAction(); 34 | 35 | virtual ~PingAction(); 36 | 37 | ManagerResponse* expectedResponce(const std::string & response); 38 | 39 | }; 40 | 41 | } //NAMESPACE 42 | 43 | #endif /*PINGACTION_H_*/ 44 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/ShowDialplanAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ShowDialplanAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef SHOWDIALPLANACTION_H_ 9 | #define SHOWDIALPLANACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Retrieves a list of all priorities defined in the dialplan.

17 | * For each priority a ListDialplanEvent is sent by Asterisk containing 18 | * the details. When all priorities have been reported a ShowDialplanCompleteEvent is 19 | * sent.

20 | * Available since Asterisk 1.6 21 | * 22 | * @author augcampos 23 | * @version $Id$ 24 | * @see org.asteriskjava.manager.event.ListDialplanEvent 25 | * @see org.asteriskjava.manager.event.ShowDialplanCompleteEvent 26 | * @since 1.0.0 27 | */ 28 | 29 | class ShowDialplanAction : public AbstractManagerAction { 30 | public: 31 | 32 | 33 | ShowDialplanAction(); 34 | 35 | virtual ~ShowDialplanAction(); 36 | 37 | }; 38 | 39 | } //NAMESPACE 40 | 41 | #endif /*SHOWDIALPLANACTION_H_*/ 42 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/SipPeersAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SipPeersAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef SIPPEERSACTION_H_ 9 | #define SIPPEERSACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Retrieves a list of all defined SIP peers.

17 | * For each peer that is found a PeerEntryEvent is sent by Asterisk containing 18 | * the details. When all peers have been reported a PeerlistCompleteEvent is 19 | * sent.

20 | * Available since Asterisk 1.2 21 | * 22 | * @author augcampos 23 | * @version $Id$ 24 | * @see org.asteriskjava.manager.event.PeerEntryEvent 25 | * @see org.asteriskjava.manager.event.PeerlistCompleteEvent 26 | * @since 0.2 27 | */ 28 | 29 | class SipPeersAction : public AbstractManagerAction { 30 | public: 31 | 32 | 33 | SipPeersAction(); 34 | 35 | virtual ~SipPeersAction(); 36 | 37 | }; 38 | 39 | } //NAMESPACE 40 | 41 | #endif /*SIPPEERSACTION_H_*/ 42 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/SipShowRegistryAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SipShowRegistryAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef SIPSHOWREGISTRYACTION_H_ 9 | #define SIPSHOWREGISTRYACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Retrieves a list with the details about the SIP registrations.

17 | * For each registration that is found a RegistryEntryEvent is sent by Asterisk 18 | * containing the details. When all the registrations have been reported a 19 | * RegistrationsCompleteEvent is sent.

20 | * Available since Asterisk 1.6 21 | * 22 | * @author Laureano 23 | * @version $Id$ 24 | * @see RegistrationsCompleteEvent 25 | * @see RegistryEntryEvent 26 | * @since 1.0.0 27 | */ 28 | 29 | class SipShowRegistryAction : public AbstractManagerAction { 30 | public: 31 | 32 | 33 | SipShowRegistryAction(); 34 | 35 | virtual ~SipShowRegistryAction(); 36 | 37 | }; 38 | 39 | } //NAMESPACE 40 | 41 | #endif /*SIPSHOWREGISTRYACTION_H_*/ 42 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/SkypeLicenseListAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeLicenseListAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef SKYPELICENSELISTACTION_H_ 9 | #define SKYPELICENSELISTACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The SkypeLicenseListAction lists all Skype for Asterisk licenses currently installed on 17 | * the system.

18 | * For each license a SkypeLicenseEvent is generated. After all licenses have been 19 | * reported a SkypeLicenseListCompleteEvent is generated.

20 | * Available with Skype for Asterisk. 21 | * 22 | * @see org.asteriskjava.manager.event.SkypeLicenseEvent 23 | * @see org.asteriskjava.manager.event.SkypeLicenseListCompleteEvent 24 | * @since 1.0.0 25 | */ 26 | 27 | class SkypeLicenseListAction : public AbstractManagerAction { 28 | public: 29 | 30 | /** 31 | * Creates a new SkypeLicenseListAction. 32 | */ 33 | SkypeLicenseListAction(); 34 | 35 | virtual ~SkypeLicenseListAction(); 36 | 37 | }; 38 | 39 | } //NAMESPACE 40 | 41 | #endif /*SKYPELICENSELISTACTION_H_*/ 42 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/SkypeLicenseStatusAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeLicenseStatusAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef SKYPELICENSESTATUSACTION_H_ 9 | #define SKYPELICENSESTATUSACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The SkypeLicenseStatusAction returns the total number of Skype calls licensed.

17 | * Available with Skype for Asterisk. 18 | * 19 | * @since 1.0.0 20 | * 21 | * @ExpectedResponse(SkypeLicenseStatusResponse) 22 | */ 23 | 24 | 25 | class SkypeLicenseStatusAction : public AbstractManagerAction { 26 | public: 27 | 28 | /** 29 | * Creates a new SkypeLicenseStatusAction. 30 | */ 31 | SkypeLicenseStatusAction(); 32 | 33 | virtual ~SkypeLicenseStatusAction(); 34 | 35 | virtual ManagerResponse* expectedResponce(const std::string& reponse); 36 | }; 37 | 38 | } //NAMESPACE 39 | 40 | #endif /*SKYPELICENSESTATUSACTION_H_*/ 41 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/ZapRestartAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapRestartAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef ZAPRESTARTACTION_H_ 9 | #define ZAPRESTARTACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Fully restarts all zaptel channels and terminates any calls on Zap 17 | * interfaces. 18 | *

19 | * Available since Asterisk 1.4. 20 | * 21 | * @author augcampos 22 | * @since 0.3 23 | * @version $Id$ 24 | */ 25 | 26 | class ZapRestartAction : public AbstractManagerAction { 27 | public: 28 | 29 | 30 | ZapRestartAction(); 31 | 32 | virtual ~ZapRestartAction(); 33 | 34 | }; 35 | 36 | } //NAMESPACE 37 | 38 | #endif /*ZAPRESTARTACTION_H_*/ 39 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/ZapShowChannelsAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapShowChannelsAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef ZAPSHOWCHANNELSACTION_H_ 9 | #define ZAPSHOWCHANNELSACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The ZapShowChannelsAction requests the state of all zap channels.

17 | * For each zap channel a ZapShowChannelsEvent is generated. After all zap 18 | * channels have been listed a ZapShowChannelsCompleteEvent is generated. 19 | * 20 | * @see org.asteriskjava.manager.event.ZapShowChannelsEvent 21 | * @see org.asteriskjava.manager.event.ZapShowChannelsCompleteEvent 22 | * @author augcampos 23 | * @version $Id$ 24 | */ 25 | 26 | class ZapShowChannelsAction : public AbstractManagerAction { 27 | public: 28 | 29 | /** 30 | * Creates a new ZapShowChannelsAction. 31 | */ 32 | ZapShowChannelsAction(); 33 | 34 | virtual ~ZapShowChannelsAction(); 35 | 36 | }; 37 | 38 | } //NAMESPACE 39 | 40 | #endif /*ZAPSHOWCHANNELSACTION_H_*/ 41 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/actions/ZapTransferAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapTransferAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef ZAPTRANSFERACTION_H_ 9 | #define ZAPTRANSFERACTION_H_ 10 | 11 | #include "AbstractManagerAction.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * The ZapTransferAction transfers a zap channel. 17 | * 18 | * @author augcampos 19 | * @version $Id$ 20 | */ 21 | 22 | class ZapTransferAction : public AbstractManagerAction { 23 | public: 24 | 25 | ZapTransferAction(); 26 | 27 | virtual ~ZapTransferAction(); 28 | 29 | 30 | /** 31 | * Returns the number of the zap channel to transfer. 32 | */ 33 | int getZapChannel() const; 34 | 35 | 36 | void setZapChannel(int channel); 37 | }; 38 | 39 | } //NAMESPACE 40 | 41 | #endif /*ZAPTRANSFERACTION_H_*/ 42 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/AbstractFaxEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AbstractFaxEvent.h 3 | * 4 | * Created on: Aug 10, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef ABSTRACTFAXEVENT_H_ 9 | #define ABSTRACTFAXEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * An AbstractFaxEvent is a base class for fax related events 17 | */ 18 | class AbstractFaxEvent : public ManagerEvent { 19 | public: 20 | AbstractFaxEvent(const std::string& values); 21 | virtual ~AbstractFaxEvent(); 22 | 23 | /** 24 | * @return the channel 25 | */ 26 | const std::string& getChannelType() const; 27 | 28 | /** 29 | * @return the faxSession 30 | */ 31 | 32 | int getFaxSession() const; 33 | }; 34 | 35 | } 36 | #endif /* ABSTRACTFAXEVENT_H_ */ 37 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/AgentCallbackLoginEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentCallbackLoginEvent.h 3 | * 4 | * Created on: Aug 1, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef AGENTCALLBACKLOGINEVENT_H_ 9 | #define AGENTCALLBACKLOGINEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * An AgentCallbackLoginEvent is triggered when an agent is successfully logged in using 17 | * AgentCallbackLogin.

18 | * It is implemented in channels/chan_agent.c 19 | * 20 | * @see org.asteriskjava.manager.event.AgentCallbackLogoffEvent 21 | */ 22 | class AgentCallbackLoginEvent : public ManagerEvent { 23 | public: 24 | AgentCallbackLoginEvent(const std::string& values); 25 | 26 | virtual ~AgentCallbackLoginEvent(); 27 | 28 | /** 29 | * Returns the name of the agent that logged in. 30 | */ 31 | const std::string& getAgent() const; 32 | 33 | const std::string& getLoginChan() const; 34 | }; 35 | 36 | } 37 | 38 | #endif /* AGENTCALLBACKLOGINEVENT_H_ */ 39 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/AgentDumpEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentDumpEvent.h 3 | * 4 | * Created on: Aug 2, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef AGENTDUMPEVENT_H_ 9 | #define AGENTDUMPEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/AbstractAgentEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * An AgentDumpEvent is triggered when an agent dumps the caller while listening 17 | * to the queue announcement.

18 | * It is implemented in apps/app_queue.c.

19 | * Available since Asterisk 1.2 20 | * 21 | * @since 0.2 22 | */ 23 | class AgentDumpEvent : public AbstractAgentEvent { 24 | public: 25 | AgentDumpEvent(const std::string & values); 26 | virtual ~AgentDumpEvent(); 27 | }; 28 | 29 | } 30 | 31 | #endif /* AGENTDUMPEVENT_H_ */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/AgentLogoffEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentLogoffEvent.h 3 | * 4 | * Created on: Aug 2, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef AGENTLOGOFFEVENT_H_ 9 | #define AGENTLOGOFFEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | class AgentLogoffEvent : public ManagerEvent { 16 | public: 17 | AgentLogoffEvent(const std::string & values); 18 | virtual ~AgentLogoffEvent(); 19 | 20 | /** 21 | * Gets the name of the agent that logged off. 22 | */ 23 | const std::string& getAgent() const; 24 | 25 | const std::string& getLoginTime() const; 26 | 27 | }; 28 | 29 | } 30 | 31 | #endif /* AGENTLOGOFFEVENT_H_ */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/AgentRingNoAnswer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentRingNoAnswer.h 3 | * 4 | * Created on: Aug 2, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef AGENTRINGNOANSWER_H_ 9 | #define AGENTRINGNOANSWER_H_ 10 | 11 | #include "asteriskcpp/manager/events/AbstractAgentEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * An AgentRingNoAnswerEvent is triggered when a call is routed to an agent but the agent 17 | * does not answer the call.

18 | * It is implemented in apps/app_queue.c.

19 | * Available since Asterisk 1.6 20 | * 21 | * @since 1.0.0 22 | */ 23 | class AgentRingNoAnswer : public AbstractAgentEvent { 24 | public: 25 | AgentRingNoAnswer(const std::string & values); 26 | virtual ~AgentRingNoAnswer(); 27 | 28 | /** 29 | * Returns the amount of time the agent's channel was ringing. 30 | * 31 | * @return the amount of time the agent's channel was ringing in seconds. 32 | */ 33 | const std::string& getRingtime() const; 34 | }; 35 | 36 | } 37 | 38 | #endif /* AGENTRINGNOANSWER_H_ */ 39 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/AgentsCompleteEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentsCompleteEvent.h 3 | * 4 | * Created on: Aug 3, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef AGENTSCOMPLETEEVENT_H_ 9 | #define AGENTSCOMPLETEEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * An AgentsCompleteEvent is triggered after the state of all agents has been 17 | * reported in response to an AgentsAction.

18 | * Available since Asterisk 1.2 19 | * 20 | * @see org.asteriskjava.manager.action.AgentsAction 21 | * @since 0.2 22 | */ 23 | class AgentsCompleteEvent : public ResponseEvent { 24 | public: 25 | AgentsCompleteEvent(const std::string & values); 26 | virtual ~AgentsCompleteEvent(); 27 | }; 28 | 29 | } 30 | 31 | #endif /* AGENTSCOMPLETEEVENT_H_ */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/AlarmClearEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlarmClearEvent.h 3 | * 4 | * Created on: Aug 4, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef ALARMCLEAREVENT_H_ 9 | #define ALARMCLEAREVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * An AlarmEvent is triggered when a Zap channel leaves alarm state.

17 | * It is implemented in channels/chan_zap.c 18 | * 19 | */ 20 | class AlarmClearEvent : public ManagerEvent { 21 | public: 22 | AlarmClearEvent(const std::string & values); 23 | virtual ~AlarmClearEvent(); 24 | 25 | /** 26 | * Returns the number of the zap channel that left alarm state. 27 | * 28 | * @return the number of the zap channel that left alarm state. 29 | */ 30 | const std::string& getChannel() const; 31 | 32 | }; 33 | 34 | } 35 | 36 | #endif /* ALARMCLEAREVENT_H_ */ 37 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ConfbridgeEndEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeEndEvent.h 3 | * 4 | * Created on: Aug 7, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef CONFBRIDGEENDEVENT_H_ 9 | #define CONFBRIDGEENDEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * This event is sent when the last user leaves a conference and it is torn down. 17 | * 18 | * @since 1.0.0 19 | */ 20 | class ConfbridgeEndEvent : public ManagerEvent { 21 | public: 22 | 23 | ConfbridgeEndEvent(const std::string& values) : 24 | ManagerEvent(values) { 25 | } 26 | 27 | virtual ~ConfbridgeEndEvent() { 28 | } 29 | 30 | /** 31 | * Returns the id of the conference ended. 32 | * 33 | * @return the id of the conference ended. 34 | */ 35 | const std::string& getConference() const { 36 | return (getProperty("Conference")); 37 | } 38 | }; 39 | 40 | } 41 | 42 | #endif /* CONFBRIDGEENDEVENT_H_ */ 43 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ConfbridgeJoinEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeJoinEvent.h 3 | * 4 | * Created on: Aug 7, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef CONFBRIDGEJOINEVENT_H_ 9 | #define CONFBRIDGEJOINEVENT_H_ 10 | 11 | #include "AbstractChannelEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * This event is sent when a user joins a conference - either one already in progress or as the first user to 17 | * join a newly instantiated bridge. 18 | * 19 | * @since 1.0.0 20 | */ 21 | class ConfbridgeJoinEvent : public AbstractChannelEvent { 22 | public: 23 | 24 | ConfbridgeJoinEvent(const std::string& values) : 25 | AbstractChannelEvent(values) { 26 | } 27 | 28 | virtual ~ConfbridgeJoinEvent() { 29 | } 30 | 31 | /** 32 | * Returns the id of the conference the participant joined. 33 | * 34 | * @return id of the conference the participant joined. 35 | */ 36 | const std::string& getConference() const { 37 | return (getProperty("Conference")); 38 | } 39 | }; 40 | 41 | } 42 | 43 | #endif /* CONFBRIDGEJOINEVENT_H_ */ 44 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ConfbridgeLeaveEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeLeaveEvent.h 3 | * 4 | * Created on: Aug 7, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef CONFBRIDGELEAVEEVENT_H_ 9 | #define CONFBRIDGELEAVEEVENT_H_ 10 | 11 | #include "AbstractChannelEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * This event is sent when a user leaves a conference. 17 | * 18 | * @since 1.0.0 19 | */ 20 | class ConfbridgeLeaveEvent : public AbstractChannelEvent { 21 | public: 22 | 23 | ConfbridgeLeaveEvent(const std::string& values) : 24 | AbstractChannelEvent(values) { 25 | } 26 | 27 | virtual ~ConfbridgeLeaveEvent() { 28 | } 29 | 30 | /** 31 | * Returns the id of the conference the participant left. 32 | * 33 | * @return the id of the conference the participant left. 34 | */ 35 | const std::string& getConference() const { 36 | return (getProperty("Conference")); 37 | } 38 | }; 39 | 40 | } 41 | 42 | #endif /* CONFBRIDGELEAVEEVENT_H_ */ 43 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ConfbridgeListCompleteEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeListCompleteEvent.h 3 | * 4 | * Created on: Aug 7, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef CONFBRIDGELISTCOMPLETEEVENT_H_ 9 | #define CONFBRIDGELISTCOMPLETEEVENT_H_ 10 | 11 | #include "ResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | class ConfbridgeListCompleteEvent : public ResponseEvent { 16 | public: 17 | 18 | ConfbridgeListCompleteEvent(const std::string& values) : 19 | ResponseEvent(values) { 20 | } 21 | 22 | virtual ~ConfbridgeListCompleteEvent() { 23 | } 24 | 25 | /** 26 | * Returns the status of the list e.g. complete. 27 | */ 28 | const std::string& getEventList() const { 29 | return (getProperty("EventList")); 30 | } 31 | 32 | /** 33 | * Returns the number listitems. 34 | */ 35 | const std::string& getListItems() const { 36 | return (getProperty("ListItems")); 37 | } 38 | 39 | }; 40 | 41 | } 42 | 43 | #endif /* CONFBRIDGELISTCOMPLETEEVENT_H_ */ 44 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ConfbridgeListRoomsCompleteEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeListRoomsCompleteEvent.h 3 | * 4 | * Created on: Aug 8, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef CONFBRIDGELISTROOMSCOMPLETEEVENT_H_ 9 | #define CONFBRIDGELISTROOMSCOMPLETEEVENT_H_ 10 | 11 | #include "ResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | class ConfbridgeListRoomsCompleteEvent : public ResponseEvent { 16 | public: 17 | 18 | ConfbridgeListRoomsCompleteEvent(const std::string& values) : 19 | ResponseEvent(values) { 20 | } 21 | 22 | virtual ~ConfbridgeListRoomsCompleteEvent() { 23 | } 24 | 25 | /** 26 | * Returns the status of the list that is always "Complete". 27 | */ 28 | const std::string& getEventList() const { 29 | return (getProperty("EventList")); 30 | } 31 | 32 | /** 33 | * Returns the number listitems. 34 | * 35 | * @return the number items returned. 36 | */ 37 | const std::string& getListItems() const { 38 | return (getProperty("ListItems")); 39 | } 40 | }; 41 | 42 | } 43 | 44 | #endif /* CONFBRIDGELISTROOMSCOMPLETEEVENT_H_ */ 45 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ConfbridgeStartEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeStartEvent.h 3 | * 4 | * Created on: Aug 8, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef CONFBRIDGESTARTEVENT_H_ 9 | #define CONFBRIDGESTARTEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * This event is sent when the first user requests a conference and it is instantiated. 17 | * 18 | * @since 1.0.0 19 | */ 20 | class ConfbridgeStartEvent : public ManagerEvent { 21 | public: 22 | 23 | ConfbridgeStartEvent(const std::string & values) : 24 | ManagerEvent(values) { 25 | } 26 | 27 | virtual ~ConfbridgeStartEvent() { 28 | } 29 | 30 | /** 31 | * Returns the id of the conference started. 32 | * 33 | * @return the id of the conference started. 34 | */ 35 | const std::string& getConference() const { 36 | return (getProperty("Conference")); 37 | } 38 | 39 | }; 40 | 41 | } 42 | 43 | #endif /* CONFBRIDGESTARTEVENT_H_ */ 44 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/DisconnectEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * DisconnectEvent.h 3 | * 4 | * Created on: Aug 10, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef DISCONNECTEVENT_H_ 9 | #define DISCONNECTEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A DisconnectEvent is triggered when the connection to the asterisk server is lost.

17 | * It is a pseudo event not directly related to an Asterisk generated event. 18 | * 19 | * @see org.asteriskjava.manager.event.ConnectEvent 20 | */ 21 | class DisconnectEvent : public ManagerEvent { 22 | public: 23 | 24 | DisconnectEvent(const std::string & values) : 25 | ManagerEvent(values) { 26 | } 27 | 28 | virtual ~DisconnectEvent() { 29 | } 30 | }; 31 | 32 | } 33 | #endif /* DISCONNECTEVENT_H_ */ 34 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/DndStateEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * DndStateEvent.h 3 | * 4 | * Created on: Aug 10, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #ifndef DNDSTATEEVENT_H_ 9 | #define DNDSTATEEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | class DndStateEvent : public ManagerEvent { 16 | public: 17 | 18 | DndStateEvent(const std::string & values) : 19 | ManagerEvent(values) { 20 | } 21 | 22 | virtual ~DndStateEvent() { 23 | } 24 | 25 | /** 26 | * Returns the name of the channel. The channel name is of the form 27 | * "Zap/<channel number>". 28 | */ 29 | const std::string& getChannel() const { 30 | return (getProperty("Channel")); 31 | } 32 | 33 | /** 34 | * Returns DND state of the channel. 35 | * 36 | * @return bool.TRUE if do not disturb is on, bool.FALSE if it is off. 37 | */ 38 | int getState() const { 39 | return (getProperty("State")); 40 | } 41 | }; 42 | 43 | } 44 | 45 | #endif /* DNDSTATEEVENT_H_ */ 46 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/FullyBootedEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * FullyBootedEvent.h 3 | * 4 | * Created on: Jul 12, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef FULLYBOOTEDEVENT_H_ 9 | #define FULLYBOOTEDEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ManagerEvent.h" 12 | #include 13 | 14 | namespace asteriskcpp { 15 | 16 | class FullyBootedEvent : public ManagerEvent { 17 | public: 18 | 19 | FullyBootedEvent() : 20 | ManagerEvent() { 21 | } 22 | 23 | FullyBootedEvent(const std::string& values) : 24 | ManagerEvent(values) { 25 | } 26 | 27 | virtual ~FullyBootedEvent() { 28 | } 29 | 30 | }; 31 | 32 | } 33 | 34 | #endif /* FULLYBOOTEDEVENT_H_ */ 35 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/JabberEventEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * JabberEventEvent.h 3 | * 4 | * Created on: Aug 23, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef JABBEREVENTEVENT_H_ 9 | #define JABBEREVENTEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A JabberEventEvent is triggered when Asterisk receives a Jabber (XMPP) message.

17 | * It is implemented in res/res_jabber.c

18 | * Available since Asterisk 1.4 19 | * 20 | * @since 1.0.0 21 | */ 22 | class JabberEventEvent : public asteriskcpp::ManagerEvent { 23 | public: 24 | JabberEventEvent(const std::string & values); 25 | virtual ~JabberEventEvent(); 26 | 27 | const std::string& getAccount() const; 28 | const std::string& getPacket() const; 29 | 30 | }; 31 | 32 | } /* namespace asterisk_cpp */ 33 | #endif /* JABBEREVENTEVENT_H_ */ 34 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/LeaveEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * LeaveEvent.h 3 | * 4 | * Created on: Aug 24, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef LEAVEEVENT_H_ 9 | #define LEAVEEVENT_H_ 10 | 11 | #include "QueueEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A LeaveEvent is triggered when a channel leaves a queue.

17 | * It is implemented in apps/app_queue.c 18 | * 19 | */ 20 | class LeaveEvent : public asteriskcpp::QueueEvent { 21 | public: 22 | LeaveEvent(const std::string & values); 23 | virtual ~LeaveEvent(); 24 | }; 25 | 26 | } /* namespace asterisk_cpp */ 27 | #endif /* LEAVEEVENT_H_ */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/LinkEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * LinkEvent.h 3 | * 4 | * Created on: Aug 24, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef LINKEVENT_H_ 9 | #define LINKEVENT_H_ 10 | 11 | #include "BridgeEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A LinkEvent is triggered when two voice channels are linked together and voice data exchange 17 | * commences.

18 | * Several Link events may be seen for a single call. This can occur when Asterisk fails to setup a 19 | * native bridge for the call.This is when Asterisk must sit between two telephones and perform 20 | * CODEC conversion on their behalf.

21 | * It is implemented in channel.c 22 | * 23 | * @deprecated as of 1.0.0, use {@link org.asteriskjava.manager.event.BridgeEvent} and 24 | * {@link BridgeEvent#isLink()} instead 25 | */ 26 | class LinkEvent : public BridgeEvent { 27 | public: 28 | LinkEvent(const std::string & values); 29 | virtual ~LinkEvent(); 30 | }; 31 | 32 | } /* namespace asterisk_cpp */ 33 | #endif /* LINKEVENT_H_ */ 34 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/MeetMeEndEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeEndEvent.h 3 | * 4 | * Created on: Aug 24, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef MEETMEENDEVENT_H_ 9 | #define MEETMEENDEVENT_H_ 10 | 11 | #include "asteriskcpp/manager/events/ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A MeetMeEnd event indicates that a conference room was disposed.

17 | * Available since Asterisk 1.6.

18 | * It is defined in apps/app_meetme.c 19 | * 20 | * @since 1.0.0 21 | */ 22 | class MeetMeEndEvent : public ManagerEvent { 23 | public: 24 | MeetMeEndEvent(const std::string & values); 25 | virtual ~MeetMeEndEvent(); 26 | 27 | /** 28 | * Returns the conference number. 29 | * 30 | * @return the conference number. 31 | */ 32 | const std::string& getMeetMe() const; 33 | }; 34 | 35 | } /* namespace asterisk_cpp */ 36 | #endif /* MEETMEENDEVENT_H_ */ 37 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/MeetMeMuteEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeMuteEvent.h 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef MEETMEMUTEEVENT_H_ 9 | #define MEETMEMUTEEVENT_H_ 10 | 11 | #include "AbstractMeetMeEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A MeetMeMuteEvent is triggered when a user in a MeetMe room is muted or 17 | * unmuted.

18 | * It is implemented in apps/app_meetme.c

19 | * Available since Asterisk 1.4. 20 | * 21 | * @author augcampos 22 | * @version $Id$ 23 | */ 24 | class MeetMeMuteEvent : public asteriskcpp::AbstractMeetMeEvent { 25 | public: 26 | MeetMeMuteEvent(const std::string & values); 27 | virtual ~MeetMeMuteEvent(); 28 | 29 | /** 30 | * Returns whether the user was muted or unmuted. 31 | * 32 | * @return true if ther user was muted, 33 | * false if the user was unmuted. 34 | */ 35 | bool getStatus() const; 36 | }; 37 | 38 | } /* namespace asteriskcpp */ 39 | #endif /* MEETMEMUTEEVENT_H_ */ 40 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/MonitorStartEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MonitorStartEvent.h 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef MONITORSTARTEVENT_H_ 9 | #define MONITORSTARTEVENT_H_ 10 | 11 | #include "AbstractMonitorEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A MonitorStartEvent indicates that monitoring was started on a channel.

17 | * Available since Asterisk 1.6.

18 | * It is implemented in res/res_monitor.c 19 | * 20 | * @since 1.0.0 21 | * @see org.asteriskjava.manager.event.MonitorStopEvent 22 | */ 23 | class MonitorStartEvent : public AbstractMonitorEvent { 24 | public: 25 | MonitorStartEvent(const std::string & values); 26 | virtual ~MonitorStartEvent(); 27 | }; 28 | 29 | } /* namespace asteriskcpp */ 30 | #endif /* MONITORSTARTEVENT_H_ */ 31 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/MonitorStopEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MonitorStopEvent.h 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef MONITORSTOPEVENT_H_ 9 | #define MONITORSTOPEVENT_H_ 10 | 11 | #include "AbstractMonitorEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A MonitorStopEvent indicates that monitoring was stopped on a channel.

17 | * Available since Asterisk 1.6.

18 | * It is implemented in res/res_monitor.c 19 | * 20 | * @since 1.0.0 21 | * @see org.asteriskjava.manager.event.MonitorStartEvent 22 | */ 23 | class MonitorStopEvent : public asteriskcpp::AbstractMonitorEvent { 24 | public: 25 | MonitorStopEvent(const std::string & values); 26 | virtual ~MonitorStopEvent(); 27 | }; 28 | 29 | } /* namespace asteriskcpp */ 30 | #endif /* MONITORSTOPEVENT_H_ */ 31 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/NewStateEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * NewStateEvent.h 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef NEWSTATEEVENT_H_ 9 | #define NEWSTATEEVENT_H_ 10 | 11 | #include "AbstractChannelStateEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A NewStateEvent is triggered when the state of a channel has changed.

17 | * It is implemented in channel.c 18 | * 19 | */ 20 | class NewStateEvent : public AbstractChannelStateEvent { 21 | public: 22 | NewStateEvent(const std::string & values); 23 | virtual ~NewStateEvent(); 24 | }; 25 | 26 | } /* namespace asteriskcpp */ 27 | #endif /* NEWSTATEEVENT_H_ */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/OriginateFailureEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * OriginateFailureEvent.h 3 | * 4 | * Created on: Mar 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef ORIGINATEFAILUREEVENT_H_ 9 | #define ORIGINATEFAILUREEVENT_H_ 10 | 11 | #include "OriginateResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * An OriginateFailureEvent is triggered when the execution of an 17 | * OriginateAction failed.

18 | * Deprecated since Asterisk 1.4. 19 | * 20 | * @see org.asteriskjava.manager.action.OriginateAction 21 | * @see OriginateResponseEvent 22 | * @deprecated 23 | */ 24 | class OriginateFailureEvent : public OriginateResponseEvent { 25 | public: 26 | OriginateFailureEvent(const std::string & values); 27 | virtual ~OriginateFailureEvent(); 28 | }; 29 | 30 | } /* namespace asteriskcpp */ 31 | #endif /* ORIGINATEFAILUREEVENT_H_ */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/OriginateSuccessEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * OriginateSuccessEvent.h 3 | * 4 | * Created on: Mar 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef ORIGINATESUCCESSEVENT_H_ 9 | #define ORIGINATESUCCESSEVENT_H_ 10 | 11 | #include "OriginateResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * An OriginateSuccessEvent is triggered when the execution of an 17 | * OriginateAction succeeded.

18 | * Deprecated since Asterisk 1.4. 19 | * 20 | * @see org.asteriskjava.manager.action.OriginateAction 21 | * @see OriginateResponseEvent 22 | * @deprecated 23 | */ 24 | class OriginateSuccessEvent : public OriginateResponseEvent { 25 | public: 26 | OriginateSuccessEvent(const std::string & values); 27 | virtual ~OriginateSuccessEvent(); 28 | }; 29 | 30 | } /* namespace asteriskcpp */ 31 | #endif /* ORIGINATESUCCESSEVENT_H_ */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ParkedCallGiveUpEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ParkedCallGiveUpEvent.h 3 | * 4 | * Created on: Mar 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef PARKEDCALLGIVEUPEVENT_H_ 9 | #define PARKEDCALLGIVEUPEVENT_H_ 10 | 11 | #include "AbstractParkedCallEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A ParkedCallGiveUpEvent is triggered when a channel that has been parked is 17 | * hung up.

18 | * It is implemented in res/res_features.c

19 | * Available since Asterisk 1.2 20 | * 21 | * @since 0.2 22 | */ 23 | class ParkedCallGiveUpEvent : public AbstractParkedCallEvent { 24 | public: 25 | ParkedCallGiveUpEvent(const std::string & values); 26 | virtual ~ParkedCallGiveUpEvent(); 27 | }; 28 | 29 | } /* namespace asteriskcpp */ 30 | #endif /* PARKEDCALLGIVEUPEVENT_H_ */ 31 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ParkedCallTimeOutEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ParkedCallTimeOutEvent.h 3 | * 4 | * Created on: Mar 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef PARKEDCALLTIMEOUTEVENT_H_ 9 | #define PARKEDCALLTIMEOUTEVENT_H_ 10 | 11 | #include "AbstractParkedCallEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A ParkedCallTimeOutEvent is triggered when call parking times out for a given 17 | * channel.

18 | * It is implemented in res/res_features.c

19 | * Available since Asterisk 1.2 20 | * 21 | * @since 0.2 22 | */ 23 | class ParkedCallTimeOutEvent : public AbstractParkedCallEvent { 24 | public: 25 | ParkedCallTimeOutEvent(const std::string & values); 26 | virtual ~ParkedCallTimeOutEvent(); 27 | }; 28 | 29 | } /* namespace asteriskcpp */ 30 | #endif /* PARKEDCALLTIMEOUTEVENT_H_ */ 31 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ParkedCallsCompleteEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ParkedCallsCompleteEvent.h 3 | * 4 | * Created on: Mar 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef PARKEDCALLSCOMPLETEEVENT_H_ 9 | #define PARKEDCALLSCOMPLETEEVENT_H_ 10 | 11 | #include "ResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A ParkedCallsCompleteEvent is triggered after all parked calls have been reported in response to 17 | * a ParkedCallsAction. 18 | * 19 | * @see org.asteriskjava.manager.action.ParkedCallsAction 20 | * @see org.asteriskjava.manager.event.ParkedCallEvent 21 | * 22 | */ 23 | class ParkedCallsCompleteEvent : public ResponseEvent { 24 | public: 25 | ParkedCallsCompleteEvent(const std::string & values); 26 | virtual ~ParkedCallsCompleteEvent(); 27 | }; 28 | 29 | } /* namespace asteriskcpp */ 30 | #endif /* PARKEDCALLSCOMPLETEEVENT_H_ */ 31 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/QueueMemberRemovedEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueMemberRemovedEvent.h 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef QUEUEMEMBERREMOVEDEVENT_H_ 9 | #define QUEUEMEMBERREMOVEDEVENT_H_ 10 | 11 | #include "AbstractQueueMemberEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A QueueMemberRemovedEvent is triggered when a queue member is removed from a 17 | * queue.

18 | * It is implemented in apps/app_queue.c.

19 | * Available since Asterisk 1.2 20 | * 21 | * @since 0.2 22 | */ 23 | class QueueMemberRemovedEvent : public AbstractQueueMemberEvent { 24 | public: 25 | QueueMemberRemovedEvent(const std::string & values); 26 | virtual ~QueueMemberRemovedEvent(); 27 | }; 28 | 29 | } /* namespace asteriskcpp */ 30 | #endif /* QUEUEMEMBERREMOVEDEVENT_H_ */ 31 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/QueueMemberStatusEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueMemberStatusEvent.h 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef QUEUEMEMBERSTATUSEVENT_H_ 9 | #define QUEUEMEMBERSTATUSEVENT_H_ 10 | 11 | #include "QueueMemberEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A QueueMemberStatusEvent shows the status of a QueueMemberEvent 17 | * 18 | * @author Asteria Solutions Group, Inc. 19 | */ 20 | class QueueMemberStatusEvent : public QueueMemberEvent { 21 | public: 22 | QueueMemberStatusEvent(const std::string & values); 23 | virtual ~QueueMemberStatusEvent(); 24 | }; 25 | 26 | } /* namespace asteriskcpp */ 27 | #endif /* QUEUEMEMBERSTATUSEVENT_H_ */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/QueueStatusCompleteEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueStatusCompleteEvent.h 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef QUEUESTATUSCOMPLETEEVENT_H_ 9 | #define QUEUESTATUSCOMPLETEEVENT_H_ 10 | 11 | #include "ResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A QueueStatusCompleteEvent is triggered after the state of all queues has been reported in response 17 | * to a QueueStatusAction.

18 | * Since Asterisk 1.2 19 | * 20 | * @see org.asteriskjava.manager.action.QueueStatusAction 21 | * 22 | * @since 0.2 23 | */ 24 | class QueueStatusCompleteEvent : public ResponseEvent { 25 | public: 26 | QueueStatusCompleteEvent(const std::string & values); 27 | virtual ~QueueStatusCompleteEvent(); 28 | }; 29 | 30 | } /* namespace asteriskcpp */ 31 | #endif /* QUEUESTATUSCOMPLETEEVENT_H_ */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/QueueSummaryCompleteEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueSummaryCompleteEvent.h 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef QUEUESUMMARYCOMPLETEEVENT_H_ 9 | #define QUEUESUMMARYCOMPLETEEVENT_H_ 10 | 11 | #include "ResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A QueueSummaryCompleteEvent is triggered after the summary for all requested 17 | * queues has been reported in response to a QueueSummaryAction. 18 | * 19 | * @see QueueSummaryAction 20 | * @see QueueSummaryEvent 21 | * @since 0.3 22 | */ 23 | class QueueSummaryCompleteEvent : public ResponseEvent { 24 | public: 25 | QueueSummaryCompleteEvent(const std::string & values); 26 | virtual ~QueueSummaryCompleteEvent(); 27 | }; 28 | 29 | } /* namespace asteriskcpp */ 30 | #endif /* QUEUESUMMARYCOMPLETEEVENT_H_ */ 31 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ReceiveFaxEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ReceiveFaxEvent.h 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef RECEIVEFAXEVENT_H_ 9 | #define RECEIVEFAXEVENT_H_ 10 | 11 | #include "ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A ReceiveFaxEvent is an event of Digium's Fax For Asterisk add-on. 17 | */ 18 | class ReceiveFaxEvent : public ManagerEvent { 19 | public: 20 | ReceiveFaxEvent(const std::string & values); 21 | virtual ~ReceiveFaxEvent(); 22 | 23 | const std::string& getChannel() const; 24 | 25 | const std::string& getContext() const; 26 | 27 | const std::string& getExten() const; 28 | 29 | const std::string& getCallerId() const; 30 | 31 | const std::string& getRemoteStationId() const; 32 | 33 | const std::string& getLocalStationId() const; 34 | 35 | int getPagesTransferred() const; 36 | 37 | const std::string& getResolution() const; 38 | 39 | int getTransferRate() const; 40 | 41 | const std::string& getFileName() const; 42 | }; 43 | 44 | } /* namespace asteriskcpp */ 45 | #endif /* RECEIVEFAXEVENT_H_ */ 46 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ShutdownEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ShutdownEvent.h 3 | * 4 | * Created on: May 2, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef SHUTDOWNEVENT_H_ 9 | #define SHUTDOWNEVENT_H_ 10 | 11 | #include "ManagerEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A ShutdownEvent is triggered when the asterisk server is shut down or restarted.

17 | * It is implemented in asterisk.c 18 | * 19 | */ 20 | class ShutdownEvent : public ManagerEvent { 21 | public: 22 | ShutdownEvent(const std::string & values); 23 | virtual ~ShutdownEvent(); 24 | 25 | /** 26 | * Returns the kind of shutdown or restart. Possible values are "Uncleanly" and "Cleanly". A 27 | * shutdown is considered unclean if there are any active channels when the system is shut down. 28 | */ 29 | const std::string& getShutdown() const; 30 | 31 | /** 32 | * Returns true if the server has been restarted; false if it has 33 | * been halted. 34 | */ 35 | bool getRestart() const; 36 | }; 37 | 38 | } /* namespace asteriskcpp */ 39 | #endif /* SHUTDOWNEVENT_H_ */ 40 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/SkypeLicenseListCompleteEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeLicenseListCompleteEvent.h 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef SKYPELICENSELISTCOMPLETEEVENT_H_ 9 | #define SKYPELICENSELISTCOMPLETEEVENT_H_ 10 | 11 | #include "ResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A SkypeLicenseListCompleteEvent is triggered in response to a SkypeLicenseListAction when 17 | * all licenses have been reported.

18 | * It is implemented in chan_skype.c.

19 | * Available with Skype for Asterisk. 20 | * 21 | * @see org.asteriskjava.manager.action.SkypeLicenseListAction 22 | * @since 1.0.0 23 | */ 24 | class SkypeLicenseListCompleteEvent : public asteriskcpp::ResponseEvent { 25 | public: 26 | SkypeLicenseListCompleteEvent(const std::string & values); 27 | virtual ~SkypeLicenseListCompleteEvent(); 28 | }; 29 | 30 | } /* namespace asteriskcpp */ 31 | #endif /* SKYPELICENSELISTCOMPLETEEVENT_H_ */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/StatusCompleteEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * StatusCompleteEvent.h 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef STATUSCOMPLETEEVENT_H_ 9 | #define STATUSCOMPLETEEVENT_H_ 10 | 11 | #include "ResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A StatusCompleteEvent is triggered after the state of all channels has been reported in response 17 | * to a StatusAction. 18 | * 19 | * @see org.asteriskjava.manager.action.StatusAction 20 | * @see org.asteriskjava.manager.event.StatusEvent 21 | * 22 | */ 23 | class StatusCompleteEvent : public ResponseEvent { 24 | public: 25 | StatusCompleteEvent(const std::string & values); 26 | virtual ~StatusCompleteEvent(); 27 | 28 | /** 29 | * Returns the number of channels reported.

30 | * Available since Asterisk 1.6. 31 | * 32 | * @return the number of channels reported. 33 | * @since 1.0.0 34 | */ 35 | int getItems() const; 36 | }; 37 | 38 | } /* namespace asteriskcpp */ 39 | #endif /* STATUSCOMPLETEEVENT_H_ */ 40 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/UnholdEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UnholdEvent.h 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef UNHOLDEVENT_H_ 9 | #define UNHOLDEVENT_H_ 10 | 11 | #include "HoldEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * An UnholdEvent is triggered by the SIP channel driver when a channel is no 17 | * longer put on hold.

18 | * It is implemented in channels/chan_sip.c.

19 | * Available since Asterisk 1.2, as of Asterisk 1.6 only {@link org.asteriskjava.manager.event.HoldEvent} is sent 20 | * with the status set to false to indicate unhold. 21 | * 22 | * @see org.asteriskjava.manager.event.HoldEvent 23 | * @since 0.2 24 | * @deprecated as of 1.0.0, use {@link org.asteriskjava.manager.event.HoldEvent} and its 25 | * {@link #isUnhold()} method instead. 26 | */ 27 | 28 | class UnholdEvent : public HoldEvent { 29 | public: 30 | UnholdEvent(const std::string & values); 31 | virtual ~UnholdEvent(); 32 | }; 33 | 34 | } /* namespace asteriskcpp */ 35 | #endif /* UNHOLDEVENT_H_ */ 36 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/UnlinkEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UnlinkEvent.h 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef UNLINKEVENT_H_ 9 | #define UNLINKEVENT_H_ 10 | 11 | #include "BridgeEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * An UnlinkEvent is triggered when a link between two voice channels is discontinued, for example, 17 | * just before call completion.

18 | * It is implemented in channel.c 19 | * 20 | * @deprecated as of 1.0.0, use {@link org.asteriskjava.manager.event.BridgeEvent} and 21 | * {@link BridgeEvent#isUnlink()} instead 22 | */ 23 | class UnlinkEvent : public BridgeEvent { 24 | public: 25 | UnlinkEvent(const std::string & values); 26 | virtual ~UnlinkEvent(); 27 | }; 28 | 29 | } /* namespace asteriskcpp */ 30 | #endif /* UNLINKEVENT_H_ */ 31 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/UnparkedCallEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UnparkedCallEvent.h 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef UNPARKEDCALLEVENT_H_ 9 | #define UNPARKEDCALLEVENT_H_ 10 | 11 | #include "AbstractParkedCallEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A UnparkedCallEvent is triggered when a channel that has been parked is 17 | * resumed.

18 | * It is implemented in res/res_features.c

19 | * Available since Asterisk 1.2 20 | * 21 | * @since 0.2 22 | */ 23 | class UnparkedCallEvent : public AbstractParkedCallEvent { 24 | public: 25 | UnparkedCallEvent(const std::string & values); 26 | virtual ~UnparkedCallEvent(); 27 | 28 | /** 29 | * Returns the name of the channel that parked the call. 30 | */ 31 | const std::string& getFrom() const; 32 | }; 33 | 34 | } /* namespace asteriskcpp */ 35 | #endif /* UNPARKEDCALLEVENT_H_ */ 36 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/VoicemailUserEntryCompleteEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * VoicemailUserEntryCompleteEvent.h 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef VOICEMAILUSERENTRYCOMPLETEEVENT_H_ 9 | #define VOICEMAILUSERENTRYCOMPLETEEVENT_H_ 10 | 11 | #include "ResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A VoicemailUserEntryCompleteEvent is triggered after the details of all voicemail users has 17 | * been reported in response to a VoicemailUsersListAction.

18 | * It is implemented in apps/app_voicemail.c 19 | *

20 | * Available since Asterisk 1.6 21 | * 22 | * @see VoicemailUserEntryEvent 23 | * @see org.asteriskjava.manager.action.VoicemailUsersListAction 24 | * @since 1.0.0 25 | */ 26 | class VoicemailUserEntryCompleteEvent : public ResponseEvent { 27 | public: 28 | VoicemailUserEntryCompleteEvent(const std::string & values); 29 | virtual ~VoicemailUserEntryCompleteEvent(); 30 | }; 31 | 32 | } /* namespace asteriskcpp */ 33 | #endif /* VOICEMAILUSERENTRYCOMPLETEEVENT_H_ */ 34 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/events/ZapShowChannelsCompleteEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapShowChannelsCompleteEvent.h 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef ZAPSHOWCHANNELSCOMPLETEEVENT_H_ 9 | #define ZAPSHOWCHANNELSCOMPLETEEVENT_H_ 10 | 11 | #include "ResponseEvent.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * A ZapShowChannelsCompleteEvent is triggered after the state of all zap channels has been reported 17 | * in response to a ZapShowChannelsAction. 18 | * 19 | * @see org.asteriskjava.manager.action.ZapShowChannelsAction 20 | * @see org.asteriskjava.manager.event.ZapShowChannelsEvent 21 | * 22 | */ 23 | class ZapShowChannelsCompleteEvent : public ResponseEvent { 24 | public: 25 | ZapShowChannelsCompleteEvent(const std::string & values); 26 | virtual ~ZapShowChannelsCompleteEvent(); 27 | }; 28 | 29 | } /* namespace asteriskcpp */ 30 | #endif /* ZAPSHOWCHANNELSCOMPLETEEVENT_H_ */ 31 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/responses/ChallengeResponse.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ChallengeResponse.h 3 | * 4 | * Created on: Dec 31, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef CHALLENGERESPONSE_H_ 9 | #define CHALLENGERESPONSE_H_ 10 | 11 | #include "ManagerResponse.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Corresponds to a ChallengeAction and contains the challenge needed to log in using 17 | * challenge/response. 18 | * 19 | * @author augcampos 20 | * @version $Id$ 21 | * @see org.asteriskjava.manager.action.ChallengeAction 22 | * @see org.asteriskjava.manager.action.LoginAction 23 | */ 24 | class ChallengeResponse : public ManagerResponse { 25 | public: 26 | ChallengeResponse(const std::string& responseStr); 27 | virtual ~ChallengeResponse(); 28 | 29 | /** 30 | * Returns the challenge to use when creating the key for log in. 31 | * 32 | * @return the challenge to use when creating the key for log in. 33 | * @see org.asteriskjava.manager.action.LoginAction#setKey(String) 34 | */ 35 | std::string getChallenge() const; 36 | }; 37 | 38 | } 39 | #endif /* CHALLENGERESPONSE_H_ */ 40 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/responses/ExtensionStateResponse.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: ExtensionStateResponse.h 3 | * Author: augcampos 4 | * 5 | * Created on July 11, 2013, 2:54 AM 6 | */ 7 | 8 | #ifndef EXTENSIONSTATERESPONSE_H 9 | #define EXTENSIONSTATERESPONSE_H 10 | 11 | #include "asteriskcpp/manager/responses/ManagerResponse.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Response to an {@link org.asteriskjava.manager.action.ExtensionStateAction}. 17 | * 18 | * @author augcampos 19 | * @version $Id$ 20 | * @see org.asteriskjava.manager.action.ExtensionStateAction 21 | */ 22 | class ExtensionStateResponse : public ManagerResponse { 23 | public: 24 | ExtensionStateResponse(const std::string& responseStr); 25 | virtual ~ExtensionStateResponse(); 26 | 27 | 28 | const std::string& getExten() const; 29 | const std::string& getContext() const; 30 | const int getHint() const; 31 | const int getStatus() const; 32 | 33 | private: 34 | 35 | }; 36 | } 37 | #endif /* EXTENSIONSTATERESPONSE_H */ 38 | 39 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/responses/ManagerError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ManagerError.h 3 | * 4 | * Created on: Aug 20, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef MANAGERERROR_H_ 9 | #define MANAGERERROR_H_ 10 | 11 | #include "ManagerResponse.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Represents an "Response: Error" response received from the asterisk server. 17 | * The cause for the error is given in the message attribute. 18 | * 19 | */ 20 | class ManagerError : public ManagerResponse { 21 | public: 22 | ManagerError(const std::string& responseStr); 23 | virtual ~ManagerError(); 24 | }; 25 | 26 | } 27 | 28 | #endif /* MANAGERERROR_H_ */ 29 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/responses/ModuleCheckResponse.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: ModuleCheckResponse.h 3 | * Author: augcampos 4 | * 5 | * Created on July 16, 2013, 2:01 AM 6 | */ 7 | 8 | #ifndef MODULECHECKRESPONSE_H 9 | #define MODULECHECKRESPONSE_H 10 | 11 | #include "asteriskcpp/manager/responses/ManagerResponse.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Corresponds to a ModuleCheckAction and contains the version of the module. 17 | * 18 | * @author augcampos 19 | * @version $Id$ 20 | * @see org.asteriskjava.manager.action.ModuleCheckAction 21 | * @since 1.0.0 22 | */ 23 | class ModuleCheckResponse : public ManagerResponse { 24 | public: 25 | ModuleCheckResponse(const std::string& responseStr); 26 | virtual ~ModuleCheckResponse(); 27 | 28 | /** 29 | * Returns the version (svn revision) of the module. 30 | * 31 | * @return the version (svn revision) of the module. 32 | */ 33 | int getVersion() const; 34 | private: 35 | 36 | }; 37 | 38 | } 39 | #endif /* MODULECHECKRESPONSE_H */ 40 | 41 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/manager/responses/PingResponse.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: PingResponse.h 3 | * Author: augcampos 4 | * 5 | * Created on July 16, 2013, 2:28 AM 6 | */ 7 | 8 | #ifndef PINGRESPONSE_H 9 | #define PINGRESPONSE_H 10 | 11 | #include "asteriskcpp/manager/responses/ManagerResponse.h" 12 | 13 | namespace asteriskcpp { 14 | 15 | /** 16 | * Corresponds to a PingAction and contains an additional (yet useless) ping property. 17 | * 18 | * @author srt 19 | * @see org.asteriskjava.manager.action.PingAction 20 | */ 21 | class PingResponse : public ManagerResponse{ 22 | public: 23 | PingResponse(const std::string& responseStr); 24 | virtual ~PingResponse(); 25 | 26 | /** 27 | * Returns always "Pong". 28 | * 29 | * @return always "Pong". 30 | */ 31 | const std::string& getPing() const; 32 | 33 | /** 34 | * Timestamp for the response. 35 | * @return Timestamp as a String, e.g 1353747825.795863 36 | * @since 1.0.0 37 | */ 38 | const std::string& getTimestamp() const; 39 | private: 40 | 41 | }; 42 | } 43 | #endif /* PINGRESPONSE_H */ 44 | 45 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/structs/Thread.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Thread.h 3 | * 4 | * Created on: Jul 7, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef THREAD_H_ 9 | #define THREAD_H_ 10 | 11 | #include 12 | 13 | namespace asteriskcpp { 14 | 15 | class Thread { 16 | public: 17 | Thread(); 18 | virtual ~Thread(); 19 | 20 | virtual void start(); 21 | virtual void stop(); 22 | virtual void run(); 23 | virtual void operator ()(); 24 | 25 | protected: 26 | void setMustStop(volatile bool stop); 27 | bool isStoped(); 28 | 29 | private: 30 | boost::thread* m_thread; // The thread runs this object 31 | boost::mutex m_mustStopMutex; 32 | // Variable that indicates to stop and the mutex to synchronise "must stop" on (mutex explained later) 33 | 34 | bool m_mustStop; 35 | }; 36 | 37 | } 38 | 39 | #endif /* THREAD_H_ */ 40 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/utils/Base64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Base64.h 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef BASE64_H_ 9 | #define BASE64_H_ 10 | 11 | #include 12 | #include 13 | 14 | namespace asteriskcpp { 15 | 16 | class Base64 { 17 | public: 18 | static std::string encode(unsigned char const* bytes_to_encode, unsigned int in_len); 19 | static std::string encode(std::string const& decoded_string); 20 | static std::string decode(std::string const& encoded_string); 21 | }; 22 | 23 | } /* namespace asteriskcpp */ 24 | #endif /* BASE64_H_ */ 25 | -------------------------------------------------------------------------------- /asterisk-cpp/asteriskcpp/utils/StringUtils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * StringUtils.h 3 | * 4 | * Created on: Jul 7, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #ifndef STRINGUTILS_H_ 9 | #define STRINGUTILS_H_ 10 | 11 | #include 12 | #include 13 | #include 14 | #include 15 | #ifdef WIN32 16 | #include "timesupport.h" 17 | #endif 18 | 19 | namespace asteriskcpp { 20 | 21 | template 22 | static std::string convertToString(const T& t) { 23 | std::ostringstream stream; 24 | stream << t; 25 | return (stream.str()); 26 | } 27 | 28 | template 29 | static T convertFromString(const std::string& s) { 30 | std::istringstream stream(s); 31 | T t; 32 | stream >> t; 33 | return (t); 34 | } 35 | 36 | std::string search_and_replace(const std::string& str, const std::string &oldsubstr, const std::string &newsubstr); 37 | 38 | time_t stringToTime(const std::string& str, const std::string& format); 39 | 40 | bool stringToBool(const std::string& str); 41 | 42 | std::string str2Log(const std::string& str); 43 | 44 | } 45 | 46 | #endif /* STRINGUTILS_H_ */ 47 | -------------------------------------------------------------------------------- /asterisk-cpp/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | aclocal 3 | libtoolize --force --copy 4 | automake -a -c 5 | autoconf 6 | -------------------------------------------------------------------------------- /asterisk-cpp/configure.ac: -------------------------------------------------------------------------------- 1 | AC_INIT([asteriskcpp], [1.0.0], [augcampos@augcampos.com]) 2 | AM_INIT_AUTOMAKE 3 | AC_LANG(C++) 4 | AC_PROG_CXX 5 | AC_PROG_CC 6 | AC_PROG_CPP 7 | AC_PROG_INSTALL 8 | AC_PROG_LN_S 9 | AC_PROG_MAKE_SET 10 | AC_SUBST(LIBTOOL_DEPS) 11 | 12 | LT_INIT([disable-static]) 13 | 14 | AC_CONFIG_MACRO_DIR([m4]) 15 | 16 | AC_CHECK_LIB([log4cplus], [main]) 17 | AC_CHECK_LIB([ssl], [main]) 18 | AC_CHECK_LIB([boost_regex], [main]) 19 | AC_CHECK_LIB([boost_thread], [main]) 20 | AC_CHECK_LIB([boost_date_time], [main]) 21 | 22 | AC_CONFIG_FILES([Makefile]) 23 | AC_OUTPUT -------------------------------------------------------------------------------- /asterisk-cpp/examples/makeTest.sh: -------------------------------------------------------------------------------- 1 | # /bin/bash 2 | g++ -Wall Test.cpp -o teste -L/usr/local/lib/ -lasteriskcpp -lpthread 3 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/AsteriskVersion.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AsteriskVersion.cpp 3 | * 4 | * Created on: Jul 9, 2011 5 | * Author: augcampos 6 | */ 7 | #include "asteriskcpp/manager/AsteriskVersion.h" 8 | #include "asteriskcpp/utils/StringUtils.h" 9 | 10 | #include 11 | 12 | namespace asteriskcpp { 13 | 14 | void AsteriskVersion::setManagerValues(const std::string& value) { 15 | if (boost::istarts_with(value, "Asterisk Call Manager Proxy/")) { 16 | } else if (boost::istarts_with(value, "Asterisk Call Manager/")) { 17 | type = ASTERISK; 18 | } else if (boost::istarts_with(value, "Asterisk Manager Proxy/")) { 19 | } else if (boost::istarts_with(value, "OpenPBX Call Manager/")) { 20 | } else if (boost::istarts_with(value, "CallWeaver Call Manager/")) { 21 | } 22 | 23 | std::string ver = value.substr(value.length() - 3); 24 | managerVersion = convertFromString(ver); 25 | } 26 | 27 | std::string AsteriskVersion::toString() const { 28 | std::ostringstream rt; 29 | rt << "Asterisk Version: Manager " << type << ": " << managerVersion; 30 | return (rt.str()); 31 | } 32 | 33 | } 34 | 35 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/ManagerEventListener.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ManagerEventListener.cpp 3 | * 4 | * Created on: Jul 12, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/ManagerEventListener.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ManagerEventListener::~ManagerEventListener() { 13 | 14 | } 15 | 16 | void ManagerEventListener::onManagerEvent(const ManagerEvent& me) { 17 | 18 | } 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/ResponseBuilder.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ResponseBuilder.cpp 3 | * 4 | * Created on: Aug 1, 2011 5 | * Author: a-campos 6 | */ 7 | 8 | #include "asteriskcpp/manager/ResponseBuilder.h" 9 | #include "asteriskcpp/manager/responses/ManagerError.h" 10 | 11 | #include 12 | #include 13 | 14 | namespace asteriskcpp { 15 | 16 | ResponseBuilder::ResponseBuilder() { 17 | } 18 | 19 | ResponseBuilder::~ResponseBuilder() { 20 | } 21 | 22 | ManagerResponse* ResponseBuilder::buildResponse(ManagerAction* action, const std::string& responseStr) { 23 | if (boost::istarts_with(responseStr, "Response: Error")) { 24 | return (new ManagerError(responseStr)); 25 | } 26 | 27 | if (action != NULL) { 28 | return (action->expectedResponce(responseStr)); 29 | } 30 | 31 | return (new ManagerResponse(responseStr)); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/Writer.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Writer.cpp 3 | * 4 | * Created on: Jul 7, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/Writer.h" 9 | #include "asteriskcpp/utils/LogHandler.h" 10 | #include "asteriskcpp/utils/StringUtils.h" 11 | 12 | namespace asteriskcpp { 13 | 14 | Writer::Writer() { 15 | 16 | } 17 | 18 | Writer::~Writer() { 19 | } 20 | 21 | void Writer::start(TCPSocket* s, SynchronisedQueue* wq) { 22 | m_connectionSocket = s; 23 | m_WriteQueue = wq; 24 | Thread::start(); 25 | } 26 | 27 | void Writer::run() { 28 | std::string s_data = m_WriteQueue->Dequeue(); 29 | LOG_DEBUG_DATA("[SND:" << str2Log(s_data) << ":SND]"); 30 | m_connectionSocket->writeData(s_data.c_str(), (unsigned int) s_data.size()); 31 | } 32 | 33 | } 34 | 35 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/AbstractMeetMeMuteAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AbstractMeetMeMuteAction.cpp 3 | * 4 | * Created on: Aug 26, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/AbstractMeetMeMuteAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AbstractMeetMeMuteAction::AbstractMeetMeMuteAction() { 13 | } 14 | 15 | AbstractMeetMeMuteAction::AbstractMeetMeMuteAction(const std::string& meetMe, int userNum) { 16 | } 17 | 18 | AbstractMeetMeMuteAction::~AbstractMeetMeMuteAction() { 19 | } 20 | 21 | const std::string& AbstractMeetMeMuteAction::getMeetMe() const { 22 | return (getGetterValue(__FUNCTION__)); 23 | } 24 | 25 | void AbstractMeetMeMuteAction::setMeetMe(const std::string & meetMe) { 26 | setSetterValue(__FUNCTION__, meetMe); 27 | } 28 | 29 | int AbstractMeetMeMuteAction::getUserNum() const { 30 | return (getGetterValue(__FUNCTION__)); 31 | } 32 | 33 | void AbstractMeetMeMuteAction::setUserNum(int userNum) { 34 | setSetterValue(__FUNCTION__, userNum); 35 | } 36 | 37 | } /* namespace asterisk_cpp */ 38 | 39 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/AgentLogoffAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: AgentLogoffAction.cpp 3 | * Author: augcampos 4 | * 5 | * Created on June 20, 2013, 1:54 AM 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/AgentLogoffAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgentLogoffAction::AgentLogoffAction() { 13 | } 14 | 15 | AgentLogoffAction::AgentLogoffAction(const std::string& agent) { 16 | this->setAgent(agent); 17 | } 18 | 19 | AgentLogoffAction::AgentLogoffAction(const std::string& agent, bool soft) { 20 | this->setAgent(agent); 21 | this->setSoft(soft); 22 | } 23 | 24 | AgentLogoffAction::~AgentLogoffAction() { 25 | } 26 | 27 | const std::string& AgentLogoffAction::getAgent() const { 28 | return (getGetterValue(__FUNCTION__)); 29 | } 30 | 31 | void AgentLogoffAction::setAgent(const std::string& agent) { 32 | setSetterValue(__FUNCTION__, agent); 33 | } 34 | 35 | bool AgentLogoffAction::getSoft() const { 36 | return (getGetterValue(__FUNCTION__)); 37 | } 38 | 39 | void AgentLogoffAction::setSoft(bool soft) { 40 | setSetterValue(__FUNCTION__, soft); 41 | } 42 | 43 | } -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/AgentsAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: AgentsAction.cpp 3 | * Author: augcampos 4 | * 5 | * Created on June 20, 2013, 2:18 AM 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/AgentsAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgentsAction::AgentsAction() { 13 | } 14 | 15 | AgentsAction::~AgentsAction() { 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ChallengeAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ChallengeAction.cpp 3 | * 4 | * Created on: Aug 27, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ChallengeAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ChallengeAction::ChallengeAction(const std::string& authType) { 13 | this->setAuthType(authType); 14 | } 15 | 16 | ChallengeAction::~ChallengeAction() { 17 | } 18 | 19 | const std::string& ChallengeAction::getAuthType() const { 20 | return (getGetterValue(__FUNCTION__)); 21 | } 22 | 23 | void ChallengeAction::setAuthType(const std::string& authType) { 24 | setSetterValue(__FUNCTION__, authType); 25 | } 26 | 27 | }/* namespace asterisk_cpp */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/CommandAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * CommandAction.cpp 3 | * 4 | * Created on: Sep 1, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/CommandAction.h" 9 | #include "asteriskcpp/manager/responses/CommandResponse.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | CommandAction::CommandAction() { 14 | } 15 | 16 | CommandAction::CommandAction(const std::string & command) { 17 | this->setCommand(command); 18 | } 19 | 20 | CommandAction::~CommandAction() { 21 | } 22 | 23 | const std::string& CommandAction::getCommand() const { 24 | return (getGetterValue(__FUNCTION__)); 25 | } 26 | 27 | void CommandAction::setCommand(std::string command) { 28 | setSetterValue(__FUNCTION__, command); 29 | } 30 | 31 | ManagerResponse *CommandAction::expectedResponce(const std::string & response) { 32 | return (new CommandResponse(response)); 33 | } 34 | 35 | } /* namespace asteriskcpp */ 36 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ConfbridgeListAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeListAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ConfbridgeListAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ConfbridgeListAction::ConfbridgeListAction() { 13 | } 14 | 15 | ConfbridgeListAction::~ConfbridgeListAction() { 16 | } 17 | 18 | ConfbridgeListAction::ConfbridgeListAction(const std::string& conference) { 19 | this->setConference(conference); 20 | } 21 | 22 | void ConfbridgeListAction::setConference(const std::string& conference) { 23 | setSetterValue(__FUNCTION__, conference); 24 | } 25 | 26 | const std::string& ConfbridgeListAction::getConference() const { 27 | return (getGetterValue(__FUNCTION__)); 28 | } 29 | } //NAMESPACE 30 | 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ConfbridgeListRoomsAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeListRoomsAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ConfbridgeListRoomsAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ConfbridgeListRoomsAction::~ConfbridgeListRoomsAction(){ 13 | 14 | } 15 | 16 | } //NAMESPACE 17 | 18 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ConfbridgeLockAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeLockAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ConfbridgeLockAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | /** 13 | * Creates a new empty ConfbridgeLockAction. 14 | */ 15 | ConfbridgeLockAction::ConfbridgeLockAction() { 16 | } 17 | 18 | ConfbridgeLockAction::~ConfbridgeLockAction() { 19 | } 20 | 21 | /** 22 | * Creates a new ConfbridgeLockAction for a specific conference. 23 | */ 24 | ConfbridgeLockAction::ConfbridgeLockAction(const std::string& conference) { 25 | this->setConference(conference); 26 | } 27 | 28 | /** 29 | * Sets the id of the conference to lock. 30 | */ 31 | void ConfbridgeLockAction::setConference(const std::string& conference) { 32 | setSetterValue(__FUNCTION__, conference); 33 | } 34 | 35 | const std::string& ConfbridgeLockAction::getConference() const { 36 | return (getGetterValue(__FUNCTION__)); 37 | } 38 | } //NAMESPACE 39 | 40 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ConfbridgeStopRecordAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeStopRecordAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ConfbridgeStopRecordAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | /** 13 | * Creates a new empty ConfbridgeStopRecordAction. 14 | */ 15 | ConfbridgeStopRecordAction::ConfbridgeStopRecordAction() { 16 | } 17 | 18 | ConfbridgeStopRecordAction::~ConfbridgeStopRecordAction() { 19 | } 20 | 21 | /** 22 | * Creates a new ConfbridgeStopRecordAction for a specific conference. 23 | */ 24 | ConfbridgeStopRecordAction::ConfbridgeStopRecordAction(const std::string& conference) { 25 | this->setConference(conference); 26 | } 27 | 28 | /** 29 | * Sets the id of the conference for which to stop an audio recording. 30 | */ 31 | void ConfbridgeStopRecordAction::setConference(const std::string& conference) { 32 | setSetterValue(__FUNCTION__, conference); 33 | } 34 | 35 | const std::string& ConfbridgeStopRecordAction::getConference() const { 36 | return (getGetterValue(__FUNCTION__)); 37 | } 38 | } //NAMESPACE 39 | 40 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ConfbridgeUnlockAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ConfbridgeUnlockAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ConfbridgeUnlockAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | /** 13 | * Creates a new empty ConfbridgeUnlockAction. 14 | */ 15 | ConfbridgeUnlockAction::ConfbridgeUnlockAction() { 16 | } 17 | 18 | ConfbridgeUnlockAction::~ConfbridgeUnlockAction() { 19 | } 20 | 21 | /** 22 | * Creates a new ConfbridgeUnlockAction for a specific conference. 23 | */ 24 | ConfbridgeUnlockAction::ConfbridgeUnlockAction(const std::string& conference) { 25 | this->setConference(conference); 26 | } 27 | 28 | /** 29 | * Sets the id of the conference to unlock. 30 | */ 31 | void ConfbridgeUnlockAction::setConference(const std::string& conference) { 32 | setSetterValue(__FUNCTION__, conference); 33 | } 34 | 35 | const std::string& ConfbridgeUnlockAction::getConference() const { 36 | return (getGetterValue(__FUNCTION__)); 37 | } 38 | } //NAMESPACE 39 | 40 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/CoreSettingsAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * CoreSettingsAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/CoreSettingsAction.h" 9 | #include "asteriskcpp/manager/responses/CoreSettingsResponse.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | /** 14 | * Creates a new CoreSettingsAction. 15 | */ 16 | CoreSettingsAction::CoreSettingsAction() { 17 | } 18 | 19 | CoreSettingsAction::~CoreSettingsAction() { 20 | } 21 | 22 | 23 | ManagerResponse *CoreSettingsAction::expectedResponce(const std::string & response) { 24 | return (new CoreSettingsResponse(response)); 25 | } 26 | } //NAMESPACE 27 | 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/CoreShowChannelsAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * CoreShowChannelsAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/CoreShowChannelsAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | CoreShowChannelsAction::CoreShowChannelsAction() { 13 | } 14 | 15 | CoreShowChannelsAction::~CoreShowChannelsAction() { 16 | } 17 | } //NAMESPACE 18 | 19 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/CoreStatusAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * CoreStatusAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/CoreStatusAction.h" 9 | #include "asteriskcpp/manager/responses/CoreStatusResponse.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | /** 14 | * Creates a new CoreStatusAction. 15 | */ 16 | CoreStatusAction::CoreStatusAction() { 17 | } 18 | 19 | CoreStatusAction::~CoreStatusAction() { 20 | } 21 | 22 | ManagerResponse* CoreStatusAction::expectedResponce(const std::string & response) { 23 | return (new CoreStatusResponse(response)); 24 | } 25 | } //NAMESPACE 26 | 27 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/DahdiShowChannelsAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * DahdiShowChannelsAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/DahdiShowChannelsAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | /** 13 | * Creates a new DahdiShowChannelsAction. 14 | */ 15 | DahdiShowChannelsAction::DahdiShowChannelsAction() { 16 | } 17 | 18 | DahdiShowChannelsAction::~DahdiShowChannelsAction() { 19 | } 20 | } //NAMESPACE 21 | 22 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/EventsAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * EventsAction.cpp 3 | * 4 | * Created on: Aug 27, 2011 5 | * Author: augcampos 6 | */ 7 | #include "asteriskcpp/manager/actions/EventsAction.h" 8 | 9 | namespace asteriskcpp { 10 | 11 | EventsAction::EventsAction(const std::string& eventMask) { 12 | setEventMask(eventMask); 13 | } 14 | 15 | EventsAction::~EventsAction() { 16 | } 17 | 18 | const std::string& EventsAction::getEventMask() const { 19 | return (getGetterValue(__FUNCTION__)); 20 | } 21 | 22 | void EventsAction::setEventMask(const std::string& eventMask) { 23 | setSetterValue(__FUNCTION__, eventMask); 24 | } 25 | 26 | } //NS 27 | 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/HangupAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * HangupAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/HangupAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | HangupAction::HangupAction() { 13 | } 14 | 15 | HangupAction::~HangupAction() { 16 | } 17 | 18 | HangupAction::HangupAction(const std::string& channel) { 19 | this->setChannel(channel); 20 | } 21 | 22 | HangupAction::HangupAction(int cause, const std::string& channel) { 23 | this->setCause(cause); 24 | this->setChannel(channel); 25 | } 26 | 27 | const std::string& HangupAction::getChannel() const { 28 | return (getGetterValue(__FUNCTION__)); 29 | } 30 | 31 | void HangupAction::setChannel(const std::string& channel) { 32 | setSetterValue(__FUNCTION__, channel); 33 | } 34 | 35 | int HangupAction::getCause() const { 36 | return (getGetterValue(__FUNCTION__)); 37 | } 38 | 39 | void HangupAction::setCause(int cause) { 40 | setSetterValue(__FUNCTION__, cause); 41 | } 42 | } //NAMESPACE 43 | 44 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/IaxPeerListAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * IaxPeerListAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/IaxPeerListAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | IaxPeerListAction::IaxPeerListAction() { 13 | } 14 | 15 | IaxPeerListAction::~IaxPeerListAction() { 16 | } 17 | } //NAMESPACE 18 | 19 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ListCommandsAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ListCommandsAction.cpp 3 | * 4 | * Created on: Aug 27, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ListCommandsAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ListCommandsAction::ListCommandsAction() { 13 | } 14 | 15 | ListCommandsAction::~ListCommandsAction() { 16 | } 17 | 18 | } //NS 19 | 20 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/LocalOptimizeAwayAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * LocalOptimizeAwayAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/LocalOptimizeAwayAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | 13 | LocalOptimizeAwayAction::LocalOptimizeAwayAction() { 14 | } 15 | 16 | LocalOptimizeAwayAction::~LocalOptimizeAwayAction() { 17 | } 18 | 19 | LocalOptimizeAwayAction::LocalOptimizeAwayAction(const std::string& channel) { 20 | this->setChannel(channel); 21 | } 22 | 23 | 24 | const std::string& LocalOptimizeAwayAction::getChannel() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | 28 | void LocalOptimizeAwayAction::setChannel(const std::string& channel) { 29 | setSetterValue(__FUNCTION__, channel); 30 | } 31 | } //NAMESPACE 32 | 33 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/LogoffAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * LogoffAction.cpp 3 | * 4 | * Created on: Aug 27, 2011 5 | * Author: augcampos 6 | */ 7 | #include "asteriskcpp/manager/actions/LogoffAction.h" 8 | 9 | namespace asteriskcpp { 10 | 11 | LogoffAction::LogoffAction() { 12 | } 13 | 14 | LogoffAction::~LogoffAction() { 15 | } 16 | 17 | } //NS 18 | 19 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/MailboxCountAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MailboxCountAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/MailboxCountAction.h" 9 | #include "asteriskcpp/manager/responses/MailboxCountResponse.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | MailboxCountAction::MailboxCountAction() { 14 | } 15 | 16 | MailboxCountAction::~MailboxCountAction() { 17 | } 18 | 19 | MailboxCountAction::MailboxCountAction(const std::string& mailbox) { 20 | this->setMailbox(mailbox); 21 | } 22 | 23 | ManagerResponse *MailboxCountAction::expectedResponce(const std::string & response) { 24 | return (new MailboxCountResponse(response)); 25 | } 26 | 27 | const std::string& MailboxCountAction::getMailbox() const { 28 | return (getGetterValue(__FUNCTION__)); 29 | } 30 | 31 | void MailboxCountAction::setMailbox(const std::string& mailbox) { 32 | setSetterValue(__FUNCTION__, mailbox); 33 | } 34 | } //NAMESPACE 35 | 36 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/MailboxStatusAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MailboxStatusAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/MailboxStatusAction.h" 9 | #include "asteriskcpp/manager/responses/MailboxStatusResponse.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | MailboxStatusAction::MailboxStatusAction() { 14 | } 15 | 16 | MailboxStatusAction::~MailboxStatusAction() { 17 | } 18 | 19 | MailboxStatusAction::MailboxStatusAction(const std::string& mailbox) { 20 | this->setMailbox(mailbox); 21 | } 22 | 23 | ManagerResponse* MailboxStatusAction::expectedResponce(const std::string & response) { 24 | return (new MailboxStatusResponse(response)); 25 | } 26 | 27 | const std::string& MailboxStatusAction::getMailbox() const { 28 | return (getGetterValue(__FUNCTION__)); 29 | } 30 | 31 | void MailboxStatusAction::setMailbox(const std::string& mailbox) { 32 | setSetterValue(__FUNCTION__, mailbox); 33 | } 34 | } //NAMESPACE 35 | 36 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ManagerAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ManagerAction.cpp 3 | * 4 | * Created on: Aug 19, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ManagerAction.h" 9 | #include "asteriskcpp/utils/StringUtils.h" 10 | #include 11 | 12 | #include 13 | 14 | namespace asteriskcpp { 15 | 16 | ManagerAction::ManagerAction() { 17 | } 18 | 19 | const std::string ManagerAction::getAction() const { 20 | return (this->getClassName().substr(0, this->getClassName().size() - 6)); 21 | } 22 | 23 | ManagerResponse *ManagerAction::expectedResponce(const std::string & response) { 24 | return (new ManagerResponse(response)); 25 | } 26 | 27 | } 28 | 29 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/MeetMeMuteAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeMuteAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/MeetMeMuteAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | /** 13 | * Creates a new empty MeetMeMuteAction. 14 | */ 15 | MeetMeMuteAction::MeetMeMuteAction() { 16 | } 17 | 18 | MeetMeMuteAction::~MeetMeMuteAction() { 19 | } 20 | 21 | /** 22 | * Creates a new MeetMeMuteAction. 23 | * 24 | * @param meetMe the conference number. 25 | * @param userNum the index of the user in the conference. 26 | */ 27 | MeetMeMuteAction::MeetMeMuteAction(const std::string& meetMe, int userNum) { 28 | this->setMeetMe(meetMe); 29 | this->setUserNum(userNum); 30 | } 31 | } //NAMESPACE 32 | 33 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/MeetMeUnmuteAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeUnmuteAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/MeetMeUnmuteAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | /** 13 | * Creates a new empty MeetMeUnmuteAction. 14 | */ 15 | MeetMeUnmuteAction::MeetMeUnmuteAction() { 16 | } 17 | 18 | MeetMeUnmuteAction::~MeetMeUnmuteAction() { 19 | } 20 | 21 | /** 22 | * Creates a new MeetMeUnmuteAction. 23 | * 24 | * @param meetMe the conference number. 25 | * @param userNum the index of the user in the conference. 26 | */ 27 | MeetMeUnmuteAction::MeetMeUnmuteAction(const std::string& meetMe, int userNum) { 28 | this->setMeetMe(meetMe); 29 | this->setUserNum(userNum); 30 | } 31 | } //NAMESPACE 32 | 33 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ModuleLoadAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ModuleLoadAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ModuleLoadAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ModuleLoadAction::ModuleLoadAction() { 13 | } 14 | 15 | ModuleLoadAction::~ModuleLoadAction() { 16 | } 17 | 18 | ModuleLoadAction::ModuleLoadAction(const std::string& loadType) { 19 | this->setLoadType(loadType); 20 | } 21 | 22 | const std::string& ModuleLoadAction::getModule() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void ModuleLoadAction::setModule(const std::string& module) { 27 | setSetterValue(__FUNCTION__, module); 28 | } 29 | 30 | const std::string& ModuleLoadAction::getLoadType() const { 31 | return (getGetterValue(__FUNCTION__)); 32 | } 33 | 34 | void ModuleLoadAction::setLoadType(const std::string& loadType) { 35 | setSetterValue(__FUNCTION__, loadType); 36 | } 37 | } //NAMESPACE 38 | 39 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ParkedCallsAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ParkedCallsAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ParkedCallsAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | /** 13 | * Creates a new ParkedCallsAction. 14 | */ 15 | ParkedCallsAction::ParkedCallsAction() { 16 | } 17 | 18 | ParkedCallsAction::~ParkedCallsAction() { 19 | } 20 | } //NAMESPACE 21 | 22 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/PauseMonitorAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * PauseMonitorAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/PauseMonitorAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | PauseMonitorAction::PauseMonitorAction() { 13 | } 14 | 15 | PauseMonitorAction::~PauseMonitorAction() { 16 | } 17 | 18 | PauseMonitorAction::PauseMonitorAction(const std::string& channel) { 19 | this->setChannel(channel); 20 | } 21 | 22 | const std::string& PauseMonitorAction::getChannel() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void PauseMonitorAction::setChannel(const std::string& channel) { 27 | setSetterValue(__FUNCTION__, channel); 28 | } 29 | } //NAMESPACE 30 | 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/PingAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * PingAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/PingAction.h" 9 | #include "asteriskcpp/manager/responses/PingResponse.h" 10 | namespace asteriskcpp { 11 | 12 | PingAction::PingAction() { 13 | } 14 | 15 | PingAction::~PingAction() { 16 | } 17 | 18 | ManagerResponse* PingAction::expectedResponce(const std::string & response) { 19 | return (new PingResponse(response)); 20 | } 21 | } //NAMESPACE 22 | 23 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/PlayDtmfAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * PlayDtmfAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/PlayDtmfAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | PlayDtmfAction::PlayDtmfAction() { 13 | } 14 | 15 | PlayDtmfAction::~PlayDtmfAction() { 16 | } 17 | 18 | PlayDtmfAction::PlayDtmfAction(const std::string& digit) { 19 | this->setDigit(digit); 20 | } 21 | 22 | const std::string& PlayDtmfAction::getChannel() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void PlayDtmfAction::setChannel(const std::string& channel) { 27 | setSetterValue(__FUNCTION__, channel); 28 | } 29 | 30 | const std::string& PlayDtmfAction::getDigit() const { 31 | return (getGetterValue(__FUNCTION__)); 32 | } 33 | 34 | void PlayDtmfAction::setDigit(const std::string& digit) { 35 | setSetterValue(__FUNCTION__, digit); 36 | } 37 | } //NAMESPACE 38 | 39 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/QueueRemoveAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueRemoveAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/QueueRemoveAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | QueueRemoveAction::QueueRemoveAction() { 13 | } 14 | 15 | QueueRemoveAction::~QueueRemoveAction() { 16 | } 17 | 18 | QueueRemoveAction::QueueRemoveAction(const std::string& queue, const std::string& iface) { 19 | this->setQueue(queue); 20 | this->setInterface(iface); 21 | } 22 | 23 | const std::string& QueueRemoveAction::getQueue() const { 24 | return (getGetterValue(__FUNCTION__)); 25 | } 26 | 27 | void QueueRemoveAction::setQueue(const std::string& queue) { 28 | setSetterValue(__FUNCTION__, queue); 29 | } 30 | 31 | const std::string& QueueRemoveAction::getInterface() const { 32 | return (getGetterValue(__FUNCTION__)); 33 | } 34 | 35 | void QueueRemoveAction::setInterface(const std::string& iface) { 36 | setSetterValue(__FUNCTION__, iface); 37 | } 38 | } //NAMESPACE 39 | 40 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/QueueResetAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueResetAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/QueueResetAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | QueueResetAction::QueueResetAction() { 13 | } 14 | 15 | QueueResetAction::~QueueResetAction() { 16 | } 17 | 18 | QueueResetAction::QueueResetAction(const std::string& queue) { 19 | this->setQueue(queue); 20 | } 21 | 22 | const std::string& QueueResetAction::getQueue() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void QueueResetAction::setQueue(const std::string& queue) { 27 | setSetterValue(__FUNCTION__, queue); 28 | } 29 | } //NAMESPACE 30 | 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/QueueStatusAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueStatusAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/QueueStatusAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | QueueStatusAction::QueueStatusAction() { 13 | } 14 | 15 | QueueStatusAction::~QueueStatusAction() { 16 | } 17 | 18 | const std::string& QueueStatusAction::getQueue() const { 19 | return (getGetterValue(__FUNCTION__)); 20 | } 21 | 22 | void QueueStatusAction::setQueue(const std::string& queue) { 23 | setSetterValue(__FUNCTION__, queue); 24 | } 25 | 26 | const std::string& QueueStatusAction::getMember() const { 27 | return (getGetterValue(__FUNCTION__)); 28 | } 29 | 30 | void QueueStatusAction::setMember(const std::string& member) { 31 | setSetterValue(__FUNCTION__, member); 32 | } 33 | } //NAMESPACE 34 | 35 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/QueueSummaryAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueSummaryAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/QueueSummaryAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | QueueSummaryAction::QueueSummaryAction() { 13 | } 14 | 15 | QueueSummaryAction::~QueueSummaryAction() { 16 | } 17 | 18 | QueueSummaryAction::QueueSummaryAction(const std::string& queue) { 19 | this->setQueue(queue); 20 | } 21 | 22 | const std::string& QueueSummaryAction::getQueue() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void QueueSummaryAction::setQueue(const std::string& queue) { 27 | setSetterValue(__FUNCTION__, queue); 28 | } 29 | } //NAMESPACE 30 | 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/SendTextAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SendTextAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/SendTextAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | SendTextAction::SendTextAction() { 13 | } 14 | 15 | SendTextAction::~SendTextAction() { 16 | } 17 | 18 | SendTextAction::SendTextAction(const std::string& channel, const std::string& message) { 19 | this->setChannel(channel); 20 | this->setMessage(message); 21 | } 22 | 23 | const std::string& SendTextAction::getChannel() const { 24 | return (getGetterValue(__FUNCTION__)); 25 | } 26 | 27 | void SendTextAction::setChannel(const std::string& channel) { 28 | setSetterValue(__FUNCTION__, channel); 29 | } 30 | 31 | const std::string& SendTextAction::getMessage() const { 32 | return (getGetterValue(__FUNCTION__)); 33 | } 34 | 35 | void SendTextAction::setMessage(const std::string& message) { 36 | setSetterValue(__FUNCTION__, message); 37 | } 38 | } //NAMESPACE 39 | 40 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ShowDialplanAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ShowDialplanAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ShowDialplanAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ShowDialplanAction::ShowDialplanAction() { 13 | } 14 | 15 | ShowDialplanAction::~ShowDialplanAction() { 16 | } 17 | } //NAMESPACE 18 | 19 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/SipPeersAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SipPeersAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/SipPeersAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | SipPeersAction::SipPeersAction() { 13 | } 14 | 15 | SipPeersAction::~SipPeersAction() { 16 | } 17 | } //NAMESPACE 18 | 19 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/SipShowPeerAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SipShowPeerAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/SipShowPeerAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | SipShowPeerAction::SipShowPeerAction() { 13 | } 14 | 15 | SipShowPeerAction::~SipShowPeerAction() { 16 | } 17 | 18 | SipShowPeerAction::SipShowPeerAction(const std::string& peer) { 19 | this->setPeer(peer); 20 | } 21 | 22 | const std::string& SipShowPeerAction::getPeer() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void SipShowPeerAction::setPeer(const std::string& peer) { 27 | setSetterValue(__FUNCTION__, peer); 28 | } 29 | } //NAMESPACE 30 | 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/SipShowRegistryAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SipShowRegistryAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/SipShowRegistryAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | SipShowRegistryAction::SipShowRegistryAction() { 13 | } 14 | 15 | SipShowRegistryAction::~SipShowRegistryAction() { 16 | } 17 | } //NAMESPACE 18 | 19 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/SkypeBuddiesAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeBuddiesAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/SkypeBuddiesAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | SkypeBuddiesAction::SkypeBuddiesAction() { 13 | } 14 | 15 | SkypeBuddiesAction::~SkypeBuddiesAction() { 16 | } 17 | 18 | SkypeBuddiesAction::SkypeBuddiesAction(const std::string& user) { 19 | this->setUser(user); 20 | } 21 | 22 | const std::string& SkypeBuddiesAction::getUser() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void SkypeBuddiesAction::setUser(const std::string& user) { 27 | setSetterValue(__FUNCTION__, user); 28 | } 29 | } //NAMESPACE 30 | 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/SkypeLicenseListAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeLicenseListAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/SkypeLicenseListAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | /** 13 | * Creates a new SkypeLicenseListAction. 14 | */ 15 | SkypeLicenseListAction::SkypeLicenseListAction() { 16 | } 17 | 18 | SkypeLicenseListAction::~SkypeLicenseListAction() { 19 | } 20 | } //NAMESPACE 21 | 22 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/SkypeLicenseStatusAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeLicenseStatusAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/SkypeLicenseStatusAction.h" 9 | #include "asteriskcpp/manager/responses/SkypeLicenseStatusResponse.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | /** 14 | * Creates a new SkypeLicenseStatusAction. 15 | */ 16 | SkypeLicenseStatusAction::SkypeLicenseStatusAction() { 17 | } 18 | 19 | SkypeLicenseStatusAction::~SkypeLicenseStatusAction() { 20 | } 21 | 22 | ManagerResponse *SkypeLicenseStatusAction::expectedResponce(const std::string & response) { 23 | return (new SkypeLicenseStatusResponse(response)); 24 | } 25 | } //NAMESPACE 26 | 27 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/SkypeRemoveBuddyAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeRemoveBuddyAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/SkypeRemoveBuddyAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | SkypeRemoveBuddyAction::SkypeRemoveBuddyAction() { 13 | } 14 | 15 | SkypeRemoveBuddyAction::~SkypeRemoveBuddyAction() { 16 | } 17 | 18 | SkypeRemoveBuddyAction::SkypeRemoveBuddyAction(const std::string& user, const std::string& buddy) { 19 | this->setUser(user); 20 | this->setBuddy(buddy); 21 | } 22 | 23 | const std::string& SkypeRemoveBuddyAction::getUser() const { 24 | return (getGetterValue(__FUNCTION__)); 25 | } 26 | 27 | void SkypeRemoveBuddyAction::setUser(const std::string& user) { 28 | setSetterValue(__FUNCTION__, user); 29 | } 30 | 31 | const std::string& SkypeRemoveBuddyAction::getBuddy() const { 32 | return (getGetterValue(__FUNCTION__)); 33 | } 34 | 35 | void SkypeRemoveBuddyAction::setBuddy(const std::string& buddy) { 36 | setSetterValue(__FUNCTION__, buddy); 37 | } 38 | } //NAMESPACE 39 | 40 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/StopMonitorAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * StopMonitorAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/StopMonitorAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | StopMonitorAction::StopMonitorAction() { 13 | } 14 | 15 | StopMonitorAction::~StopMonitorAction() { 16 | } 17 | 18 | StopMonitorAction::StopMonitorAction(const std::string& channel) { 19 | this->setChannel(channel); 20 | } 21 | 22 | const std::string& StopMonitorAction::getChannel() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void StopMonitorAction::setChannel(const std::string& channel) { 27 | setSetterValue(__FUNCTION__, channel); 28 | } 29 | } //NAMESPACE 30 | 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/UnpauseMonitorAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UnpauseMonitorAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/UnpauseMonitorAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | UnpauseMonitorAction::UnpauseMonitorAction() { 13 | } 14 | 15 | UnpauseMonitorAction::UnpauseMonitorAction(const std::string& channel) { 16 | this->setChannel(channel); 17 | } 18 | 19 | UnpauseMonitorAction::~UnpauseMonitorAction() { 20 | } 21 | 22 | const std::string& UnpauseMonitorAction::getChannel() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void UnpauseMonitorAction::setChannel(const std::string& channel) { 27 | setSetterValue(__FUNCTION__, channel); 28 | } 29 | } //NAMESPACE 30 | 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/UserEventAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UserEventAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/UserEventAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | 13 | UserEventAction::UserEventAction() { 14 | } 15 | 16 | 17 | UserEventAction::UserEventAction(UserEvent userEvent) { 18 | //this->setUserEvent(userEvent); 19 | } 20 | 21 | UserEventAction::~UserEventAction() { 22 | } 23 | 24 | /* 25 | * TODO: Implement 26 | const UserEvent& UserEventAction::getUserEvent() const { 27 | return (getGetterValue( __FUNCTION__)); 28 | } 29 | 30 | void UserEventAction::setUserEvent(const UserEvent& userEvent) { 31 | setSetterValue(__FUNCTION__, userEvent); 32 | } 33 | */ 34 | } //NAMESPACE 35 | 36 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/VoicemailUsersListAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * VoicemailUsersListAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/VoicemailUsersListAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | VoicemailUsersListAction::VoicemailUsersListAction() { 13 | } 14 | 15 | VoicemailUsersListAction::~VoicemailUsersListAction() { 16 | } 17 | } //NAMESPACE 18 | 19 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ZapDialOffhookAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapDialOffhookAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ZapDialOffhookAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ZapDialOffhookAction::ZapDialOffhookAction() { 13 | } 14 | 15 | ZapDialOffhookAction::ZapDialOffhookAction(const std::string& number, int zapChannel) { 16 | this->setNumber(number); 17 | this->setZapChannel(zapChannel); 18 | } 19 | 20 | ZapDialOffhookAction::~ZapDialOffhookAction() { 21 | } 22 | 23 | int ZapDialOffhookAction::getZapChannel() const { 24 | return (getGetterValue(__FUNCTION__)); 25 | } 26 | 27 | void ZapDialOffhookAction::setZapChannel(int channel) { 28 | setSetterValue(__FUNCTION__, channel); 29 | } 30 | 31 | const std::string& ZapDialOffhookAction::getNumber() const { 32 | return (getGetterValue(__FUNCTION__)); 33 | } 34 | 35 | void ZapDialOffhookAction::setNumber(const std::string& number) { 36 | setSetterValue(__FUNCTION__, number); 37 | } 38 | } //NAMESPACE 39 | 40 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ZapDndOffAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapDndOffAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ZapDndOffAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ZapDndOffAction::ZapDndOffAction() { 13 | } 14 | 15 | ZapDndOffAction::ZapDndOffAction(int zapChannel) { 16 | this->setZapChannel(zapChannel); 17 | } 18 | 19 | ZapDndOffAction::~ZapDndOffAction() { 20 | } 21 | 22 | int ZapDndOffAction::getZapChannel() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void ZapDndOffAction::setZapChannel(int channel) { 27 | setSetterValue(__FUNCTION__, channel); 28 | } 29 | } //NAMESPACE 30 | 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ZapDndOnAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapDndOnAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ZapDndOnAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ZapDndOnAction::ZapDndOnAction() { 13 | } 14 | 15 | ZapDndOnAction::~ZapDndOnAction() { 16 | } 17 | 18 | ZapDndOnAction::ZapDndOnAction(int zapChannel) { 19 | this->setZapChannel(zapChannel); 20 | } 21 | 22 | int ZapDndOnAction::getZapChannel() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void ZapDndOnAction::setZapChannel(int channel) { 27 | setSetterValue(__FUNCTION__, channel); 28 | } 29 | } //NAMESPACE 30 | 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ZapHangupAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapHangupAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ZapHangupAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ZapHangupAction::ZapHangupAction() { 13 | } 14 | 15 | ZapHangupAction::ZapHangupAction(int zapChannel) { 16 | this->setZapChannel(zapChannel); 17 | } 18 | 19 | ZapHangupAction::~ZapHangupAction() { 20 | } 21 | 22 | int ZapHangupAction::getZapChannel() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | 26 | void ZapHangupAction::setZapChannel(int channel) { 27 | setSetterValue(__FUNCTION__, channel); 28 | } 29 | } //NAMESPACE 30 | 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ZapRestartAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapRestartAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ZapRestartAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ZapRestartAction::ZapRestartAction() { 13 | } 14 | 15 | ZapRestartAction::~ZapRestartAction() { 16 | } 17 | } //NAMESPACE 18 | 19 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ZapShowChannelsAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapShowChannelsAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ZapShowChannelsAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | /** 13 | * Creates a new ZapShowChannelsAction. 14 | */ 15 | ZapShowChannelsAction::ZapShowChannelsAction() { 16 | } 17 | 18 | ZapShowChannelsAction::~ZapShowChannelsAction() { 19 | } 20 | } //NAMESPACE 21 | 22 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/actions/ZapTransferAction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapTransferAction.h 3 | * 4 | * Created on: Jun 27, 2013 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/actions/ZapTransferAction.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ZapTransferAction::ZapTransferAction() { 13 | } 14 | 15 | ZapTransferAction::~ZapTransferAction() { 16 | } 17 | 18 | int ZapTransferAction::getZapChannel() const { 19 | return (getGetterValue(__FUNCTION__)); 20 | } 21 | 22 | void ZapTransferAction::setZapChannel(int channel) { 23 | setSetterValue(__FUNCTION__, channel); 24 | } 25 | } //NAMESPACE 26 | 27 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AbstractAgentEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AbstractAgentEvent.cpp 3 | * 4 | * Created on: Aug 26, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AbstractAgentEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AbstractAgentEvent::AbstractAgentEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AbstractAgentEvent::~AbstractAgentEvent() { 17 | } 18 | 19 | const std::string& AbstractAgentEvent::getChannel() const { 20 | return (getProperty("Channel")); 21 | } 22 | 23 | const std::string& AbstractAgentEvent::getQueue() const { 24 | return (getProperty("Queue")); 25 | } 26 | 27 | const std::string& AbstractAgentEvent::getMember() const { 28 | return (getProperty("Member")); 29 | } 30 | 31 | const std::string& AbstractAgentEvent::getMemberName() const { 32 | return (getProperty("MemberName")); 33 | } 34 | 35 | std::map AbstractAgentEvent::getVariables() const { 36 | //TODO implement 37 | std::map rt; 38 | return (rt); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AbstractChannelEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AbstractChannelEvent.cpp 3 | * 4 | * Created on: Aug 26, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AbstractChannelEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AbstractChannelEvent::AbstractChannelEvent(const std::string& values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AbstractChannelEvent::~AbstractChannelEvent() { 17 | 18 | } 19 | 20 | const std::string& AbstractChannelEvent::getChannel() const { 21 | return (getProperty("Channel")); 22 | } 23 | 24 | const std::string& AbstractChannelEvent::getCallerId() const { 25 | return (getProperty("CallerId")); 26 | } 27 | 28 | const std::string& AbstractChannelEvent::getCallerIdNum() const { 29 | return (getProperty("CallerIdNum")); 30 | } 31 | 32 | const std::string& AbstractChannelEvent::getCallerIdName() const { 33 | return (getProperty("CallerIdName")); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AbstractFaxEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AbstractFaxEvent.cpp 3 | * 4 | * Created on: Aug 26, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AbstractFaxEvent.h" 9 | 10 | #include "asteriskcpp/utils/StringUtils.h" 11 | 12 | namespace asteriskcpp { 13 | 14 | AbstractFaxEvent::AbstractFaxEvent(const std::string& values) : 15 | ManagerEvent(values) { 16 | } 17 | 18 | AbstractFaxEvent::~AbstractFaxEvent() { 19 | } 20 | 21 | const std::string& AbstractFaxEvent::getChannelType() const { 22 | return (getProperty("ChannelType")); 23 | } 24 | 25 | int AbstractFaxEvent::getFaxSession() const { 26 | return (convertFromString(getProperty("FaxSession"))); 27 | } 28 | 29 | } //NS 30 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AbstractMeetMeEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AbstractMeetMeEvent.cpp 3 | * 4 | * Created on: Aug 24, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AbstractMeetMeEvent.h" 9 | #include "asteriskcpp/utils/StringUtils.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | AbstractMeetMeEvent::AbstractMeetMeEvent(const std::string& values) : 14 | ManagerEvent(values) { 15 | } 16 | 17 | AbstractMeetMeEvent::~AbstractMeetMeEvent() { 18 | } 19 | 20 | const std::string& AbstractMeetMeEvent::getChannel() const { 21 | return (getProperty("Channel")); 22 | } 23 | 24 | const std::string& AbstractMeetMeEvent::getUniqueId() const { 25 | return (getProperty("UniqueId")); 26 | } 27 | 28 | const std::string& AbstractMeetMeEvent::getMeetMe() const { 29 | return (getProperty("MeetMe")); 30 | } 31 | 32 | int AbstractMeetMeEvent::getUserNum() const { 33 | return (convertFromString(getProperty("UserNum"))); 34 | } 35 | 36 | } /* namespace asterisk_cpp */ 37 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AbstractMonitorEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AbstractMonitorEvent.cpp 3 | * 4 | * Created on: Jan 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AbstractMonitorEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AbstractMonitorEvent::AbstractMonitorEvent(const std::string& values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AbstractMonitorEvent::~AbstractMonitorEvent() { 17 | 18 | } 19 | 20 | const std::string& AbstractMonitorEvent::getChannel() const { 21 | return (getProperty("Channel")); 22 | } 23 | 24 | const std::string& AbstractMonitorEvent::getUniqueId() const { 25 | return (getProperty("UniqueId")); 26 | } 27 | 28 | } /* namespace asteriskcpp */ 29 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AbstractParkedCallEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AbstractParkedCallEvent.cpp 3 | * 4 | * Created on: Jan 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AbstractParkedCallEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AbstractParkedCallEvent::AbstractParkedCallEvent(const std::string& values) : 13 | AbstractChannelEvent(values) { 14 | } 15 | 16 | AbstractParkedCallEvent::~AbstractParkedCallEvent() { 17 | } 18 | 19 | const std::string& AbstractParkedCallEvent::getExten() const { 20 | return (getProperty("Exten")); 21 | } 22 | 23 | const std::string& AbstractParkedCallEvent::getParkingLot() const { 24 | return (getProperty("ParkingLot")); 25 | } 26 | 27 | } /* namespace asteriskcpp */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AbstractQueueMemberEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AbstractQueueMemberEvent.cpp 3 | * 4 | * Created on: Jan 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AbstractQueueMemberEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AbstractQueueMemberEvent::AbstractQueueMemberEvent(const std::string& values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AbstractQueueMemberEvent::~AbstractQueueMemberEvent() { 17 | } 18 | 19 | const std::string& AbstractQueueMemberEvent::getQueue() const { 20 | return (getProperty("Queue")); 21 | } 22 | 23 | const std::string& AbstractQueueMemberEvent::getLocation() const { 24 | return (getProperty("Location")); 25 | } 26 | 27 | const std::string& AbstractQueueMemberEvent::getMemberName() const { 28 | return (getProperty("MemberName")); 29 | } 30 | 31 | } /* namespace asteriskcpp */ 32 | 33 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AbstractRtcpEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AbstractRtcpEvent.cpp 3 | * 4 | * Created on: Jan 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AbstractRtcpEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AbstractRtcpEvent::AbstractRtcpEvent(const std::string& values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AbstractRtcpEvent::~AbstractRtcpEvent() { 17 | 18 | } 19 | 20 | long AbstractRtcpEvent::getFractionLost() const { 21 | return (convertFromString(getProperty("FractionLost"))); 22 | 23 | } 24 | 25 | double AbstractRtcpEvent::getIaJitter() const { 26 | return (convertFromString(getProperty("IaJitter"))); 27 | 28 | } 29 | 30 | double AbstractRtcpEvent::getDlSr() const { 31 | return (convertFromString(getProperty("DlSr"))); 32 | 33 | } 34 | 35 | } /* namespace asteriskcpp */ 36 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AbstractRtpStatEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AbstractRtpStatEvent.cpp 3 | * 4 | * Created on: Feb 10, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AbstractRtpStatEvent.h" 9 | #include "asteriskcpp/utils/StringUtils.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | AbstractRtpStatEvent::AbstractRtpStatEvent(const std::string& values) : 14 | ManagerEvent(values) { 15 | 16 | } 17 | 18 | AbstractRtpStatEvent::~AbstractRtpStatEvent() { 19 | } 20 | 21 | long AbstractRtpStatEvent::getSsrc() const { 22 | return (convertFromString(getProperty("Ssrc"))); 23 | } 24 | 25 | long AbstractRtpStatEvent::getLostPackets() const { 26 | return (convertFromString(getProperty("LostPackets"))); 27 | } 28 | 29 | double AbstractRtpStatEvent::getJitter() const { 30 | return (convertFromString(getProperty("LostPackets"))); 31 | } 32 | 33 | } /* namespace asteriskcpp */ 34 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AgentCallbackLoginEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentCallbackLoginEvent.cpp 3 | * 4 | * Created on: Sep 5, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AgentCallbackLoginEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgentCallbackLoginEvent::AgentCallbackLoginEvent(const std::string& values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AgentCallbackLoginEvent::~AgentCallbackLoginEvent() { 17 | } 18 | 19 | const std::string& AgentCallbackLoginEvent::getAgent() const { 20 | return (getProperty("Agent")); 21 | } 22 | 23 | const std::string& AgentCallbackLoginEvent::getLoginChan() const { 24 | return (getProperty("Loginchan")); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AgentCallbackLogoffEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentCallbackLogoffEvent.cpp 3 | * 4 | * Created on: Sep 5, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AgentCallbackLogoffEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgentCallbackLogoffEvent::AgentCallbackLogoffEvent(const std::string& values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AgentCallbackLogoffEvent::~AgentCallbackLogoffEvent() { 17 | } 18 | 19 | const std::string& AgentCallbackLogoffEvent::getAgent() const { 20 | return (getProperty("Agent")); 21 | } 22 | 23 | const std::string& AgentCallbackLogoffEvent::getLoginChan() const { 24 | return (getProperty("Loginchan")); 25 | } 26 | 27 | const std::string& AgentCallbackLogoffEvent::getLoginTime() const { 28 | return (getProperty("Logintime")); 29 | } 30 | 31 | const std::string& AgentCallbackLogoffEvent::getReason() const { 32 | return (getProperty("Reason")); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AgentCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentCompleteEvent.cpp 3 | * 4 | * Created on: Sep 5, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AgentCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgentCompleteEvent::AgentCompleteEvent(const std::string& values) : 13 | AbstractAgentEvent(values) { 14 | } 15 | 16 | AgentCompleteEvent::~AgentCompleteEvent() { 17 | } 18 | 19 | const std::string& AgentCompleteEvent::getHoldTime() const { 20 | return (getProperty("HoldTime")); 21 | } 22 | 23 | const std::string& AgentCompleteEvent::getTalkTime() const { 24 | return (getProperty("TalkTime")); 25 | } 26 | 27 | const std::string& AgentCompleteEvent::getReason() const { 28 | return (getProperty("Reason")); 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AgentConnectEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentConnectEvent.cpp 3 | * 4 | * Created on: Sep 5, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AgentConnectEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgentConnectEvent::AgentConnectEvent(const std::string & values) : 13 | AbstractAgentEvent(values) { 14 | } 15 | 16 | AgentConnectEvent::~AgentConnectEvent() { 17 | } 18 | 19 | const std::string& AgentConnectEvent::getHoldTime() const { 20 | return (getProperty("HoldTime")); 21 | } 22 | 23 | const std::string& AgentConnectEvent::getBridgedChannel() const { 24 | return (getProperty("BridgedChannel")); 25 | } 26 | 27 | const std::string& AgentConnectEvent::getRingtime() const { 28 | return (getProperty("Ringtime")); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AgentDumpEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentDumpEvent.cpp 3 | * 4 | * Created on: Sep 6, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AgentDumpEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgentDumpEvent::AgentDumpEvent(const std::string & values) : 13 | AbstractAgentEvent(values) { 14 | } 15 | 16 | AgentDumpEvent::~AgentDumpEvent() { 17 | } 18 | 19 | } //NS 20 | 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AgentLoginEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentLoginEvent.cpp 3 | * 4 | * Created on: Sep 6, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AgentLoginEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgentLoginEvent::AgentLoginEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AgentLoginEvent::~AgentLoginEvent() { 17 | } 18 | 19 | const std::string& AgentLoginEvent::getAgent() const { 20 | return (getProperty("Agent")); 21 | } 22 | 23 | const std::string& AgentLoginEvent::getChannel() const { 24 | return (getProperty("Channel")); 25 | } 26 | 27 | } //NS 28 | 29 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AgentLogoffEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentLogoffEvent.cpp 3 | * 4 | * Created on: Sep 6, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AgentLogoffEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgentLogoffEvent::AgentLogoffEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AgentLogoffEvent::~AgentLogoffEvent() { 17 | } 18 | 19 | const std::string& AgentLogoffEvent::getAgent() const { 20 | return (getProperty("Agent")); 21 | } 22 | 23 | const std::string& AgentLogoffEvent::getLoginTime() const { 24 | return (getProperty("Logintime")); 25 | } 26 | 27 | } //NS 28 | 29 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AgentRingNoAnswer.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentRingNoAnswer.cpp 3 | * 4 | * Created on: Sep 6, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AgentRingNoAnswer.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgentRingNoAnswer::AgentRingNoAnswer(const std::string & values) : 13 | AbstractAgentEvent(values) { 14 | } 15 | 16 | AgentRingNoAnswer::~AgentRingNoAnswer() { 17 | } 18 | 19 | const std::string& AgentRingNoAnswer::getRingtime() const { 20 | return (getProperty("Ringtime")); 21 | } 22 | 23 | } //NS 24 | 25 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AgentsCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AgentsCompleteEvent.cpp 3 | * 4 | * Created on: Sep 6, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AgentsCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgentsCompleteEvent::AgentsCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | } 15 | 16 | AgentsCompleteEvent::~AgentsCompleteEvent() { 17 | } 18 | 19 | } //NS 20 | 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AgiExecEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AgiExecEvent.cpp 3 | * 4 | * Created on: Sep 6, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AgiExecEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AgiExecEvent::AgiExecEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AgiExecEvent::~AgiExecEvent() { 17 | } 18 | 19 | const std::string& AgiExecEvent::getChannel() const { 20 | return (getProperty("Channel")); 21 | } 22 | 23 | const std::string& AgiExecEvent::getSubEvent() const { 24 | return (getProperty("SubEvent")); 25 | } 26 | 27 | const std::string& AgiExecEvent::getCommandId() const { 28 | return (getProperty("CommandId")); 29 | } 30 | 31 | const std::string& AgiExecEvent::getCommand() const { 32 | return (getProperty("Command")); 33 | } 34 | 35 | const std::string& AgiExecEvent::getResultCode() const { 36 | return (getProperty("ResultCode")); 37 | } 38 | 39 | const std::string& AgiExecEvent::getResult() const { 40 | return (getProperty("Result")); 41 | } 42 | 43 | } //NS 44 | 45 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AlarmClearEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AlarmClearEvent.cpp 3 | * 4 | * Created on: Sep 6, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AlarmClearEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AlarmClearEvent::AlarmClearEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AlarmClearEvent::~AlarmClearEvent() { 17 | } 18 | 19 | const std::string& AlarmClearEvent::getChannel() const { 20 | return (getProperty("Channel")); 21 | } 22 | 23 | } //NS 24 | 25 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/AlarmEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * AlarmEvent.cpp 3 | * 4 | * Created on: Sep 6, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/AlarmEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | AlarmEvent::AlarmEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | AlarmEvent::~AlarmEvent() { 17 | } 18 | 19 | const std::string& AlarmEvent::getAlarm() const { 20 | return (getProperty("Alarm")); 21 | } 22 | 23 | const std::string& AlarmEvent::getChannel() const { 24 | return (getProperty("Channel")); 25 | } 26 | 27 | } //NS 28 | 29 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/DahdiShowChannelsCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * DahdiShowChannelsCompleteEvent.cpp 3 | * 4 | * Created on: Feb 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/DahdiShowChannelsCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | DahdiShowChannelsCompleteEvent::DahdiShowChannelsCompleteEvent(const std::string& values) : 13 | ResponseEvent(values) { 14 | 15 | } 16 | 17 | DahdiShowChannelsCompleteEvent::~DahdiShowChannelsCompleteEvent() { 18 | } 19 | 20 | int DahdiShowChannelsCompleteEvent::getItems() const { 21 | return (getProperty("Items")); 22 | } 23 | 24 | const std::string& DahdiShowChannelsCompleteEvent::getEventlist() const { 25 | return (getProperty("Eventlist")); 26 | } 27 | 28 | int DahdiShowChannelsCompleteEvent::getListitems() const { 29 | return (getProperty("Listitems")); 30 | } 31 | 32 | }/* namespace asteriskcpp */ 33 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/JabberEventEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * JabberEventEvent.cpp 3 | * 4 | * Created on: Aug 23, 2011 5 | * Author: augcampos 6 | */ 7 | #include "asteriskcpp/manager/events/JabberEventEvent.h" 8 | 9 | namespace asteriskcpp { 10 | 11 | JabberEventEvent::JabberEventEvent(const std::string & values) : 12 | ManagerEvent(values) { 13 | 14 | } 15 | 16 | JabberEventEvent::~JabberEventEvent() { 17 | } 18 | 19 | const std::string& JabberEventEvent::getAccount() const { 20 | return (getProperty("Account")); 21 | } 22 | 23 | const std::string& JabberEventEvent::getPacket() const { 24 | return (getProperty("Packet")); 25 | } 26 | 27 | } /* namespace asterisk_cpp */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/JoinEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * JoinEvent.cpp 3 | * 4 | * Created on: Aug 23, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/JoinEvent.h" 9 | #include "asteriskcpp/utils/StringUtils.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | JoinEvent::JoinEvent(const std::string & values) : 14 | QueueEvent(values) { 15 | } 16 | 17 | JoinEvent::~JoinEvent() { 18 | } 19 | 20 | const std::string& JoinEvent::getCallerId() const { 21 | return (getProperty("CallerId")); 22 | } 23 | 24 | const std::string& JoinEvent::getCallerIdNum() const { 25 | return (getProperty("CallerIdNum")); 26 | } 27 | 28 | const std::string& JoinEvent::getCallerIdName() const { 29 | return (getProperty("CallerIdName")); 30 | } 31 | 32 | int JoinEvent::getPosition() const { 33 | return (convertFromString(getProperty("Position"))); 34 | } 35 | 36 | } /* namespace asterisk_cpp */ 37 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/LeaveEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * LeaveEvent.cpp 3 | * 4 | * Created on: Aug 24, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/LeaveEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | LeaveEvent::LeaveEvent(const std::string & values) : 13 | QueueEvent(values) { 14 | } 15 | 16 | LeaveEvent::~LeaveEvent() { 17 | } 18 | 19 | } /* namespace asterisk_cpp */ 20 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/LinkEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * LinkEvent.cpp 3 | * 4 | * Created on: Aug 24, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/LinkEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | LinkEvent::LinkEvent(const std::string & values) : 13 | BridgeEvent(values) { 14 | } 15 | 16 | LinkEvent::~LinkEvent() { 17 | } 18 | 19 | } /* namespace asterisk_cpp */ 20 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/LogChannelEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * LogChannelEvent.cpp 3 | * 4 | * Created on: Aug 24, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/LogChannelEvent.h" 9 | #include "asteriskcpp/utils/StringUtils.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | LogChannelEvent::LogChannelEvent(const std::string & values) : 14 | ManagerEvent(values) { 15 | } 16 | 17 | LogChannelEvent::~LogChannelEvent() { 18 | } 19 | 20 | const std::string& LogChannelEvent::getChannel() const { 21 | return (getProperty("Channel")); 22 | } 23 | 24 | bool LogChannelEvent::getEnabled() const { 25 | return (getProperty("Enabled")); 26 | } 27 | 28 | int LogChannelEvent::getReason() const { 29 | return (convertFromString(getProperty("Reason"))); 30 | } 31 | 32 | const std::string& LogChannelEvent::getReasonTxt() const { 33 | return (getProperty("ReasonTxt")); 34 | } 35 | 36 | } /* namespace asterisk_cpp */ 37 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/MeetMeEndEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeEndEvent.cpp 3 | * 4 | * Created on: Aug 24, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/MeetMeEndEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MeetMeEndEvent::MeetMeEndEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | MeetMeEndEvent::~MeetMeEndEvent() { 17 | } 18 | 19 | const std::string& MeetMeEndEvent::getMeetMe() const { 20 | return (getProperty("MeetMe")); 21 | } 22 | 23 | }/* namespace asterisk_cpp */ 24 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/MeetMeJoinEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeJoinEvent.cpp 3 | * 4 | * Created on: Aug 24, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/MeetMeJoinEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MeetMeJoinEvent::MeetMeJoinEvent(const std::string & values) : 13 | AbstractMeetMeEvent(values) { 14 | } 15 | 16 | MeetMeJoinEvent::~MeetMeJoinEvent() { 17 | } 18 | 19 | const std::string& MeetMeJoinEvent::getCallerIdNum() const { 20 | return (getProperty("CallerIdNum")); 21 | } 22 | 23 | const std::string& MeetMeJoinEvent::getCallerIdName() const { 24 | return (getProperty("CallerIdName")); 25 | } 26 | 27 | } /* namespace asterisk_cpp */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/MeetMeLeaveEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeLeaveEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/MeetMeLeaveEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MeetMeLeaveEvent::MeetMeLeaveEvent(const std::string & values) : 13 | AbstractMeetMeEvent(values) { 14 | } 15 | 16 | MeetMeLeaveEvent::~MeetMeLeaveEvent() { 17 | } 18 | 19 | const std::string& MeetMeLeaveEvent::getCallerIdName() const { 20 | return (getProperty("CallerIdName")); 21 | } 22 | 23 | const std::string& MeetMeLeaveEvent::getCallerIdNum() const { 24 | return (getProperty("CallerIdNum")); 25 | } 26 | 27 | long MeetMeLeaveEvent::getDuration() const { 28 | return (getProperty("Duration")); 29 | } 30 | } /* namespace asteriskcpp */ 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/MeetMeMuteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeMuteEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/MeetMeMuteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MeetMeMuteEvent::MeetMeMuteEvent(const std::string & values) : 13 | AbstractMeetMeEvent(values) { 14 | } 15 | 16 | MeetMeMuteEvent::~MeetMeMuteEvent() { 17 | } 18 | 19 | bool MeetMeMuteEvent::getStatus() const { 20 | return (getProperty("Status")); 21 | } 22 | 23 | }/* namespace asteriskcpp */ 24 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/MeetMeStopTalkingEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeStopTalkingEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/MeetMeStopTalkingEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MeetMeStopTalkingEvent::MeetMeStopTalkingEvent(const std::string & values) : 13 | MeetMeTalkingEvent(values) { 14 | 15 | } 16 | 17 | MeetMeStopTalkingEvent::~MeetMeStopTalkingEvent() { 18 | } 19 | 20 | } /* namespace asteriskcpp */ 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/MeetMeTalkingEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeTalkingEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/MeetMeTalkingEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MeetMeTalkingEvent::MeetMeTalkingEvent(const std::string& values) : 13 | AbstractMeetMeEvent(values) { 14 | } 15 | 16 | MeetMeTalkingEvent::~MeetMeTalkingEvent() { 17 | } 18 | 19 | bool MeetMeTalkingEvent::getStatus() const { 20 | return (getProperty("Status")); 21 | } 22 | 23 | } /* namespace asteriskcpp */ 24 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/MeetMeTalkingRequestEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MeetMeTalkingRequestEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/MeetMeTalkingRequestEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MeetMeTalkingRequestEvent::MeetMeTalkingRequestEvent(const std::string & values) : 13 | AbstractMeetMeEvent(values) { 14 | } 15 | 16 | MeetMeTalkingRequestEvent::~MeetMeTalkingRequestEvent() { 17 | } 18 | 19 | bool MeetMeTalkingRequestEvent::getStatus() const { 20 | return (getProperty("Status")); 21 | } 22 | } /* namespace asteriskcpp */ 23 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/MessageWaitingEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MessageWaitingEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/MessageWaitingEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MessageWaitingEvent::MessageWaitingEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | MessageWaitingEvent::~MessageWaitingEvent() { 17 | } 18 | 19 | const std::string& MessageWaitingEvent::getMailbox() const { 20 | return (getGetterValue(__FUNCTION__)); 21 | } 22 | 23 | int MessageWaitingEvent::getWaiting() const { 24 | return (getGetterValue(__FUNCTION__)); 25 | } 26 | 27 | int MessageWaitingEvent::getNew() const { 28 | return (getGetterValue(__FUNCTION__)); 29 | } 30 | 31 | int MessageWaitingEvent::getOld() const { 32 | return (getGetterValue(__FUNCTION__)); 33 | } 34 | } /* namespace asteriskcpp */ 35 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/MonitorStartEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MonitorStartEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/MonitorStartEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MonitorStartEvent::MonitorStartEvent(const std::string & values) : 13 | AbstractMonitorEvent(values) { 14 | 15 | } 16 | 17 | MonitorStartEvent::~MonitorStartEvent() { 18 | } 19 | 20 | } /* namespace asteriskcpp */ 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/MonitorStopEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * MonitorStopEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/MonitorStopEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MonitorStopEvent::MonitorStopEvent(const std::string & values) : 13 | AbstractMonitorEvent(values) { 14 | } 15 | 16 | MonitorStopEvent::~MonitorStopEvent() { 17 | } 18 | 19 | } /* namespace asteriskcpp */ 20 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/NewAccountCodeEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * NewAccountCodeEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/NewAccountCodeEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | NewAccountCodeEvent::NewAccountCodeEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | NewAccountCodeEvent::~NewAccountCodeEvent() { 17 | } 18 | 19 | const std::string& NewAccountCodeEvent::getChannel() const { 20 | return (getProperty("Channel")); 21 | } 22 | 23 | const std::string& NewAccountCodeEvent::getUniqueId() const { 24 | return (getProperty("UniqueId")); 25 | 26 | } 27 | 28 | const std::string& NewAccountCodeEvent::getAccountCode() const { 29 | return (getProperty("AccountCode")); 30 | 31 | } 32 | 33 | const std::string& NewAccountCodeEvent::getOldAccountCode() const { 34 | return (getProperty("OldAccountCode")); 35 | } 36 | } 37 | /* namespace asteriskcpp */ 38 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/NewCallerIdEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * NewCallerIdEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: a-campos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/NewCallerIdEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | NewCallerIdEvent::NewCallerIdEvent(const std::string & values) : 13 | AbstractChannelEvent(values) { 14 | } 15 | 16 | NewCallerIdEvent::~NewCallerIdEvent() { 17 | } 18 | 19 | int NewCallerIdEvent::getCidCallingPres() const { 20 | return (getProperty("CidCallingPres")); 21 | } 22 | 23 | const std::string& NewCallerIdEvent::getCidCallingPresTxt() const { 24 | return (getProperty("CidCallingPresTxt")); 25 | } 26 | 27 | } /* namespace AsteriskCpp */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/NewChannelEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * NewChannelEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: a-campos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/NewChannelEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | NewChannelEvent::NewChannelEvent(const std::string & values) : 13 | AbstractChannelStateEvent(values) { 14 | } 15 | 16 | NewChannelEvent::~NewChannelEvent() { 17 | } 18 | 19 | const std::string& NewChannelEvent::getAccountCode() const { 20 | return (getProperty("Channel")); 21 | } 22 | 23 | const std::string& NewChannelEvent::getContext() const { 24 | return (getProperty("Channel")); 25 | } 26 | 27 | const std::string& NewChannelEvent::getExten() const { 28 | return (getProperty("Exten")); 29 | } 30 | 31 | } /* namespace asteriskcpp */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/NewStateEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * NewStateEvent.cpp 3 | * 4 | * Created on: Mar 14, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/NewStateEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | NewStateEvent::NewStateEvent(const std::string & values) : 13 | AbstractChannelStateEvent(values) { 14 | } 15 | 16 | NewStateEvent::~NewStateEvent() { 17 | // TODO Auto-generated destructor stub 18 | } 19 | 20 | } /* namespace asteriskcpp */ 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/OriginateFailureEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * OriginateFailureEvent.cpp 3 | * 4 | * Created on: Mar 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/OriginateFailureEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | OriginateFailureEvent::OriginateFailureEvent(const std::string & values) : 13 | OriginateResponseEvent(values) { 14 | setProperty("Response", RESPONSE_FAILURE); 15 | 16 | } 17 | 18 | OriginateFailureEvent::~OriginateFailureEvent() { 19 | } 20 | 21 | } /* namespace asteriskcpp */ 22 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/OriginateSuccessEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * OriginateSuccessEvent.cpp 3 | * 4 | * Created on: Mar 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/OriginateSuccessEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | OriginateSuccessEvent::OriginateSuccessEvent(const std::string & values) : 13 | OriginateResponseEvent(values) { 14 | setProperty("Response", RESPONSE_SUCCESS); 15 | } 16 | 17 | OriginateSuccessEvent::~OriginateSuccessEvent() { 18 | } 19 | 20 | } /* namespace asteriskcpp */ 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/ParkedCallEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ParkedCallEvent.cpp 3 | * 4 | * Created on: Mar 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/ParkedCallEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ParkedCallEvent::ParkedCallEvent(const std::string & values) : 13 | AbstractParkedCallEvent(values) { 14 | } 15 | 16 | ParkedCallEvent::~ParkedCallEvent() { 17 | } 18 | 19 | const std::string& ParkedCallEvent::getFrom() const { 20 | return (getProperty("From")); 21 | } 22 | 23 | int ParkedCallEvent::getTimeout() const { 24 | return (getProperty("Timeout")); 25 | } 26 | } /* namespace asteriskcpp */ 27 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/ParkedCallGiveUpEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ParkedCallGiveUpEvent.cpp 3 | * 4 | * Created on: Mar 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/ParkedCallGiveUpEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ParkedCallGiveUpEvent::ParkedCallGiveUpEvent(const std::string & values) : 13 | AbstractParkedCallEvent(values) { 14 | } 15 | 16 | ParkedCallGiveUpEvent::~ParkedCallGiveUpEvent() { 17 | } 18 | 19 | } /* namespace asteriskcpp */ 20 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/ParkedCallTimeOutEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ParkedCallTimeOutEvent.cpp 3 | * 4 | * Created on: Mar 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/ParkedCallTimeOutEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ParkedCallTimeOutEvent::ParkedCallTimeOutEvent(const std::string & values) : 13 | AbstractParkedCallEvent(values) { 14 | } 15 | 16 | ParkedCallTimeOutEvent::~ParkedCallTimeOutEvent() { 17 | } 18 | 19 | } /* namespace asteriskcpp */ 20 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/ParkedCallsCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ParkedCallsCompleteEvent.cpp 3 | * 4 | * Created on: Mar 15, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/ParkedCallsCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ParkedCallsCompleteEvent::ParkedCallsCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | } 15 | 16 | ParkedCallsCompleteEvent::~ParkedCallsCompleteEvent() { 17 | } 18 | 19 | } /* namespace asteriskcpp */ 20 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/PeerlistCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * PeerlistCompleteEvent.cpp 3 | * 4 | * Created on: Mar 16, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/PeerlistCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | PeerlistCompleteEvent::PeerlistCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | } 15 | 16 | PeerlistCompleteEvent::~PeerlistCompleteEvent() { 17 | } 18 | 19 | int PeerlistCompleteEvent::getListItems() const { 20 | return (getGetterValue(__FUNCTION__)); 21 | } 22 | 23 | const std::string& PeerlistCompleteEvent::getEventList() const { 24 | return (getGetterValue(__FUNCTION__)); 25 | } 26 | } /* namespace asteriskcpp */ 27 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/PriEventEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * PriEventEvent.cpp 3 | * 4 | * Created on: Mar 16, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/PriEventEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | PriEventEvent::PriEventEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | PriEventEvent::~PriEventEvent() { 17 | } 18 | 19 | const std::string& PriEventEvent::getPriEvent() const { 20 | return (getGetterValue(__FUNCTION__)); 21 | } 22 | 23 | int PriEventEvent::getPriEventCode() const { 24 | return (getGetterValue(__FUNCTION__)); 25 | } 26 | 27 | const std::string& PriEventEvent::getDChannel() const { 28 | return (getGetterValue(__FUNCTION__)); 29 | } 30 | 31 | int PriEventEvent::getSpan() const { 32 | return (getGetterValue(__FUNCTION__)); 33 | } 34 | } /* namespace asteriskcpp */ 35 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/ProtocolIdentifierReceivedEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ProtocolIdentifierReceivedEvent.cpp 3 | * 4 | * Created on: Mar 16, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/ProtocolIdentifierReceivedEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ProtocolIdentifierReceivedEvent::ProtocolIdentifierReceivedEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | ProtocolIdentifierReceivedEvent::~ProtocolIdentifierReceivedEvent() { 17 | } 18 | 19 | const std::string& ProtocolIdentifierReceivedEvent::getProtocolIdentifier() const { 20 | return (getGetterValue(__FUNCTION__)); 21 | } 22 | } /* namespace asteriskcpp */ 23 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/QueueCallerAbandonEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueCallerAbandonEvent.cpp 3 | * 4 | * Created on: Mar 16, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/QueueCallerAbandonEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | QueueCallerAbandonEvent::QueueCallerAbandonEvent(const std::string & values) : 13 | QueueEvent(values) { 14 | } 15 | 16 | QueueCallerAbandonEvent::~QueueCallerAbandonEvent() { 17 | } 18 | 19 | int QueueCallerAbandonEvent::getHoldTime() const { 20 | return (getGetterValue(__FUNCTION__)); 21 | } 22 | 23 | int QueueCallerAbandonEvent::getOriginalPosition() const { 24 | return (getGetterValue(__FUNCTION__)); 25 | } 26 | 27 | int QueueCallerAbandonEvent::getPosition() const { 28 | return (getGetterValue(__FUNCTION__)); 29 | } 30 | } /* namespace asteriskcpp */ 31 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/QueueEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueEvent.cpp 3 | * 4 | * Created on: Aug 23, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/QueueEvent.h" 9 | #include "asteriskcpp/utils/StringUtils.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | QueueEvent::QueueEvent(const std::string & values) : 14 | ManagerEvent(values) { 15 | } 16 | 17 | QueueEvent::~QueueEvent() { 18 | } 19 | 20 | const std::string& QueueEvent::getUniqueId() const { 21 | return (getProperty("UniqueId")); 22 | } 23 | 24 | const std::string& QueueEvent::getChannel() const { 25 | return (getProperty("Channel")); 26 | } 27 | 28 | int QueueEvent::getCount() const { 29 | return (convertFromString(getProperty("Count"))); 30 | } 31 | 32 | const std::string& QueueEvent::getQueue() const { 33 | return (getProperty("Queue")); 34 | } 35 | 36 | }/* namespace asterisk_cpp */ 37 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/QueueMemberPausedEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueMemberPausedEvent.cpp 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/QueueMemberPausedEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | QueueMemberPausedEvent::QueueMemberPausedEvent(const std::string & values) : 13 | AbstractQueueMemberEvent(values) { 14 | } 15 | 16 | QueueMemberPausedEvent::~QueueMemberPausedEvent() { 17 | 18 | } 19 | 20 | bool QueueMemberPausedEvent::getPaused() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | const std::string& QueueMemberPausedEvent::getReason() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | } /* namespace asteriskcpp */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/QueueMemberPenaltyEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueMemberPenaltyEvent.cpp 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/QueueMemberPenaltyEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | QueueMemberPenaltyEvent::QueueMemberPenaltyEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | } 15 | 16 | QueueMemberPenaltyEvent::~QueueMemberPenaltyEvent() { 17 | 18 | } 19 | 20 | const std::string& QueueMemberPenaltyEvent::getQueue() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | const std::string& QueueMemberPenaltyEvent::getLocation() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | 28 | int QueueMemberPenaltyEvent::getPenalty() const { 29 | return (getGetterValue(__FUNCTION__)); 30 | } 31 | } /* namespace asteriskcpp */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/QueueMemberRemovedEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueMemberRemovedEvent.cpp 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/QueueMemberRemovedEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | QueueMemberRemovedEvent::QueueMemberRemovedEvent(const std::string & values) : 13 | AbstractQueueMemberEvent(values) { 14 | } 15 | 16 | QueueMemberRemovedEvent::~QueueMemberRemovedEvent() { 17 | 18 | } 19 | 20 | } /* namespace asteriskcpp */ 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/QueueMemberStatusEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueMemberStatusEvent.cpp 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/QueueMemberStatusEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | QueueMemberStatusEvent::QueueMemberStatusEvent(const std::string & values) : 13 | QueueMemberEvent(values) { 14 | } 15 | 16 | QueueMemberStatusEvent::~QueueMemberStatusEvent() { 17 | } 18 | 19 | } /* namespace asteriskcpp */ 20 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/QueueStatusCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueStatusCompleteEvent.cpp 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/QueueStatusCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | QueueStatusCompleteEvent::QueueStatusCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | } 15 | 16 | QueueStatusCompleteEvent::~QueueStatusCompleteEvent() { 17 | 18 | } 19 | 20 | } /* namespace asteriskcpp */ 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/QueueSummaryCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * QueueSummaryCompleteEvent.cpp 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/QueueSummaryCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | QueueSummaryCompleteEvent::QueueSummaryCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | } 15 | 16 | QueueSummaryCompleteEvent::~QueueSummaryCompleteEvent() { 17 | } 18 | 19 | } /* namespace asteriskcpp */ 20 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/RegistrationsCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * RegistrationsCompleteEvent.cpp 3 | * 4 | * Created on: Apr 26, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/RegistrationsCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | RegistrationsCompleteEvent::RegistrationsCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | } 15 | 16 | RegistrationsCompleteEvent::~RegistrationsCompleteEvent() { 17 | 18 | } 19 | 20 | int RegistrationsCompleteEvent::getListItems() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | const std::string& RegistrationsCompleteEvent::getEventList() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | } /* namespace asteriskcpp */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/RenameEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * RenameEvent.cpp 3 | * 4 | * Created on: May 2, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/RenameEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | RenameEvent::RenameEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | 15 | } 16 | 17 | RenameEvent::~RenameEvent() { 18 | 19 | } 20 | 21 | const std::string& RenameEvent::getNewname() const { 22 | return (getGetterValue(__FUNCTION__)); 23 | } 24 | 25 | const std::string& RenameEvent::getChannel() const { 26 | return (getGetterValue(__FUNCTION__)); 27 | } 28 | 29 | const std::string& RenameEvent::getOldname() const { 30 | return (getChannel()); 31 | } 32 | 33 | const std::string& RenameEvent::getUniqueId() const { 34 | return (getGetterValue(__FUNCTION__)); 35 | } 36 | 37 | const std::string& RenameEvent::getNewUniqueId() const { 38 | return (getGetterValue(__FUNCTION__)); 39 | } 40 | } /* namespace asteriskcpp */ 41 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/RtpReceiverStatEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * RtpReceiverStatEvent.cpp 3 | * 4 | * Created on: May 2, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/RtpReceiverStatEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | RtpReceiverStatEvent::RtpReceiverStatEvent(const std::string & values) : 13 | AbstractRtpStatEvent(values) { 14 | 15 | } 16 | 17 | RtpReceiverStatEvent::~RtpReceiverStatEvent() { 18 | } 19 | 20 | long RtpReceiverStatEvent::getReceivedPackets() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | double RtpReceiverStatEvent::getTransit() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | 28 | long RtpReceiverStatEvent::getRrCount() const { 29 | return (getGetterValue(__FUNCTION__)); 30 | } 31 | } /* namespace asteriskcpp */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/RtpSenderStatEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * RtpSenderStatEvent.cpp 3 | * 4 | * Created on: May 2, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/RtpSenderStatEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | RtpSenderStatEvent::RtpSenderStatEvent(const std::string & values) : 13 | AbstractRtpStatEvent(values) { 14 | 15 | } 16 | 17 | RtpSenderStatEvent::~RtpSenderStatEvent() { 18 | } 19 | 20 | long RtpSenderStatEvent::getSentPackets() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | long RtpSenderStatEvent::getSrCount() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | 28 | double RtpSenderStatEvent::getRtt() const { 29 | return (getGetterValue(__FUNCTION__)); 30 | } 31 | } /* namespace asteriskcpp */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/ShowDialplanCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ShowDialplanCompleteEvent.cpp 3 | * 4 | * Created on: May 2, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/ShowDialplanCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ShowDialplanCompleteEvent::ShowDialplanCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | 15 | } 16 | 17 | ShowDialplanCompleteEvent::~ShowDialplanCompleteEvent() { 18 | } 19 | 20 | int ShowDialplanCompleteEvent::getListItems() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | int ShowDialplanCompleteEvent::getListExtensions() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | 28 | int ShowDialplanCompleteEvent::getListPriorities() const { 29 | return (getGetterValue(__FUNCTION__)); 30 | } 31 | 32 | int ShowDialplanCompleteEvent::getListContexts() const { 33 | return (getGetterValue(__FUNCTION__)); 34 | } 35 | } /* namespace asteriskcpp */ 36 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/ShutdownEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ShutdownEvent.cpp 3 | * 4 | * Created on: May 2, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/ShutdownEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ShutdownEvent::ShutdownEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | 15 | } 16 | 17 | ShutdownEvent::~ShutdownEvent() { 18 | } 19 | 20 | const std::string& ShutdownEvent::getShutdown() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | bool ShutdownEvent::getRestart() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | } /* namespace asteriskcpp */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/SkypeAccountStatusEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeAccountStatusEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/SkypeAccountStatusEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | SkypeAccountStatusEvent::SkypeAccountStatusEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | 15 | } 16 | 17 | SkypeAccountStatusEvent::~SkypeAccountStatusEvent() { 18 | } 19 | 20 | const std::string& SkypeAccountStatusEvent::getUsername() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | const std::string& SkypeAccountStatusEvent::getStatus() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | } /* namespace asteriskcpp */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/SkypeBuddyEntryEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeBuddyEntryEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/SkypeBuddyEntryEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | SkypeBuddyEntryEvent::SkypeBuddyEntryEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | 15 | } 16 | 17 | SkypeBuddyEntryEvent::~SkypeBuddyEntryEvent() { 18 | } 19 | 20 | const std::string& SkypeBuddyEntryEvent::getBuddy() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | const std::string& SkypeBuddyEntryEvent::getStatus() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | 28 | const std::string& SkypeBuddyEntryEvent::getFullname() const { 29 | return (getGetterValue(__FUNCTION__)); 30 | } 31 | } /* namespace asteriskcpp */ 32 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/SkypeBuddyListCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeBuddyListCompleteEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/SkypeBuddyListCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | SkypeBuddyListCompleteEvent::SkypeBuddyListCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | 15 | } 16 | 17 | SkypeBuddyListCompleteEvent::~SkypeBuddyListCompleteEvent() { 18 | } 19 | 20 | int SkypeBuddyListCompleteEvent::getListItems() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | } /* namespace asteriskcpp */ 24 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/SkypeChatMessageEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeChatMessageEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/utils/Base64.h" 9 | #include "asteriskcpp/manager/events/SkypeChatMessageEvent.h" 10 | 11 | namespace asteriskcpp { 12 | 13 | SkypeChatMessageEvent::SkypeChatMessageEvent(const std::string & values) : 14 | ManagerEvent(values) { 15 | 16 | } 17 | 18 | SkypeChatMessageEvent::~SkypeChatMessageEvent() { 19 | } 20 | 21 | const std::string& SkypeChatMessageEvent::getTo() const { 22 | return (getGetterValue(__FUNCTION__)); 23 | } 24 | 25 | const std::string& SkypeChatMessageEvent::getFrom() const { 26 | return (getGetterValue(__FUNCTION__)); 27 | } 28 | 29 | const std::string& SkypeChatMessageEvent::getMessage() const { 30 | return (getGetterValue(__FUNCTION__)); 31 | } 32 | 33 | std::string SkypeChatMessageEvent::getDecodedMessage() { 34 | return (Base64::decode(getMessage())); 35 | } 36 | } /* namespace asteriskcpp */ 37 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/SkypeLicenseListCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * SkypeLicenseListCompleteEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/SkypeLicenseListCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | SkypeLicenseListCompleteEvent::SkypeLicenseListCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | 15 | } 16 | 17 | SkypeLicenseListCompleteEvent::~SkypeLicenseListCompleteEvent() { 18 | } 19 | 20 | } /* namespace asteriskcpp */ 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/StatusCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * StatusCompleteEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/StatusCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | StatusCompleteEvent::StatusCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | 15 | } 16 | 17 | StatusCompleteEvent::~StatusCompleteEvent() { 18 | } 19 | 20 | int StatusCompleteEvent::getItems() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | } /* namespace asteriskcpp */ 24 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/UnholdEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UnholdEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/UnholdEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | UnholdEvent::UnholdEvent(const std::string & values) : 13 | HoldEvent(values) { 14 | 15 | } 16 | 17 | UnholdEvent::~UnholdEvent() { 18 | } 19 | 20 | } /* namespace asteriskcpp */ 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/UnlinkEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UnlinkEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/UnlinkEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | UnlinkEvent::UnlinkEvent(const std::string & values) : 13 | BridgeEvent(values) { 14 | 15 | } 16 | 17 | UnlinkEvent::~UnlinkEvent() { 18 | } 19 | 20 | } /* namespace asteriskcpp */ 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/UnparkedCallEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UnparkedCallEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/UnparkedCallEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | UnparkedCallEvent::UnparkedCallEvent(const std::string & values) : 13 | AbstractParkedCallEvent(values) { 14 | 15 | } 16 | 17 | UnparkedCallEvent::~UnparkedCallEvent() { 18 | } 19 | 20 | const std::string& UnparkedCallEvent::getFrom() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | } /* namespace asteriskcpp */ 24 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/UserEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UserEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/UserEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | UserEvent::UserEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | 15 | } 16 | 17 | UserEvent::~UserEvent() { 18 | } 19 | 20 | const std::string& UserEvent::getChannel() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | const std::string& UserEvent::getUniqueId() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | }/* namespace asteriskcpp */ 28 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/VarSetEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * VarSetEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/VarSetEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | VarSetEvent::VarSetEvent(const std::string & values) : 13 | ManagerEvent(values) { 14 | 15 | } 16 | 17 | VarSetEvent::~VarSetEvent() { 18 | } 19 | 20 | const std::string& VarSetEvent::getChannel() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | const std::string& VarSetEvent::getUniqueId() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | 28 | const std::string& VarSetEvent::getVariable() const { 29 | return (getGetterValue(__FUNCTION__)); 30 | } 31 | 32 | const std::string& VarSetEvent::getValue() const { 33 | return (getGetterValue(__FUNCTION__)); 34 | } 35 | } /* namespace asteriskcpp */ 36 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/VoicemailUserEntryCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * VoicemailUserEntryCompleteEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/VoicemailUserEntryCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | VoicemailUserEntryCompleteEvent::VoicemailUserEntryCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | 15 | } 16 | 17 | VoicemailUserEntryCompleteEvent::~VoicemailUserEntryCompleteEvent() { 18 | } 19 | 20 | } /* namespace asteriskcpp */ 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/ZapShowChannelsCompleteEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapShowChannelsCompleteEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/ZapShowChannelsCompleteEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ZapShowChannelsCompleteEvent::ZapShowChannelsCompleteEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | 15 | } 16 | 17 | ZapShowChannelsCompleteEvent::~ZapShowChannelsCompleteEvent() { 18 | } 19 | 20 | } /* namespace asteriskcpp */ 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/events/ZapShowChannelsEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ZapShowChannelsEvent.cpp 3 | * 4 | * Created on: May 3, 2012 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/events/ZapShowChannelsEvent.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ZapShowChannelsEvent::ZapShowChannelsEvent(const std::string & values) : 13 | ResponseEvent(values) { 14 | 15 | } 16 | 17 | ZapShowChannelsEvent::~ZapShowChannelsEvent() { 18 | } 19 | 20 | int ZapShowChannelsEvent::getChannel() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | const std::string& ZapShowChannelsEvent::getSignalling() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | 28 | const std::string& ZapShowChannelsEvent::getContext() const { 29 | return (getGetterValue(__FUNCTION__)); 30 | } 31 | 32 | bool ZapShowChannelsEvent::getDnd() const { 33 | return (getGetterValue(__FUNCTION__)); 34 | } 35 | 36 | const std::string& ZapShowChannelsEvent::getAlarm() const { 37 | return (getGetterValue(__FUNCTION__)); 38 | } 39 | } 40 | /* namespace asteriskcpp */ 41 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/ChallengeResponse.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ChallengeResponse.cpp 3 | * 4 | * Created on: Dec 31, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/ChallengeResponse.h" 9 | namespace asteriskcpp { 10 | 11 | ChallengeResponse::ChallengeResponse(const std::string& responseStr) : 12 | ManagerResponse(responseStr) { 13 | } 14 | 15 | ChallengeResponse::~ChallengeResponse() { 16 | } 17 | 18 | std::string ChallengeResponse::getChallenge() const { 19 | return (getGetterValue(__FUNCTION__)); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/CommandResponse.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * CommandResponse.cpp 3 | * 4 | * Created on: Sep 1, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/CommandResponse.h" 9 | #include 10 | 11 | namespace asteriskcpp { 12 | 13 | CommandResponse::CommandResponse(const std::string & responseStr) : 14 | ManagerResponse(responseStr) { 15 | std::string knull(this->getProperty("")); 16 | 17 | boost::split(result, knull, boost::is_any_of(std::string("\n"))); 18 | } 19 | 20 | CommandResponse::~CommandResponse() { 21 | 22 | } 23 | 24 | std::string CommandResponse::getPrivilege() const { 25 | //TODO: Fix this 26 | return ("command"); 27 | } 28 | 29 | const std::vector& CommandResponse::getResult() { 30 | return (result); 31 | } 32 | 33 | } /* namespace asteriskcpp */ 34 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/ExtensionStateResponse.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: ExtensionStateResponse.cpp 3 | * Author: augcampos 4 | * 5 | * Created on July 11, 2013, 2:54 AM 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/ExtensionStateResponse.h" 9 | 10 | 11 | namespace asteriskcpp { 12 | 13 | ExtensionStateResponse::ExtensionStateResponse(const std::string& responseStr) : 14 | ManagerResponse(responseStr) { 15 | } 16 | 17 | ExtensionStateResponse::~ExtensionStateResponse() { 18 | } 19 | 20 | const std::string& ExtensionStateResponse::getExten() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | const std::string& ExtensionStateResponse::getContext() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | 28 | const int ExtensionStateResponse::getHint() const { 29 | return (getGetterValue(__FUNCTION__)); 30 | } 31 | 32 | const int ExtensionStateResponse::getStatus() const { 33 | return (getGetterValue(__FUNCTION__)); 34 | } 35 | } -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/GetConfigResponse.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: GetConfigResponse.cpp 3 | * Author: augcampos 4 | * 5 | * Created on July 11, 2013, 3:07 AM 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/GetConfigResponse.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | GetConfigResponse::GetConfigResponse(const std::string& responseStr) : 13 | ManagerResponse(responseStr) { 14 | } 15 | 16 | GetConfigResponse::~GetConfigResponse() { 17 | } 18 | 19 | const std::map& GetConfigResponse::getCategories() const { 20 | return categories; 21 | } 22 | 23 | const std::map& GetConfigResponse::getLines(int categoryNumber) const { 24 | return lines; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/GetVarResponse.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: GetVarResponse.cpp 3 | * Author: augcampos 4 | * 5 | * Created on July 11, 2013, 3:34 AM 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/GetVarResponse.h" 9 | 10 | namespace asteriskcpp { 11 | GetVarResponse::GetVarResponse(const std::string& responseStr) : 12 | ManagerResponse(responseStr) { 13 | } 14 | 15 | GetVarResponse::~GetVarResponse() { 16 | } 17 | 18 | const std::string& GetVarResponse::getVariable() const { 19 | return (getGetterValue(__FUNCTION__)); 20 | } 21 | 22 | const std::string& GetVarResponse::getValue() const { 23 | return (getGetterValue(__FUNCTION__)); 24 | } 25 | } -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/MailboxCountResponse.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: MailboxCountResponse.cpp 3 | * Author: augcampos 4 | * 5 | * Created on July 11, 2013, 11:44 PM 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/MailboxCountResponse.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MailboxCountResponse::MailboxCountResponse(const std::string& responseStr) : 13 | ManagerResponse(responseStr) { 14 | } 15 | 16 | MailboxCountResponse::~MailboxCountResponse() { 17 | } 18 | 19 | const std::string& MailboxCountResponse::getMailbox() const { 20 | return (getGetterValue(__FUNCTION__)); 21 | } 22 | 23 | int MailboxCountResponse::getNewMessages() const { 24 | return (getGetterValue(__FUNCTION__)); 25 | } 26 | 27 | int MailboxCountResponse::getOldMessages() const { 28 | return (getGetterValue(__FUNCTION__)); 29 | } 30 | } -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/MailboxStatusResponse.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: MailboxStatusResponse.cpp 3 | * Author: augcampos 4 | * 5 | * Created on July 12, 2013, 3:30 AM 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/MailboxStatusResponse.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | MailboxStatusResponse::MailboxStatusResponse(const std::string& responseStr) : 13 | ManagerResponse(responseStr) { 14 | } 15 | 16 | MailboxStatusResponse::~MailboxStatusResponse() { 17 | } 18 | 19 | const std::string& MailboxStatusResponse::getMailbox() const { 20 | return (getGetterValue(__FUNCTION__)); 21 | } 22 | 23 | bool MailboxStatusResponse::getWaiting() const { 24 | return (getGetterValue(__FUNCTION__)); 25 | } 26 | } -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/ManagerError.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ManagerError.cpp 3 | * 4 | * Created on: Aug 27, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/ManagerError.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ManagerError::ManagerError(const std::string& responseStr) : 13 | ManagerResponse(responseStr) { 14 | 15 | } 16 | 17 | ManagerError::~ManagerError() { 18 | 19 | } 20 | } //NS 21 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/ManagerResponse.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ManagerResponse.cpp 3 | * 4 | * Created on: Jul 13, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/ManagerResponse.h" 9 | 10 | #define ACTION_ID "ActionID" 11 | #define TYPE_SUCCESS "Success" 12 | #define TYPE_ERROR "Error" 13 | 14 | namespace asteriskcpp { 15 | 16 | ManagerResponse::~ManagerResponse() { 17 | } 18 | 19 | ManagerResponse::ManagerResponse(const std::string& responseStr) { 20 | convertStr(responseStr); 21 | } 22 | 23 | ManagerResponse::Type ManagerResponse::getType() { 24 | std::string sType = getProperty("Response"); 25 | if (sType == TYPE_ERROR) { 26 | return (ManagerResponse::Type_ERROR); 27 | } 28 | return (ManagerResponse::Type_SUCCESS); 29 | 30 | } 31 | 32 | std::string ManagerResponse::getActionId() const { 33 | return (getProperty(ACTION_ID)); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/ModuleCheckResponse.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: ModuleCheckResponse.cpp 3 | * Author: augcampos 4 | * 5 | * Created on July 16, 2013, 2:01 AM 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/ModuleCheckResponse.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | ModuleCheckResponse::ModuleCheckResponse(const std::string& responseStr) : 13 | ManagerResponse(responseStr) { 14 | } 15 | 16 | ModuleCheckResponse::~ModuleCheckResponse() { 17 | } 18 | 19 | int ModuleCheckResponse::getVersion() const { 20 | return (getGetterValue(__FUNCTION__)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/PingResponse.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: PingResponse.cpp 3 | * Author: augcampos 4 | * 5 | * Created on July 16, 2013, 2:28 AM 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/PingResponse.h" 9 | 10 | 11 | namespace asteriskcpp { 12 | 13 | PingResponse::PingResponse(const std::string& responseStr) : 14 | ManagerResponse(responseStr) { 15 | } 16 | 17 | PingResponse::~PingResponse() { 18 | } 19 | 20 | const std::string& PingResponse::getPing() const { 21 | return (getGetterValue(__FUNCTION__)); 22 | } 23 | 24 | const std::string& PingResponse::getTimestamp() const { 25 | return (getGetterValue(__FUNCTION__)); 26 | } 27 | } -------------------------------------------------------------------------------- /asterisk-cpp/src/manager/responses/SkypeLicenseStatusResponse.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: SkypeLicenseStatusResponse.cpp 3 | * Author: augcampos 4 | * 5 | * Created on July 17, 2013, 1:41 AM 6 | */ 7 | 8 | #include "asteriskcpp/manager/responses/SkypeLicenseStatusResponse.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | SkypeLicenseStatusResponse::SkypeLicenseStatusResponse(const std::string& responseStr) : 13 | ManagerResponse(responseStr) { 14 | } 15 | 16 | SkypeLicenseStatusResponse::~SkypeLicenseStatusResponse() { 17 | } 18 | 19 | int SkypeLicenseStatusResponse::getSkypename() const { 20 | return (getGetterValue(__FUNCTION__)); 21 | } 22 | } -------------------------------------------------------------------------------- /asterisk-cpp/src/structs/Singleton.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Singleton.cpp 3 | * 4 | * Created on: 29 de Jun de 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/structs/Singleton.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | NonCopyable::NonCopyable() { 13 | } 14 | 15 | NonCopyable::NonCopyable(const NonCopyable& c_dmn) { 16 | } 17 | 18 | const NonCopyable& NonCopyable::operator=(const NonCopyable& c_dmn) { 19 | return (*this); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /asterisk-cpp/src/utils/StringUtils.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * StringUtils.cpp 3 | * 4 | * Created on: Aug 23, 2011 5 | * Author: augcampos 6 | */ 7 | 8 | #include "asteriskcpp/utils/StringUtils.h" 9 | 10 | namespace asteriskcpp { 11 | 12 | std::string search_and_replace(const std::string& str, const std::string &oldsubstr, const std::string &newsubstr) { 13 | std::string::size_type startidx; 14 | std::string tmp(str); 15 | while ((startidx = tmp.find(oldsubstr)) != std::string::npos) { 16 | tmp.replace(startidx, oldsubstr.size(), newsubstr); 17 | } 18 | return (tmp); 19 | 20 | } 21 | 22 | time_t stringToTime(const std::string& str, const std::string& format) { 23 | struct tm result; 24 | strptime(str.c_str(), format.c_str(), &result); 25 | return (mktime(&result)); 26 | } 27 | 28 | bool stringToBool(const std::string& str) { 29 | return ((str.compare("true") == 0 || str.compare("yes") == 0)); 30 | } 31 | 32 | std::string str2Log(const std::string& str) { 33 | return (search_and_replace(search_and_replace(str, "\r", "\\r"), "\n", "\\n")); 34 | } 35 | } 36 | --------------------------------------------------------------------------------