HANGUP —
HANGUP [channelname]
channelname
Hangs up the specified channel or, if no channel is given, the current channel.
Return values:
-1
Specified channel does not exist
1
Hangup was successful