Skip to main content

$dialer.getRKCallID

Tovie Platform initiates outbound calls within call campaigns. Each call gets a unique ID. In the SIP INVITE message, this ID is passed in the custom X-RK-Call-ID header.

The $dialer.getRKCallID method allows you to get the outbound call ID in the script.

Syntax

The method is called without arguments:

$dialer.getRKCallID();

How to use

state: Start
q!: $regex</start>
script:
var callId = $dialer.getRKCallID();
$analytics.setComment("Call ID: " + callId);

In this start state, the bot:

  1. Gets the outbound call ID using $dialer.getRKCallID.
  2. Writes a comment with the ID to analytics, for example: Call ID: example0-1234-5678-9000-0000000000000.