local.ua
Class MiniJukebox
java.lang.Object
|
+--local.ua.CommandLineUA
|
+--local.ua.MiniJukebox
- All Implemented Interfaces:
- RegisterAgentListener, UserAgentListener
- public class MiniJukebox
- extends CommandLineUA
MiniJukebox is a simple audio server that automatically responds to all incoming calls
and sends the audio file as selected by the caller through the request-line parameter
'audiofile'.
|
Constructor Summary |
MiniJukebox(org.zoolu.sip.provider.SipProvider sip_provider,
UserAgentProfile user_profile)
Costructs a new MiniJukebox. |
|
Method Summary |
static void |
main(java.lang.String[] args)
The main method. |
void |
onUaCallIncoming(UserAgent ua,
org.zoolu.sip.address.NameAddress callee,
org.zoolu.sip.address.NameAddress caller)
When a new call is incoming |
| Methods inherited from class local.ua.CommandLineUA |
call, exit, listen, loopRegister, onUaCallAccepted, onUaCallCancelled, onUaCallClosed, onUaCallFailed, onUaCallRinging, onUaCallTrasferred, onUaRegistrationFailure, onUaRegistrationSuccess, printOut, readLine, register, unregister, unregisterall |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAM_RESOURCE
public static java.lang.String PARAM_RESOURCE
MiniJukebox
public MiniJukebox(org.zoolu.sip.provider.SipProvider sip_provider,
UserAgentProfile user_profile)
- Costructs a new MiniJukebox.
onUaCallIncoming
public void onUaCallIncoming(UserAgent ua,
org.zoolu.sip.address.NameAddress callee,
org.zoolu.sip.address.NameAddress caller)
- When a new call is incoming
- Overrides:
onUaCallIncoming in class CommandLineUA
main
public static void main(java.lang.String[] args)
- The main method.