org.jvoicexml.callmanager.mrcpv2
Class SipCallManager

java.lang.Object
  extended by org.jvoicexml.callmanager.mrcpv2.SipCallManager
All Implemented Interfaces:
CallManager, SessionListener, org.speechforge.zanzibar.speechlet.SpeechletService

public final class SipCallManager
extends Object
implements CallManager, org.speechforge.zanzibar.speechlet.SpeechletService, SessionListener

A SIP call manager.

Since:
0.7.3
Version:
$Revision: 2727 $
Author:
Spencer Lord, Dirk Schnelle-Walka

Constructor Summary
SipCallManager()
           
 
Method Summary
 void dtmf(org.speechforge.cairo.sip.SipSession session, char dtmf)
          
 String getCloudUrl()
           
 JVoiceXml getJVoiceXml()
          Retrieves the reference to the interpreter.
 void sessionEnded(Session session)
          
 void sessionStarted(Session session)
          
 void setApplications(Map<String,String> apps)
          Sets the configured applications.
 void setCloudUrl(String url)
           
 void setJVoiceXml(JVoiceXml jvoicexml)
          
 void setSipServer(org.speechforge.zanzibar.sip.SipServer server)
          Sets the SIP server.
 void shutdown()
          
 void start()
          
 void startNewCloudDialog(org.speechforge.cairo.sip.SipSession pbxSession, org.speechforge.cairo.rtp.server.RTPStreamReplicator rtpReplicator, com.spokentech.speechdown.client.rtp.RtpTransmitter rtpTransmitter)
          
 void startNewMrcpDialog(org.speechforge.cairo.sip.SipSession pbxSession, org.speechforge.cairo.sip.SipSession mrcpSession)
          
 void startup()
          
 void stop()
          
 void StopDialog(org.speechforge.cairo.sip.SipSession pbxSession)
           TODO Rename this method to "stopDialog" Need to change the interface first in the thirdparty jar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipCallManager

public SipCallManager()
Method Detail

getCloudUrl

public String getCloudUrl()
Returns:
the cloudUrl

setCloudUrl

public void setCloudUrl(String url)
Parameters:
url - the cloudUrl to set

setSipServer

public void setSipServer(org.speechforge.zanzibar.sip.SipServer server)
Sets the SIP server.

Parameters:
server - the sipServer to set

setApplications

public void setApplications(Map<String,String> apps)
Sets the configured applications.

Parameters:
apps - the configured applications

StopDialog

public void StopDialog(org.speechforge.cairo.sip.SipSession pbxSession)
                throws javax.sip.SipException
TODO Rename this method to "stopDialog" Need to change the interface first in the thirdparty jar.

Specified by:
StopDialog in interface org.speechforge.zanzibar.speechlet.SpeechletService
Throws:
javax.sip.SipException

dtmf

public void dtmf(org.speechforge.cairo.sip.SipSession session,
                 char dtmf)

Specified by:
dtmf in interface org.speechforge.zanzibar.speechlet.SpeechletService

startNewMrcpDialog

public void startNewMrcpDialog(org.speechforge.cairo.sip.SipSession pbxSession,
                               org.speechforge.cairo.sip.SipSession mrcpSession)
                        throws Exception

Specified by:
startNewMrcpDialog in interface org.speechforge.zanzibar.speechlet.SpeechletService
Throws:
Exception

startNewCloudDialog

public void startNewCloudDialog(org.speechforge.cairo.sip.SipSession pbxSession,
                                org.speechforge.cairo.rtp.server.RTPStreamReplicator rtpReplicator,
                                com.spokentech.speechdown.client.rtp.RtpTransmitter rtpTransmitter)
                         throws Exception

Specified by:
startNewCloudDialog in interface org.speechforge.zanzibar.speechlet.SpeechletService
Throws:
Exception

getJVoiceXml

public JVoiceXml getJVoiceXml()
Retrieves the reference to the interpreter.

Returns:
the interpreter

setJVoiceXml

public void setJVoiceXml(JVoiceXml jvoicexml)

Specified by:
setJVoiceXml in interface CallManager

startup

public void startup()

Specified by:
startup in interface org.speechforge.zanzibar.speechlet.SpeechletService

shutdown

public void shutdown()

Specified by:
shutdown in interface org.speechforge.zanzibar.speechlet.SpeechletService

start

public void start()
           throws NoresourceError,
                  IOException

Specified by:
start in interface CallManager
Throws:
NoresourceError
IOException

stop

public void stop()

Specified by:
stop in interface CallManager

sessionStarted

public void sessionStarted(Session session)

Specified by:
sessionStarted in interface SessionListener

sessionEnded

public void sessionEnded(Session session)

Specified by:
sessionEnded in interface SessionListener


Copyright © 2008-2010JVoiceXML group.