public interface PBX
Modifier and Type | Method and Description |
---|---|
BlindTransferActivity |
blindTransfer(Call call,
Call.OperandChannel channelToTransfer,
EndPoint transferTarget,
CallerID toCallerID,
boolean autoAnswer,
long timeout)
The BlindTransferActivity is used by the AsteriksPBX to transfer a live
channel to an endpoint that may need to be dialed.
|
void |
blindTransfer(Call call,
Call.OperandChannel channelToTransfer,
EndPoint transferTarget,
CallerID toCallerID,
boolean autoAnswer,
long timeout,
ActivityCallback<BlindTransferActivity> callback)
The BlindTransferActivity is used by the AsteriksPBX to transfer a live
channel to an endpoint that may need to be dialed.
|
CallerID |
buildCallerID(String number,
String name) |
EndPoint |
buildEndPoint(String fullyQualifiedEndPointName)
Builds an end point from a fully qualified end point name.
|
EndPoint |
buildEndPoint(TechType defaultTech,
String endPointName)
Builds an iEndPoint from an end point name.
|
EndPoint |
buildEndPoint(TechType tech,
Trunk trunk,
String endPointName) |
Trunk |
buildTrunk(String string) |
void |
conference(Channel channelOne,
Channel channelTwo,
Channel channelThree)
Sends a DTMF tone to given channel.
|
void |
conference(Channel channelOne,
Channel channelTwo,
Channel channelThree,
ActivityCallback<Activity> callback)
Sends a DTMF tone to the given channel.
|
DialActivity |
dial(EndPoint from,
CallerID fromCallerID,
EndPoint to,
CallerID toCallerID)
Dials the given phone number using the specified trunk.
|
void |
dial(EndPoint from,
CallerID fromCallerID,
EndPoint to,
CallerID toCallerID,
ActivityCallback<DialActivity> callback)
Dials the given phone number using the specified trunk.
|
Channel |
getChannelByEndPoint(EndPoint endPoint)
Returns the channel currently attached to the given end point, if one
exists.
|
EndPoint |
getExtensionAgi() |
void |
hangup(Call call)
Hangup the given call, not returning until the call is hungup.
|
void |
hangup(Channel channel)
Hangs up the given channel.
|
void |
hangup(Channel channel,
ActivityCallback<Activity> callback)
Hangs up the given channel.
|
HoldActivity |
hold(Channel channel)
Put the given channel on hold.
|
boolean |
isBridgeSupported()
Returns true if the bridge function is supported.
|
boolean |
isChannel(String channel) |
boolean |
isMuteSupported()
Returns true if the mute function is supported.
|
JoinActivity |
join(Call lhs,
Call.OperandChannel originatingOperand,
Call rhs,
Call.OperandChannel acceptingOperand,
CallDirection direction)
Joins two calls not returning until the join completes.
|
void |
join(Call lhs,
Call.OperandChannel originatingOperand,
Call rhs,
Call.OperandChannel acceptingOperand,
CallDirection direction,
ActivityCallback<JoinActivity> listener) |
ParkActivity |
park(Call call,
Channel parkChannel)
Parks a call by moving the parkChannel to the parking lot and hanging up
the hangupChannel.
|
void |
park(Call call,
Channel parkChannel,
ActivityCallback<ParkActivity> callback)
Parks a call by moving the parkChannel to the parking lot and hanging up
the hangupChannel.
|
void |
performPostCreationTasks() |
RedirectToActivity |
redirectToActivity(Channel channel,
ActivityCallback<RedirectToActivity> listener) |
void |
sendDTMF(Channel channel,
DTMFTone tone)
Sends a DTMF tone to given channel.
|
void |
sendDTMF(Channel channel,
DTMFTone tone,
ActivityCallback<Activity> callback)
Sends a DTMF tone to the given channel.
|
void |
shutdown()
Call this method when shutting down the PBX interface to allow it to
cleanup.
|
void |
split(Call callToSplit) |
SplitActivity |
split(Call callToSplit,
ActivityCallback<SplitActivity> listener)
Splits a call (with two channels) This call returns once the split action
has completed.
|
void |
transferToMusicOnHold(Channel channel) |
boolean |
waitForChannelsToQuiescent(List<Channel> channels,
long timeout) |
boolean |
waitForChannelToQuiescent(Channel channel,
int timeout) |
void shutdown()
boolean isBridgeSupported()
BlindTransferActivity blindTransfer(Call call, Call.OperandChannel channelToTransfer, EndPoint transferTarget, CallerID toCallerID, boolean autoAnswer, long timeout)
channelToTransfer
- the channel which is to be blind transferedtransferTarget
- the endPoint to which the channel is to be
tranferred.toCallerID
- - the callerID to display to the transferTarget during
the transfer.autoAnswer
- - if true then the transferTarget is to be sent an auto
answer headertimeout
- - timeout (in seconds) for the blind transfer attempt.
When the timeout is reached the Blind Transfer will be
cancelled.ActivityCallback
- void blindTransfer(Call call, Call.OperandChannel channelToTransfer, EndPoint transferTarget, CallerID toCallerID, boolean autoAnswer, long timeout, ActivityCallback<BlindTransferActivity> callback)
channelToTransfer
- the channel which is to be blind transferedtransferTarget
- the endPoint to which the channel is to be
transferred.toCallerID
- - the callerID to display to the transferTarget during
the transfer.autoAnswer
- - if true then the transferTarget is to be sent an auto
answer headertimeout
- - timeout for the blind transfer attempt. When the timeout
is reached the Blind Transfer will be cancelled.void conference(Channel channelOne, Channel channelTwo, Channel channelThree)
channel
- void conference(Channel channelOne, Channel channelTwo, Channel channelThree, ActivityCallback<Activity> callback)
channel
- callback
- DialActivity dial(EndPoint from, CallerID fromCallerID, EndPoint to, CallerID toCallerID)
void dial(EndPoint from, CallerID fromCallerID, EndPoint to, CallerID toCallerID, ActivityCallback<DialActivity> callback)
void hangup(Channel channel) throws PBXException
channel
- PBXException
void hangup(Channel channel, ActivityCallback<Activity> callback)
channel
- callback
- void hangup(Call call) throws PBXException
call
- PBXException
HoldActivity hold(Channel channel)
channel
- boolean isMuteSupported()
ParkActivity park(Call call, Channel parkChannel)
the
- call which is to be parked.parkChannel
- - the channel which is going to be redirect to the
njr-park extension.hangupChannel
- - the channel which is going to be hungup.void park(Call call, Channel parkChannel, ActivityCallback<ParkActivity> callback)
the
- call which is to be parked.parkChannel
- - the channel which is going to be redirect to the
njr-park extension.void sendDTMF(Channel channel, DTMFTone tone) throws PBXException
channel
- PBXException
void sendDTMF(Channel channel, DTMFTone tone, ActivityCallback<Activity> callback)
channel
- callback
- SplitActivity split(Call callToSplit, ActivityCallback<SplitActivity> listener) throws PBXException
PBXException
RedirectToActivity redirectToActivity(Channel channel, ActivityCallback<RedirectToActivity> listener)
void split(Call callToSplit) throws PBXException
PBXException
JoinActivity join(Call lhs, Call.OperandChannel originatingOperand, Call rhs, Call.OperandChannel acceptingOperand, CallDirection direction)
void join(Call lhs, Call.OperandChannel originatingOperand, Call rhs, Call.OperandChannel acceptingOperand, CallDirection direction, ActivityCallback<JoinActivity> listener)
Channel getChannelByEndPoint(EndPoint endPoint)
EndPoint buildEndPoint(String fullyQualifiedEndPointName)
fullyQualifiedEndPointName
- EndPoint buildEndPoint(TechType defaultTech, String endPointName)
endPointName
- void transferToMusicOnHold(Channel channel) throws PBXException
PBXException
boolean isChannel(String channel)
EndPoint getExtensionAgi()
boolean waitForChannelToQuiescent(Channel channel, int timeout)
void performPostCreationTasks()
Copyright © 2004–2017. All rights reserved.