Refactor: Change private to protected for extensibility, add new public methods #82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changed all
private
properties and methods inActionSender
toprotected
to allow inheritance and extension by other classes.Added the following new public methods to
ActionSender
:getConfig($filename, $category = null)
: Retrieve configuration from Asterisk.coreShowChannels()
: Get a list of active channels.sipPeers()
: Get a list of SIP peers.agents()
: Get a list of agents.status()
: Get a list of channel status events.queueStatus($queue = null, $member = null)
: Get queue status events.queueSummary($queue = null)
: Get queue summary events.parkedCalls()
: Get a list of parked calls.parkinglots()
: Get a list of parking lots.bridgeList()
: Get a list of bridges.bridgeTechnologyList()
: Get a list of bridge technologies.confbridgeList($conference)
: Get ConfBridge participants for a conference.confbridgeListRooms()
: Get a list of ConfBridge rooms.deviceStateList()
: Get a list of device states.extensionStateList()
: Get a list of extension states.sipShowRegistry()
: Get a list of SIP registries.iaxPeerlist()
: Get a list of IAX peers.pjsipShowEndpoints()
: Get a list of PJSIP endpoints.pjsipShowAors()
: Get a list of PJSIP AORs.pjsipShowContacts()
: Get a list of PJSIP contacts.pjsipShowRegistrationsInbound()
: Get a list of inbound PJSIP registrations.pjsipShowRegistrationsOutbound()
: Get a list of outbound PJSIP registrations.pjsipShowResourceLists()
: Get a list of PJSIP resource lists.pjsipShowSubscriptionsInbound()
: Get a list of inbound PJSIP subscriptions.pjsipShowSubscriptionsOutbound()
: Get a list of outbound PJSIP subscriptions.showDialPlan($context = null, $extension = null, $priority = null)
: Get dialplan information.voicemailUsersList()
: Get a list of voicemail users.Summary of all changes:
These changes are ready for PR.