org.jvoicexml.implementation.telephony
Interface Terminal

All Known Subinterfaces:
StreamingTerminal

public interface Terminal

A Terminal represents a telephony endpoint managed by a JVoiceXML provider - i.e. It is the line that a person calls to interact with a VoiceXML application.

Since:
0.3
Author:
Davide Bruzzone

Method Summary
 void answer()
          Answers an incoming call.
 String getName()
          Returns the terminal's name.
 void hangup()
          Hangs up a call that's currently in progress.
 void playFile(String filename)
          Plays the specified file.
 void record(String filename)
          Records incoming audio (i.e.
 void setName(String name)
          Sets the terminal's name.
 

Method Detail

getName

String getName()
Returns the terminal's name. A provider's terminals must each have a unique name (but different providers' terminals can have the same name).

Returns:
The terminal's name

setName

void setName(String name)
Sets the terminal's name. A provider's terminals must each have a unique name (but different providers' terminals can have the same name).

Parameters:
name - The terminal's name

answer

void answer()
Answers an incoming call.


hangup

void hangup()
Hangs up a call that's currently in progress.


playFile

void playFile(String filename)
Plays the specified file.

Parameters:
filename - The name of the file to play

record

void record(String filename)
Records incoming audio (i.e. Spoken or DTMF commands) in the specified file.

Parameters:
filename - The name of the file in which incoming audio is recorded


Copyright © 2005-2007 JVoiceXML group.