@phone::setCallerId

Overwrites the Caller ID value for an outbound SIP call.

Syntax:

@phone::setCallerId(string callerId)

Parameters:

callerId (string): the value to set as the Caller ID.

Returns:

None

Example:

The following example illustrates how the setCallerId method overwrites the Caller ID value with the associated event's Company Name and Call In Number

@company = @initiatingEvent::getCompany()

$companyCallInNumber = $company.callinNumber

$callerId = $companyName

IF ( !empty($companyCallInNumber) )

  $callerId = $companyName & ":" & $companyCallInNumber

ENDIF

@phone::setCallerId($callerId)