(Panel) listen active call

(Panel) listen 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 listen to a call.

Click the “New Action” button to add a new action. Please check Hangup an active call for how to fill the form.

Intent create action

Edit the user and assign an extension where to receive the call.

Edit user

Now the operator can hear the call on their phone.

Listen active call

Next, we need to handle the listen action.

Example (FreeSWITCH)

executor:
  listen:
    type: softswitch-interface
    when:
      action: listen
    command: api
    interface:
      originate: "user/${VOIPSTACK_ACTION_INPUT_OPERATOR_EXTENSION} &eavesdrop(${VOIPSTACK_ACTION_INPUT_CALL_UUID})"

Example (Asterisk)

executor:
  listen:
    type: softswitch-interface
    when:
      action: listen
    command: Originate
    interface:
      Channel: PJSIP/${VOIPSTACK_ACTION_INPUT_OPERATOR_EXTENSION}
      Application: ChanSpy
      Data: ${VOIPSTACK_ACTION_VENDOR_CHANNEL},q
      CallerID: Spy
      Async: true

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) hangup active call

(Panel) hangup 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 hang up a call.

Read More