public class MediaResourceBrokerGeneric extends RestcommUntypedActor
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.configuration.Configuration |
configuration |
protected java.lang.ClassLoader |
loader |
protected akka.actor.ActorRef |
localMediaGateway |
protected MediaServerEntity |
localMediaServerEntity |
protected java.lang.String |
localMsId |
protected java.util.Map<java.lang.String,akka.actor.ActorRef> |
mediaGatewayMap |
protected jain.protocol.ip.mgcp.JainMgcpProvider |
mgcpProvider |
protected jain.protocol.ip.mgcp.JainMgcpStack |
mgcpStack |
protected akka.actor.ActorRef |
monitoringService |
protected DaoManager |
storage |
| Constructor and Description |
|---|
MediaResourceBrokerGeneric() |
| Modifier and Type | Method and Description |
|---|---|
protected MediaGatewayForConference |
addConferenceDetailRecord(java.lang.String conferenceName,
Sid callSid) |
protected void |
addNewConferenceRecord(java.lang.String accountSid,
CallDetailRecord callRecord,
java.lang.String friendlyName)
addNewConferenceRecord
|
protected void |
bindMGCPStack(java.lang.String ip,
int port) |
protected void |
cleanup() |
protected akka.actor.ActorRef |
getConferenceMediaResourceController() |
protected void |
onGetMediaGateway(GetMediaGateway message,
akka.actor.ActorRef self,
akka.actor.ActorRef sender) |
void |
onReceive(java.lang.Object message) |
protected void |
onStartMediaResourceBroker(StartMediaResourceBroker message,
akka.actor.ActorRef self,
akka.actor.ActorRef sender) |
void |
postStop() |
protected akka.actor.ActorRef |
turnOnMediaGateway(MediaServerEntity mediaServerEntity) |
protected void |
updateMSIdinCallDetailRecord(java.lang.String msId,
Sid callSid) |
protected MediaServerEntity |
uploadLocalMediaServersInDataBase() |
supervisorStrategyprotected org.apache.commons.configuration.Configuration configuration
protected DaoManager storage
protected java.lang.ClassLoader loader
protected akka.actor.ActorRef monitoringService
protected akka.actor.ActorRef localMediaGateway
protected java.lang.String localMsId
protected java.util.Map<java.lang.String,akka.actor.ActorRef> mediaGatewayMap
protected jain.protocol.ip.mgcp.JainMgcpStack mgcpStack
protected jain.protocol.ip.mgcp.JainMgcpProvider mgcpProvider
protected MediaServerEntity localMediaServerEntity
public void onReceive(java.lang.Object message)
throws java.lang.Exception
onReceive in class akka.actor.UntypedActorjava.lang.Exceptionprotected void onStartMediaResourceBroker(StartMediaResourceBroker message, akka.actor.ActorRef self, akka.actor.ActorRef sender) throws java.net.UnknownHostException
message - self - sender - java.net.UnknownHostExceptionprotected void bindMGCPStack(java.lang.String ip,
int port)
throws java.net.UnknownHostException
ip - port - java.net.UnknownHostExceptionprotected akka.actor.ActorRef turnOnMediaGateway(MediaServerEntity mediaServerEntity) throws java.net.UnknownHostException
mediaServerEntity - java.net.UnknownHostExceptionprotected akka.actor.ActorRef getConferenceMediaResourceController()
protected void onGetMediaGateway(GetMediaGateway message, akka.actor.ActorRef self, akka.actor.ActorRef sender) throws java.lang.Exception
message - - GetMediaGateway
- (callSid: if MediaGateway is required for a call
- conferenceName: if MediaGateway is required for a conference
- msId: or if MediaGateway is required for a specific MediaServer in cluster)self - sender - java.lang.Exceptionprotected void updateMSIdinCallDetailRecord(java.lang.String msId,
Sid callSid)
msId - callSid - protected MediaGatewayForConference addConferenceDetailRecord(java.lang.String conferenceName, Sid callSid) throws java.lang.Exception
conferenceName - callSid - java.lang.Exceptionprotected void addNewConferenceRecord(java.lang.String accountSid,
CallDetailRecord callRecord,
java.lang.String friendlyName)
accountSid - callRecord - friendlyName - protected MediaServerEntity uploadLocalMediaServersInDataBase()
public void postStop()
postStop in interface akka.actor.ActorpostStop in class akka.actor.UntypedActorprotected void cleanup()
Copyright © 2018. All Rights Reserved.