Skip to content

HangupAction.java: Support Hangup taking a regular expression for channel name. - #751

Merged
seanbright merged 1 commit into
asterisk-java:mainfrom
seanbright:hangup-action-regex-support
Dec 4, 2025
Merged

HangupAction.java: Support Hangup taking a regular expression for channel name.#751
seanbright merged 1 commit into
asterisk-java:mainfrom
seanbright:hangup-action-regex-support

Conversation

@seanbright

Copy link
Copy Markdown
Member

If you supply a single literal channel name, you should use ManagerConnection.sendAction(...).

If you send a regular expression instead (a String starting and ending with a slash), you need to use ManagerConnection.sendEventGeneratingAction(...) to handle the response correctly.

See https://docs.asterisk.org/Latest_API/API_Documentation/AMI_Actions/Hangup/ for usage information.

Fixes: #340

…nnel name.

If you supply a single literal channel name, you should use `ManagerConnection.sendAction(...)`.

If you send a regular expression instead (a `String` starting and ending with a slash), you need to use `ManagerConnection.sendEventGeneratingAction(...)` to handle the response correctly.

See https://docs.asterisk.org/Latest_API/API_Documentation/AMI_Actions/Hangup/ for usage information.

Fixes: asterisk-java#340
@seanbright
seanbright merged commit 6c39c2f into asterisk-java:main Dec 4, 2025
3 checks passed
@seanbright
seanbright deleted the hangup-action-regex-support branch December 5, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

channelshunguplistcomplete

1 participant