channel request hangup <all>|<channel> [<channel> ...]
Request that one or more channels be hung up. The hangup takes effect the next time the driver reads or writes from the channel.
If 'all' is specified instead of a channel name, all channels will see the hangup request.
A POSIX Extended Regular Expression can be provided in the place of a fixed channel name by wrapping it in forward slashes (e.g. /^PJSIP.*/). Note that the expression will match any part of the channel name unless anchored explicitly by ^ and/or $.
Finally, wildcards () and other glob-like characters can also be used to match more than one channel. Similar to how path globs behave, a forward slash cannot be matched with a wildcard or bracket expression. In other words, if you want to hangup all Local channels, you must specify Local/ and not Loc*.
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.