The CallID (that's CALLID) variable provides a unique sequential number that is assigned to every call. Use the value of this variable as a key to save information specific to a call, to create unique filenames, or to quickly locate calls in the Call History.
The CallID variable is read-only.
The following macro shows how to use the CallID variable with the SaveFileAfterRecord variable to create unique filenames for audio recordings:
' Prompt the user to leave a message for Bill
Record = "Please leave a message for Bill at the beep."
' Save the recorded audio file, use CallID to
' uniquely name the file.
SaveFileAfterRecord = "C:\Message" & CallID & ".wav"
Warning: CallID numbers will reset when calls are deleted from the Call History and the Call History is compacted. Until such a time, every CallID number will be totally unique.