public class MediaResourceBrokerGeneric extends RestcommUntypedActor
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.configuration.Configuration |
configuration |
protected ClassLoader |
loader |
protected akka.actor.ActorRef |
localMediaGateway |
protected MediaServerEntity |
localMediaServerEntity |
protected String |
localMsId |
protected Map<String,akka.actor.ActorRef> |
mediaGatewayMap |
protected jain.protocol.ip.mgcp.JainMgcpProvider |
mgcpProvider |
protected jain.protocol.ip.mgcp.JainMgcpStack |
mgcpStack |
protected DaoManager |
storage |
| Constructor and Description |
|---|
MediaResourceBrokerGeneric() |
| Modifier and Type | Method and Description |
|---|---|
protected MediaGatewayForConference |
addConferenceDetailRecord(String conferenceName,
Sid callSid) |
protected void |
addNewConferenceRecord(String accountSid,
CallDetailRecord callRecord,
String friendlyName)
addNewConferenceRecord
|
protected void |
bindMGCPStack(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(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(String msId,
Sid callSid) |
protected MediaServerEntity |
uploadLocalMediaServersInDataBase() |
supervisorStrategyprotected org.apache.commons.configuration.Configuration configuration
protected DaoManager storage
protected ClassLoader loader
protected akka.actor.ActorRef localMediaGateway
protected String localMsId
protected jain.protocol.ip.mgcp.JainMgcpStack mgcpStack
protected jain.protocol.ip.mgcp.JainMgcpProvider mgcpProvider
protected MediaServerEntity localMediaServerEntity
public void onReceive(Object message) throws Exception
onReceive in class akka.actor.UntypedActorExceptionprotected void onStartMediaResourceBroker(StartMediaResourceBroker message, akka.actor.ActorRef self, akka.actor.ActorRef sender) throws UnknownHostException
message - self - sender - UnknownHostExceptionprotected void bindMGCPStack(String ip, int port) throws UnknownHostException
ip - port - UnknownHostExceptionprotected akka.actor.ActorRef turnOnMediaGateway(MediaServerEntity mediaServerEntity) throws UnknownHostException
mediaServerEntity - UnknownHostExceptionprotected akka.actor.ActorRef getConferenceMediaResourceController()
protected void onGetMediaGateway(GetMediaGateway message, akka.actor.ActorRef self, akka.actor.ActorRef sender) throws 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 - Exceptionprotected void updateMSIdinCallDetailRecord(String msId, Sid callSid)
msId - callSid - protected MediaGatewayForConference addConferenceDetailRecord(String conferenceName, Sid callSid) throws Exception
conferenceName - callSid - Exceptionprotected void addNewConferenceRecord(String accountSid, CallDetailRecord callRecord, 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 © 2017. All Rights Reserved.