public final class CallFactoryInternal extends Enum
call.getCallPolicies().setMediaServerInclusion(MediaServerInclusion.INCLUDED); final MediaServiceInternal mediaService = (MediaServiceInternal) MediaFactory.createMediaService(); mediaService.sendMsml(call, "nullOp", new MyNullOpListener(call.getId()));where MyNullOpListener is defined somewhat like this:
private class MyNullOpListener implements MsmlListener
{
private final String callId;
public MyNullOpListener(final String callId)
{
this.callId = callId;
}
@Override
public void msmlResponse(final int errorCode, final String errorDescription, final String msmlResponse,
final Object msmlResponseAsObjects)
{
// TODO - Take some other action if an error occurred.
final Call call = CallFactory.getCall(callId);
final Participant callingParticipant = ParticipantFactory.create("3200", "dr.avaya.com");
final Call newCall = CallFactoryInternal.INSTANCE.createMediaJoinableCall(callingParticipant, "3202@avaya.com", call);
newCall.initiate();
}
@Override
public boolean msmlEventReceived(final String msmlEventResponse, final Object msmlEventResponseAsObjects)
{
// Do nothing.
}
}
At the point that the msmlResponse callback is invoked with no indication of error, it can be assumed that the media server has been
fully shuffled into the call.| Modifier and Type | Field and Description |
|---|---|
static CallFactoryInternal |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Call |
create(Participant callingParticipant,
String target)
Don't use. Use CallFactory class instead.
|
Call |
create(String from,
String to,
Identity onBehalfOf)
Don't use. Use CallFactory class instead.
|
Call |
createMediaJoinableCall(Participant callingParty,
String target,
Call relatedCall)
For Avaya internal use only.
Create a one party call, similar to CallFactory.create(final Participant callingParty, final String target), where the call is guaranteed to be MSML-joinable to the relatedCall that is passed in. |
Call |
createMediaJoinableCall(String from,
String to,
Identity onBehalfOf,
Call relatedCall)
For Avaya internal use only.
Create a two party call, similar to create(final String from, final String to, final Identity onBehalfOf), where the call is guaranteed to be MSML-joinable to the relatedCall that is passed in. |
Call |
getCall(String callId)
Don't use. Use CallFactory class instead.
|
static CallFactoryInternal |
valueOf(String name) |
static CallFactoryInternal[] |
values() |
public static final CallFactoryInternal INSTANCE
public static CallFactoryInternal[] values()
public static CallFactoryInternal valueOf(String name)
public Call create(Participant callingParticipant, String target)
public Call create(String from, String to, Identity onBehalfOf)
public Call createMediaJoinableCall(Participant callingParty, String target, Call relatedCall)
callingParty - - see CallFactory.create(final Participant callingParty, final String target) for detailstarget - - see CallFactory.create(final Participant callingParty, final String target) for detailsrelatedCall - - the call that needs to be MSML-joinable to the new call.public Call createMediaJoinableCall(String from, String to, Identity onBehalfOf, Call relatedCall)
from - - see CallFactory.create(final String from, final String to, final Identity onBehalfOf) for detailsto - - see CallFactory.create(final String from, final String to, final Identity onBehalfOf) for detailsonBehalfOf - - see CallFactory.create(final String from, final String to, final Identity onBehalfOf) for detailsrelatedCall - - the call that needs to be MSML-joinable to the new call.Copyright © 2021 Avaya. All rights reserved.