Skip to content

Conversation

Keivan-S
Copy link

  • Changed all private properties and methods in ActionSender to protected 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:

  • Improved extensibility by changing visibility from private to protected for class members.
  • Introduced new public methods for common AMI actions to facilitate easier usage and extension.
  • Added a comprehensive set of methods for retrieving various lists and statuses from Asterisk AMI, including queue, bridge, conference, device, extension, SIP, IAX, PJSIP, and voicemail information.

These changes are ready for PR.

…ic methods

- Changed all `private` properties and methods in `ActionSender` to `protected` 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:
- Improved extensibility by changing visibility from private to protected for class members.
- Introduced new public methods for common AMI actions to facilitate easier usage and extension.
- Added a comprehensive set of methods for retrieving various lists and statuses from Asterisk AMI, including queue, bridge, conference, device, extension, SIP, IAX, PJSIP, and voicemail information.

These changes are ready for PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant