VoiceRopeImpl.mesa
Copyright Ó 1986, 1988, 1989, 1990 by Xerox Corporation. All rights reserved.
Doug Terry, October 14, 1986 3:59:55 pm PDT
Venkat Rangan October 27, 1989 5:13:05 pm PDT
Swinehart, September 20, 1990 5:44:37 pm PDT
Polle Zellweger, December 27, 1990 6:03 pm PST
Client code for interacting with the Voice Rope Service.
DIRECTORY
FinchSmarts USING [ConvDesc, CurrentRName, ObtainServiceInterface, ReportSystemStateProc, ReportConversationStateProc, ReportRequestStateProc, RegisterForReports, ServiceConnect],
Atom USING [GetPName, GetPropFromList, PutPropOnList],
IO,
Process USING [SecondsToTicks, SetTimeout, Ticks],
RefID USING [ID, nullID],
Rope USING [ROPE, Concat],
ThParty USING [ PartyInfo ],
Thrush USING [ActionClass, ActionType, ConversationID, InterfaceSpec, none, nullConvID, nullID, PartyID, SHHH],
VoiceRopeServer,
VoiceRopeServerSunImport USING [ImportInterface, ReportProblem],
VoiceUtils USING [FindWhere, Problem, ProblemFR, RegisterWhereToReport, WhereProc ],
VoiceUtilsExtras USING [GetUniqueID],
VoiceRope;
VoiceRopeImpl: CEDAR MONITOR
IMPORTS Atom, FinchSmarts, IO, Process, Rope, VoiceRopeServer, VoiceRopeServerSunImport, VoiceUtils, VoiceUtilsExtras
EXPORTS VoiceRope
~ BEGIN OPEN IO;
ROPE: TYPE ~ Rope.ROPE;
recordingService: ROPE ← "recording";
recordingServiceInterface: ROPE ← "VoiceRopeServer";
RequestID: TYPE = VoiceRope.RequestID;
PendingRequest: TYPE = REF PendingRequestBody;
PendingRequestBody: TYPE = RECORD [
id: RequestID,
class: Thrush.ActionClass ← $unknown,
state: Thrush.ActionType ← $unknown
];
PendingRequests: TYPE = LIST OF PendingRequest;
VoiceRopeInfo: TYPE = REF VoiceRopeInfoBody;
VoiceRopeInfoBody: TYPE = RECORD [
serviceID: RefID.ID ← RefID.nullID,
shhh: Thrush.SHHH ← Thrush.none
];
VoiceRopeDesc: TYPE = REF VoiceRopeDescBody;
VoiceRopeDescBody: TYPE = RECORD [
cDesc: FinchSmarts.ConvDesc ← NIL, -- only valid during operations below.
serviceID: RefID.ID ← RefID.nullID,
shhh: Thrush.SHHH ← Thrush.none,
pendingRequests: PendingRequests ← NIL,
reportArrived: CONDITION,
clientData: REFNIL,
paused: BOOLFALSE
];
info: VoiceRopeInfo ← NEW[VoiceRopeInfoBody];
Probably needs more reporting when RPC calls fail and reconnects fail, too.
VoiceRope client interface
Handle: TYPE = VoiceRope.Handle; -- handles are no longer used for anything
Open: PUBLIC PROC [voiceRopeDBName: ROPENIL, localName: ROPENIL, Complain: PROC[complaint: ROPE] ← NIL] RETURNS [handle: Handle] ~ {
If voiceRopeDBName or localName is omitted, a default based on the user profile choice of Thrush Server is invented. If Complain is omitted, Log.Problem[...$Finch] is used.
RETURN[NIL]; -- this routine is no longer used, but it probably should be!
};
Record: PUBLIC PROC[handle: Handle←NIL]
RETURNS [voiceRope: VoiceRope.VoiceRope←NIL] ~ { [voiceRope: voiceRope] ← RecordNB[handle: handle]; };
Play: PUBLIC PROC[handle: Handle←NIL, voiceRope: VoiceRope.VoiceRope,
queueIt: BOOLTRUE, wait: BOOLFALSE] ~ {
[] ← PlayNB[handle: handle, voiceRope: voiceRope, queueIt: queueIt, wait: wait]; };
Stop: PUBLIC PROC[handle: Handle←NIL] ~ { [] ← StopNB[handle: handle]; };
RecordNB: PUBLIC PROC [handle: Handle←NIL, requestID: RequestID←VoiceRope.nullRequestID, convID: Thrush.ConversationID← Thrush.nullConvID, clientData: REFNIL, selfElseOther: BOOLTRUE] RETURNS [nb: VoiceRope.NB, voiceRope: VoiceRope.VoiceRope←NIL, newConvID: Thrush.ConversationID← Thrush.nullConvID] ~ {
Records a voice rope, registers it , and returns its ID. A NIL return value indicates that something went wrong.
vrDesc: VoiceRopeDesc;
recordedPartyID: Thrush.PartyID ← Thrush.nullID;
pInfo: ThParty.PartyInfo;
[nb, vrDesc] ← GetConversation[convID: convID, clientData: clientData, addOK: TRUE];
Create or find conversation, import service interface, record client data if provided
OK to add service provider to an existing conversation (in order to record it.)
IF nb # $success THEN RETURN;
newConvID ← vrDesc.cDesc.situation.self.convID;
requestID ← AddRequest[vrDesc, requestID, $record];
pInfo ← vrDesc.cDesc.partyInfo;
IF pInfo#NIL THEN {
recordedPartyID ← pInfo[pInfo.ixSelf].partyID;
IF ~selfElseOther THEN FOR ix: NAT IN [1..pInfo.numParties] DO
IF ix=pInfo.ixSelf OR pInfo[ix].type=$service THEN LOOP;
recordedPartyID ← pInfo[ix].partyID;
EXIT; ENDLOOP;
};
[nb, voiceRope] ←
VoiceRopeServer.Record[shhh: vrDesc.shhh,
credentials: vrDesc.cDesc.situation.self, recordedParty: recordedPartyID, serviceID: vrDesc.serviceID, intID: requestID, queueIt: TRUE];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to record failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
Perhaps this should result in the termination of the conversation? It doesn't, automatically, now. This comment should be read implicitly after all other nb tests.
};
wait for report that says it finished (or was abandoned)
WaitForRequestState[vrDesc: vrDesc, state: $finished, id: requestID];
[nb, voiceRope.length] ← VoiceRopeServer.Length[vrDesc.shhh, voiceRope];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to get voicerope length failed - ",Atom.GetPName[nb]], $VoiceRope];
nb ← $noLength;
RETURN;
};
vrDesc.cDesc ← NIL; -- Break cycles when conversation goes away
};
PlayNB: PUBLIC PROC [handle: Handle←NIL, voiceRope: VoiceRope.VoiceRope, queueIt: BOOLTRUE, wait: BOOLFALSE, requestID: RequestID←VoiceRope.nullRequestID, convID: Thrush.ConversationID←Thrush.nullConvID, clientData: REFNIL] RETURNS [nb: VoiceRope.NB, newConvID: Thrush.ConversationID ← Thrush.nullConvID] ~ {
Play a specified voice rope. The boolean arguments are interpreted as follows:
queueIt => play after all other record/playback requests are satisfied.
wait => wait until things appear to be started properly, or have failed.
vrDesc: VoiceRopeDesc;
[nb, vrDesc] ← GetConversation[convID, clientData];
IF nb # $success THEN RETURN;
newConvID ← vrDesc.cDesc.situation.self.convID;
requestID ← AddRequest[vrDesc, requestID, $playback];
nb ← VoiceRopeServer.Play[
vrDesc.shhh, voiceRope, vrDesc.cDesc.situation.self, vrDesc.serviceID, requestID, queueIt];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to play voicerope failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
IF wait THEN WaitForRequestState[vrDesc: vrDesc, state: $started, id: requestID];
vrDesc.cDesc ← NIL;
};
StopNB: PUBLIC PROC [handle: Handle ← NIL, convID: Thrush.ConversationID← Thrush.nullConvID] RETURNS [nb: VoiceRope.NB] ~ {
Stops any recording or playback in progress.
vrDesc: VoiceRopeDesc;
[nb, vrDesc] ← GetConversation[convID, NIL, FALSE];
IF nb#$success THEN RETURN;
nb ← VoiceRopeServer.Stop[vrDesc.shhh, vrDesc.cDesc.situation.self, vrDesc.serviceID];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to stop failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
vrDesc.cDesc ← NIL;
};
PauseNB: PUBLIC PROC [handle: Handle ← NIL, convID: Thrush.ConversationID← Thrush.nullConvID] RETURNS [nb: VoiceRope.NB] ~ {
Stops any recording or playback in progress.
vrDesc: VoiceRopeDesc;
[nb, vrDesc] ← GetConversation[convID, NIL, FALSE];
IF nb#$success THEN RETURN;
nb ← VoiceRopeServer.Pause[vrDesc.shhh, vrDesc.cDesc.situation.self, vrDesc.serviceID];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to pause failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
vrDesc.paused ← TRUE;
};
ResumeNB: PUBLIC PROC [handle: Handle ← NIL, convID: Thrush.ConversationID← Thrush.nullConvID] RETURNS [nb: VoiceRope.NB] ~ {
Stops any recording or playback in progress.
vrDesc: VoiceRopeDesc;
[nb, vrDesc] ← GetConversation[convID, NIL, FALSE];
IF nb#$success THEN RETURN;
nb ← VoiceRopeServer.Resume[vrDesc.shhh, vrDesc.cDesc.situation.self, vrDesc.serviceID];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to resume failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
vrDesc.paused ← FALSE;
};
Retain: PUBLIC PROC [handle: Handle ← NIL, vr: VoiceRope.VoiceRope, class: VoiceRope.InterestClass, refID: ROPE, other: ROPENIL] ~ {
Registers a new interest in the voice rope. The voice rope will be retained until either a corresponding Forget is done or the class' garbage collection process determines that the voice rope is no longer referenced, e.g. refID no longer exists. Taken together, the vr, class, and refID must be unique. Repeated calls of Retain with the same parameters (ignoring other) will only register a single interest.
nb: VoiceRope.NB;
IF NOT RecordingServiceInterface[] THEN RETURN;
nb ← VoiceRopeServer.Retain[info.shhh, FinchSmarts.CurrentRName[], vr, class, refID, other];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to retain voicerope failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
};
Forget: PUBLIC PROC [handle: Handle ← NIL, vr: VoiceRope.VoiceRope, class: VoiceRope.InterestClass, refID: ROPE] ~ {
The specified refID of the specified class drops its interest in the voice rope. The voice rope is not necessarily deleted, however, since other interests in the same voice rope may exist.
nb: VoiceRope.NB;
IF NOT RecordingServiceInterface[] THEN RETURN;
nb ← VoiceRopeServer.Forget[info.shhh, vr, class, refID];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to forget voicerope failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
};
GetByInterest: PUBLIC PROC [handle: Handle ← NIL, class: VoiceRope.InterestClass, refID: ROPE] RETURNS [voiceRope: VoiceRope.VoiceRope] ~ {
Returns any voice rope that is of interest to the given class and refID; returns NIL if no such voice rope exists.
nb: VoiceRope.NB;
IF NOT RecordingServiceInterface[] THEN RETURN;
[nb, voiceRope] ← VoiceRopeServer.GetByInterest[info.shhh, class, refID];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to lookup voicerope by interest failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
};
Cat: PUBLIC PROC [handle: Handle ← NIL, vr1, vr2, vr3, vr4, vr5: VoiceRope.VoiceRope ← NIL] RETURNS [new: VoiceRope.VoiceRope←NIL] ~ {
Concatenates together the non-NIL voice ropes to produce a new voice rope.
nb: VoiceRope.NB;
IF NOT RecordingServiceInterface[] THEN RETURN;
[nb, new] ← VoiceRopeServer.Cat[info.shhh, FinchSmarts.CurrentRName[], vr1, vr2, vr3, vr4, vr5];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to cat voiceropes failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
};
Substr: PUBLIC PROC [handle: Handle ← NIL, vr: VoiceRope.VoiceRope, start: INT ← 0, len: INTLAST[INT]] RETURNS [new: VoiceRope.VoiceRope←NIL] ~ {
Creates a new voice rope that is a substring of an existing voice rope.
nb: VoiceRope.NB;
IF NOT RecordingServiceInterface[] THEN RETURN;
[nb, new] ← VoiceRopeServer.Substr[info.shhh, FinchSmarts.CurrentRName[], vr, start, len];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to substring voicerope failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
};
Replace: PUBLIC PROC [handle: Handle ← NIL, vr: VoiceRope.VoiceRope, start: INT ← 0, len: INTLAST[INT], with: VoiceRope.VoiceRope ← NIL] RETURNS [new: VoiceRope.VoiceRope←NIL] ~ {
Creates a new voice rope in which the given interval of the voice rope "vr" is replaced by the voice rope "with".
nb: VoiceRope.NB;
IF NOT RecordingServiceInterface[] THEN RETURN;
[nb, new] ← VoiceRopeServer.Replace[info.shhh, FinchSmarts.CurrentRName[], vr, start, len, with];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to replace part of a voicerope failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
};
Length: PUBLIC PROC [handle: Handle ← NIL, vr: VoiceRope.VoiceRope] RETURNS [len: INT𡤁] ~ {
Returns the actual length of the voice rope. This operation ignores the start and length values specified in the voice rope. Thus, vr.start ← 0; vr.length ← Length[handle, vr] will restore a voice rope to its full contents.
nb: VoiceRope.NB;
IF NOT RecordingServiceInterface[] THEN RETURN;
[nb, len] ← VoiceRopeServer.Length[info.shhh, vr];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to get voicerope length failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
};
DescribeRope: PUBLIC PROC [
handle: Handle ← NIL, vr: VoiceRope.VoiceRope, minSilence: INT ← -1]
RETURNS [noise: VoiceRope.IntervalSpecs←NIL] ~ {
nb: VoiceRope.NB;
len: INT;
IF NOT RecordingServiceInterface[] THEN RETURN;
[nb, len, noise] ← VoiceRopeServer.DescribeRope[info.shhh, vr, minSilence];
IF nb#$success THEN {
VoiceUtils.Problem[Rope.Concat["Attempt to describe voicerope failed - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
};
Report handling
Action reports are generated by the voice rope server when a request for $recording/$playback is $scheduled, $started, $finished, or $flushed. Reports are also available from FinchSmarts concerning the state of a conversation or Finch in general.
A list of pending requests is maintained as part of VoiceRopeInfo. This list is sorted so that the most recent request is at the head of the list. Upon receipt of a $finished or $flushed report, the associated request (and all previous requests) are removed from the pending request queue. All pending requests are flushed if the established conversation goes idle (i.e. the user hangs up). The condition, reportArrived, is raised whenever a new report is received. Procedures that wish to wait for a given action report may wait on this condition; they should then check the state of the pending request queue and take appropriate action (such as waiting again).
SystemReport: FinchSmarts.ReportSystemStateProc ~ {
Don't care about changes in system state at the moment.
NULL;
};
ConversationReport: FinchSmarts.ReportConversationStateProc ~ {
[ nb: NB, cDesc: ConvDesc, remark: ROPENIL ]
vrDesc: VoiceRopeDesc ← GetVRDesc[cDesc];
playbacksPending: BOOLFALSE;
IF vrDesc = NIL THEN RETURN;
IF vrDesc.pendingRequests#NIL THEN
FOR pR: PendingRequests ← vrDesc.pendingRequests, pR.rest WHILE pR#NIL DO
IF pR.first.class = $record THEN EXIT;
REPEAT FINISHED => playbacksPending ← TRUE;
ENDLOOP;
SELECT cDesc.situation.self.state FROM
$active => IF playbacksPending THEN [] ← ResumeNB[convID: cDesc.situation.self.convID];
$inactive => IF playbacksPending THEN [] ← PauseNB[convID: cDesc.situation.self.convID];
$idle, $neverWas, $failed => { -- throw away pending requests
RemoveRequests[vrDesc, NIL];
NotifyWaiters[vrDesc];
};
ENDCASE;
};
RequestReport: FinchSmarts.ReportRequestStateProc ~ {
[ cDesc: ConvDesc, actionReport: Thrush.ActionReport, actionRequest: REF ] RETURNS [betterActionRequest: REF]
request: PendingRequest;
vrDesc: VoiceRopeDesc ← GetVRDesc[cDesc];
betterActionRequest ← actionRequest;
IF vrDesc = NIL THEN RETURN; -- leave actionRequest alone
SELECT actionReport.actionClass FROM
$recording, $playback => {
request ← GetRequestByID[vrDesc, actionReport.actionID];
IF request = NIL THEN RETURN[NIL];
request.state ← actionReport.actionType;
SELECT request.state FROM
$scheduled, $started => NULL;
Throw away pending requests that are complete. This includes requests preceding the one being reported on.
$finished, $flushed =>
RemoveRequests[vrDesc, request];
ENDCASE;
NotifyWaiters[vrDesc];
};
ENDCASE;
RETURN; -- leave actionRequest alone
};
RelayProblems: VoiceRopeServerSunImport.ReportProblem ~ {
VoiceUtils.ProblemFR["%g: %g", $VoiceRope, NIL, atom[ec], rope[expl]];
};
The following routines manage the queue of pending requests. (They are the only monitor entry procedures in this module.)
GetRequestByID: ENTRY PROC [vrDesc: VoiceRopeDesc, id: RequestID] RETURNS [request: PendingRequest ← NIL] ~ {
IF vrDesc=NIL THEN RETURN;
FOR q: PendingRequests ← vrDesc.pendingRequests, q.rest WHILE q # NIL DO
IF q.first.id = id THEN RETURN[q.first];
ENDLOOP;
};
AddRequest: ENTRY PROC [vrDesc: VoiceRopeDesc, id: RequestID, class: Thrush.ActionClass ← $unknown] RETURNS [requestID: RequestID] ~ {
request: PendingRequest ← NEW[PendingRequestBody ←
[requestID ← IF id=VoiceRope.nullRequestID THEN NewRequestID[] ELSE id, class]];
vrDesc.pendingRequests ← CONS[request, vrDesc.pendingRequests];
};
RemoveRequests: ENTRY PROC [vrDesc: VoiceRopeDesc, request: PendingRequest] RETURNS [] ~ {
IF vrDesc=NIL THEN RETURN;
IF request = NIL OR vrDesc.pendingRequests = NIL OR vrDesc.pendingRequests.first = request THEN
vrDesc.pendingRequests ← NIL
ELSE
FOR q: PendingRequests ← vrDesc.pendingRequests, q.rest WHILE q.rest # NIL DO
IF q.rest.first = request THEN {
q.rest ← NIL; -- truncate queue to remove this and all previous requests
EXIT;
};
ENDLOOP;
};
NotifyWaiters: ENTRY PROC [vrDesc: VoiceRopeDesc] RETURNS [] ~ {
ENABLE UNWIND => NULL;
IF vrDesc=NIL THEN RETURN;
BROADCAST vrDesc.reportArrived;
};
Wait: ENTRY PROC [vrDesc: VoiceRopeDesc] RETURNS [] ~ {
ENABLE UNWIND => NULL;
IF vrDesc=NIL THEN RETURN;
WAIT vrDesc.reportArrived;
};
WaitForRequestState: PROC [vrDesc: VoiceRopeDesc, state: Thrush.ActionType, id: RequestID] RETURNS [] ~ {
request: PendingRequest;
timeout: Process.Ticks ← IF state = $started THEN Process.SecondsToTicks[2] ELSE Process.SecondsToTicks[10];
IF vrDesc=NIL THEN RETURN;
TRUSTED { Process.SetTimeout[@vrDesc.reportArrived, timeout]; };
DO
request ← GetRequestByID[vrDesc, id];
IF request = NIL THEN EXIT; -- completed or conv went idle
SELECT state FROM
$scheduled => SELECT request.state FROM
$scheduled, $started, $finished, $flushed => EXIT;
ENDCASE => NULL; -- unknown?
$started => SELECT request.state FROM
$started, $finished, $flushed => EXIT;
ENDCASE => NULL; -- probably $scheduled
$finished => SELECT request.state FROM
$finished, $flushed => EXIT;
ENDCASE => NULL; -- probably $scheduled or $started
ENDCASE => EXIT;
Wait[vrDesc];
ENDLOOP;
};
GetClientData: PUBLIC PROC[handle: Handle←NIL, cDesc: FinchSmarts.ConvDesc]
RETURNS[clientData: REF←NIL] = {
vrDesc: VoiceRopeDesc ← GetVRDesc[cDesc];
IF vrDesc#NIL THEN { -- vrDesc.cDesc←NIL; -- RETURN[vrDesc.clientData]; };
};
Establishing conversations and RPC connections
GetVRDesc: PROC[cDesc: FinchSmarts.ConvDesc] RETURNS[vrDesc: VoiceRopeDesc←NIL] = {
IF cDesc#NIL THEN
vrDesc ← NARROW[Atom.GetPropFromList[cDesc.props, $VoiceRopeDesc]];
IF vrDesc#NIL THEN vrDesc.cDesc ← cDesc;
};
GetConversation: PROC [
convID: Thrush.ConversationID, clientData: REFNIL,
createOK: BOOLTRUE, addOK: BOOLFALSE]
RETURNS [nb: VoiceRope.NB← $success, vrDesc: VoiceRopeDesc ← NIL] ~ {
cDesc: FinchSmarts.ConvDesc;
[nb, cDesc] ← FinchSmarts.ServiceConnect[recordingService, convID, createOK, addOK];
IF nb#$success THEN {
VoiceUtils.Problem[
Rope.Concat["Can't establish conversation - ",Atom.GetPName[nb]], $VoiceRope];
RETURN;
};
vrDesc ← GetVRDesc[cDesc];
IF vrDesc=NIL THEN {
vrDesc ← NEW[VoiceRopeDescBody ← []];
cDesc.props ← Atom.PutPropOnList[cDesc.props, $VoiceRopeDesc, vrDesc];
vrDesc.cDesc ← cDesc;
};
IF clientData#NIL THEN vrDesc.clientData ← clientData;
IF ~RecordingServiceInterface[vrDesc] THEN RETURN[$noServiceInterface, NIL];
};
RecordingServiceInterface: PROC[vrDesc: VoiceRopeDesc ← NIL] RETURNS [imported: BOOLEANTRUE] = {
nb: VoiceRope.NB;
interfaceSpec: Thrush.InterfaceSpec;
cDesc: FinchSmarts.ConvDesc ← IF vrDesc=NIL THEN NIL ELSE vrDesc.cDesc;
IF vrDesc#NIL AND vrDesc.serviceID#RefID.nullID THEN RETURN[TRUE];
[nb, interfaceSpec] ←
FinchSmarts.ObtainServiceInterface[recordingService, recordingServiceInterface, cDesc];
IF nb#$success THEN RETURN[FALSE];
IF vrDesc=NIL AND interfaceSpec.serviceID=info.serviceID THEN RETURN[TRUE];
info.shhh ← VoiceRopeServerSunImport.ImportInterface[instance: interfaceSpec.interfaceName.instance, reportProblem: RelayProblems, reportData: info];
info.serviceID ← interfaceSpec.serviceID;
IF vrDesc#NIL THEN { vrDesc.serviceID ← info.serviceID; vrDesc.shhh ← info.shhh; };
RETURN[TRUE];
};
NewRequestID: PUBLIC PROC RETURNS [VoiceRope.RequestID] = {
RETURN[LOOPHOLE[VoiceUtilsExtras.GetUniqueID[]]]};
VoiceRopeWhere: VoiceUtils.WhereProc = {
RETURN[VoiceUtils.FindWhere[$Finch, whereData]];
};
Initializations
FinchSmarts.RegisterForReports[key: $VoiceRope, c: ConversationReport, r: RequestReport];
VoiceUtils.RegisterWhereToReport[proc: VoiceRopeWhere, where: $VoiceRope];
END.
Doug Terry, August 14, 1986 9:40:42 am PDT
changes to: DIRECTORY, VoiceRopeClientImpl, EXPORTS, ~, Open, Record, Play, Stop, Retain, Forget, GetByInterest, Cat, Substr, Replace, Length, DescribeRope, Proc, Proc
Doug Terry, August 14, 1986 9:58:55 am PDT
changes to: DIRECTORY, VoiceRopeClientImpl, EXPORTS, ~, Open, Record, Play, Stop, Retain, Forget, GetByInterest, Cat, Substr, Replace, Length, DescribeRope, VoiceRopeInterface, Proc, Proc, END
Doug Terry, August 27, 1986 11:43:29 am PDT
changes to: DIRECTORY, VoiceRopeImpl, ~, Open, Play, Stop, VoiceRopeInterface, DescribeRope
Doug Terry, August 29, 1986 4:13:15 pm PDT
changes to: ~, Play, VoiceRopeImpl, Record, Stop, NewID, Proc, Retain, Forget, GetByInterest, Cat, Substr, Replace, Length, DescribeRope, RecordingServiceInterface
Doug Terry, September 5, 1986 4:28:37 pm PDT
changes to: DIRECTORY, IMPORTS, EXPORTS, ~, Handle, Open, Proc
Doug Terry, September 25, 1986 2:59:31 pm PDT
changes to: DIRECTORY, SystemReport, ConversationReport, RequestReport, FinchSmarts, Record
Doug Terry, September 29, 1986 5:56:59 pm PDT
changes to: SystemReport, Record, ConversationReport, RequestReport, ~
Doug Terry, October 3, 1986 3:51:47 pm PDT
changes to: ~, GetRequestByID, GetRequestByRef, NewRequest, RemoveRequests, NewID, Record, Play, ConversationReport, RequestReport, WaitForRequestState, DIRECTORY, IMPORTS, Retain, Forget, GetByInterest, Cat, Substr, Replace, Length, DescribeRope, RecordingServiceInterface, Stop, WaitForRequestState, Handle, Open
Doug Terry, October 3, 1986 4:45:36 pm PDT
changes to: RequestReport
Doug Terry, October 6, 1986 1:44:44 pm PDT
changes to: DIRECTORY, ~, Record, Play, Stop, Retain, Forget, GetByInterest, Cat, Substr, Replace, Length, DescribeRope, RecordingServiceInterface, IMPORTS
Doug Terry, October 9, 1986 8:00:18 pm PDT
changes to: Record, Stop, Retain, Forget, GetByInterest, Cat, Substr, Replace, Length, DescribeRope
Doug Terry, October 9, 1986 8:45:25 pm PDT
changes to: Wait, WaitForRequestState
Doug Terry, October 14, 1986 3:59:55 pm PDT
changes to: ConversationReport
Polle Zellweger (PTZ) July 20, 1987 5:57:28 pm PDT
Changes to allow TiogaVoice to monitor conversation state/reports about voicerope operations.
changes to: Record, Play, Stop, NewID=>NewRequestID
Polle Zellweger (PTZ) July 20, 1987 6:08:42 pm PDT
changes to: DIRECTORY, Record, Play, Stop, Retain, Forget, GetByInterest, Cat, Substr, Replace, Length, DescribeRope, GetConversation, RecordingServiceInterface, NewRequestID
Polle Zellweger (PTZ) July 21, 1987 12:04:32 pm PDT
changes to: DIRECTORY, Record, Play, Record, Play, Stop, StopNB
Swinehart, July 24, 1987 12:12:38 pm PDT
Merge disparate changes to VoiceRope. Improve error and connection recovery; adapt to interface changes in FinchSmarts.
changes to: DIRECTORY, ~, Open, Record, Play, queueIt, Stop, RecordNB, PlayNB, StopNB, Retain, Forget, GetByInterest, Cat, Substr, Replace, Length, DescribeRope, GetConversation, RecordingServiceInterface, NewRequestID
Polle Zellweger (PTZ) July 27, 1987 12:20:16 pm PDT
changes to: PlayNB, RecordNB, StopNB, GetClientData, GetConversation
Polle Zellweger (PTZ) October 30, 1987 7:11:17 pm PST
RequestReport was mistakenly returning a NIL betterRequestReport rather than returning its input. Didn't used to matter, but report callback registration now occurs in a different order than it used to.
changes to: RequestReport
Swinehart, February 26, 1988 2:52:44 pm PST
Adding ability to record an ongoing call.
changes to: RecordNB, PlayNB, StopNB, GetConversation
Swinehart, February 28, 1988 11:29:32 pm PST
Add (dangerous) Pause and Resume functions
changes to: PauseNB, ResumeNB, Retain
Polle Zellweger (PTZ) August 10, 1990 3:45:06 pm PDT
Change to call via Sun RPC rather than Pup RPC.
changes to: DIRECTORY, IMPORTS, RecordNB, PlayNB, StopNB, PauseNB, ResumeNB, Retain, Forget, GetByInterest, Cat, Substr, Replace, Length, DescribeRope, RecordingServiceInterface, NewRequestID
Polle Zellweger (PTZ) December 27, 1990 5:58:33 pm PST
Fix problem whereby all new voiceropes had voicerope ids listing Growler's last-logged-in-user as creator. Required widening VoiceRopeServer's interface.
changes to: DIRECTORY, Retain, Cat, Substr, Replace