(Panel) hangup active call

(Panel) hangup active call

Table of Contents

Tutorial

The VoipSTACK Panel (VOIP Panel) is highly customizable and, by default, does not include any predefined actions. Let’s walk through how to create an action to hang up a call.

Click the “New Action” button to add a new action.

Intent create action

Fill out the form with the following details:

  • Action: identify the action to be performed.
  • (Optional) Argument: value to be received by the softswitch.
  • Handler: select “Dial”.

Create Action

Edit the user.

Edit user

Enable the action.

Enable to user

Now, when the panel user sees an active call, they can click the number to view available actions.

Active call

The user can click the “Hangup” action.

List action for call

Next, we need to update the dialplan to handle the new action.

Example (FreeSWITCH):

  <context name="voipstack">
    <extension name="action">
      <condition field="destination_number" expression="^action$"/>
      <condition field="${voipstack_action}" expression="^hangup">
        <action application="info"/>
        <action application="set" data="api_result=${uuid_kill(${voipstack_action_input_call_uuid} NORMAL_CLEARING)}"/>
        <action application="hangup"/>
      </condition>
    </extension>
  </context>

Example (Asterisk):

Edit or create configuration YAML, and add:

executor:
  hangup_asterisk:
    type: softswitch-interface
    when:
      action: hangup
    command: Hangup
    interface:
      Channel: ${VOIPSTACK_ACTION_VENDOR_CHANNEL}

Use Cases

Call Hold / Resume

Add an action for putting a call on hold or resuming it. This can allow the panel user to manage call states easily, improving call handling in a customer support or sales environment.

Call Recording Toggle

Create an action to start or stop recording an active call. The panel user can trigger the recording on demand during the call, with optional input for naming the recording or choosing the storage location.

Related Posts

(Panel) transfer active call

(Panel) transfer active call

Tutorial

The VoipSTACK Panel (VOIP Panel) is highly customizable and, by default, does not include any predefined actions. Let’s walk through how to create an action to transfer a call.

Read More
(Panel) listen active call

(Panel) listen active call

Tutorial

The VoipSTACK Panel (VOIP Panel) is highly customizable and, by default, does not include any predefined actions. Let’s walk through how to create an action to listen to a call.

Read More