Browse
 
Tools
Rss Categories

LVTTSClient::AddFieldToRequest

Reference Number: AA-01012 Views: 9551 0 Rating/ Voters

Adds a custom string to a named field in the call log file, that can be used to filter or identify certain calls. This value persists until changed or the call ends.

Function

  • LV_TTS_RETURN_CODE AddFieldToRequest(const char * key_name, const char * string_value)

Parameters

key_name

Name of the field which is to be added to the call log file.

string_value

String value to be assigned to the new field in the call log file.

Return Values

LV_SUCCESS

No errors; adding the field succeeded.

LV_INVALID_TTS_HANDLE

The TTS client handle is invalid (either Initialize has not been called or Destroy has already been called).

LV_INVALID_API_PARAMETER

Either the input key_name or string_value or both are not valid.

LV_EXCEPTION

An exception occurred while processing the request.