Package com.bytedesk.call.config
Class CallService
java.lang.Object
com.bytedesk.call.config.CallService
@Service
@ConditionalOnProperty(prefix="bytedesk.call.freeswitch",
name="enabled",
havingValue="true",
matchIfMissing=false)
public class CallService
extends Object
Call核心服务类
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallFreeswitchProperties
private final org.freeswitch.esl.client.inbound.Client
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription应答呼叫createUser
(String domain, String userId, String password) 创建用户executeApiCommand
(String command, String args) 执行Call API命令getChannelVar
(String uuid, String varName) 获取通道变量获取配置信息获取Call状态信息挂断呼叫boolean
检查Call连接状态发起呼叫播放语音文件录音reloadModule
(String moduleName) 重新加载模块发送DTMFvoid
sendMessage
(String uuid, String application, String... args) 发送消息到通道setChannelVar
(String uuid, String varName, String varValue) 设置通道变量获取活动呼叫数量获取活动通道列表stopRecord
(String uuid, String filePath) 停止录音转接呼叫
-
Field Details
-
eslClient
private final org.freeswitch.esl.client.inbound.Client eslClient -
callProperties
-
-
Constructor Details
-
CallService
public CallService()
-
-
Method Details
-
executeApiCommand
执行Call API命令 -
originate
发起呼叫 -
hangup
挂断呼叫 -
answer
应答呼叫 -
transfer
转接呼叫 -
playback
播放语音文件 -
record
录音 -
stopRecord
停止录音 -
getChannelVar
获取通道变量 -
setChannelVar
设置通道变量 -
sendDtmf
发送DTMF -
showChannels
获取活动通道列表 -
showCalls
获取活动呼叫数量 -
reloadModule
重新加载模块 -
sendMessage
发送消息到通道 -
isConnected
public boolean isConnected()检查Call连接状态 -
getStatus
获取Call状态信息 -
createUser
创建用户 -
getProperties
获取配置信息
-