Dan Cropp
2020-Jan-16 17:57 UTC
[asterisk-users] From the CLI, how can I hangup a channel name that includes a space character?
I have a customer who named their endpoint to include a space (example, 1003 a)>From the CLI, I want to hangup a channel on this endpoint>From core show channels concise, I see the channel name includes the spacePJSIP/1003 a-00000002 I realize the space is interpreted as an argument separator, so my first attempt below doesn't work. I have tried the following and all fail. hangup request PJSIP/1003 a-00000002 hangup request 'PJSIP/1003 a-00000002' hangup request "PJSIP/1003 a-00000002" hangup request PJSIP/1003%20a-00000002 hangup request PJSIP/1003 a-00000002 Is there some control character(s) for the CLI to interpret everything in between as a single argument? Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20200116/c2dc251c/attachment.html>
Doug Lytle
2020-Jan-16 18:22 UTC
[asterisk-users] From the CLI, how can I hangup a channel name that includes a space character?
>>> Is there some control character(s) for the CLI to interpret everything in between as a single argument?I think you can typically use tab completion when working with spaces or you can escape the space with a back slash For example Doug Lytle would be Doug\ Lytle Doug
Dan Cropp
2020-Jan-16 19:17 UTC
[asterisk-users] From the CLI, how can I hangup a channel name that includes a space character?
Thanks Doug. Turns out if using hangup request does not work with the escaped character CLI> hangup request PJSIP/1003\ a-00000007 Usage: channel request hangup <channel>|<all> Request that a channel 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. However, channel request hangup ... does support the escaped character. CLI> channel request hangup PJSIP/1003\ a-00000007 Requested Hangup on channel 'PJSIP/1003 a-00000007' Thank you for the help. Dan -----Original Message----- From: asterisk-users <asterisk-users-bounces at lists.digium.com> On Behalf Of Doug Lytle Sent: Thursday, January 16, 2020 12:22 PM To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Subject: Re: [asterisk-users] From the CLI, how can I hangup a channel name that includes a space character?>>> Is there some control character(s) for the CLI to interpret everything in between as a single argument?I think you can typically use tab completion when working with spaces or you can escape the space with a back slash For example Doug Lytle would be Doug\ Lytle Doug -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Maybe Matching Threads
- From the CLI, how can I hangup a channel name that includes a space character?
- From the CLI, how can I hangup a channel name that includes a space character?
- With ARI, is it possible to create (originate) a call and pass both the caller id name and number?
- asterisk 13.16 / pjsip / t.38: res_pjsip_t38.c:207 t38_automatic_reject: Automatically rejecting T.38 request on channel 'PJSIP/91-00000007'
- change dialing process on live call