org.netbeans.lib.collab
Interface MediaService


public interface MediaService

Author:
jerry

Method Summary
 void addListener(MediaListener listener)
          add a listener for Voip requests
 java.lang.String findMediaGateway()
          This method should be called from the client only It tries to find if there are any server-side components that can service voip requests
 java.lang.String getAddress(java.lang.String userid)
          Find media addresses of a user Used to locate the addresses at which a user can be reached This could be, for eg, a telephone number or a SIP url
 void initiate(java.lang.String target)
          Send a call initiate request
 void redirect(java.lang.String id, java.lang.String caller, java.lang.String redirLocation)
          Send a redirect to a caller.
 void removeListener(MediaListener listener)
          remove an active listener
 void terminate(java.lang.String id, java.lang.String target)
          Send a terminate request to the peer
 

Method Detail

addListener

public void addListener(MediaListener listener)
add a listener for Voip requests


removeListener

public void removeListener(MediaListener listener)
remove an active listener


initiate

public void initiate(java.lang.String target)
Send a call initiate request

Parameters:
target - the user id of the person to call

redirect

public void redirect(java.lang.String id,
                     java.lang.String caller,
                     java.lang.String redirLocation)
Send a redirect to a caller.

Parameters:
id - The session id
caller - User id of the caller who initiated the call

findMediaGateway

public java.lang.String findMediaGateway()
This method should be called from the client only It tries to find if there are any server-side components that can service voip requests


terminate

public void terminate(java.lang.String id,
                      java.lang.String target)
Send a terminate request to the peer

Parameters:
id - The session ID
target - the userid to send the request

getAddress

public java.lang.String getAddress(java.lang.String userid)
Find media addresses of a user Used to locate the addresses at which a user can be reached This could be, for eg, a telephone number or a SIP url

Parameters:
userid - the User whose addresses are to be found