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 Details

    • eslClient

      private final org.freeswitch.esl.client.inbound.Client eslClient
    • callProperties

      private final CallFreeswitchProperties callProperties
  • Constructor Details

    • CallService

      public CallService()
  • Method Details

    • executeApiCommand

      public String executeApiCommand(String command, String args)
      执行Call API命令
    • originate

      public String originate(String caller, String destination, String context)
      发起呼叫
    • hangup

      public String hangup(String uuid, String cause)
      挂断呼叫
    • answer

      public String answer(String uuid)
      应答呼叫
    • transfer

      public String transfer(String uuid, String destination, String context)
      转接呼叫
    • playback

      public String playback(String uuid, String filePath)
      播放语音文件
    • record

      public String record(String uuid, String filePath)
      录音
    • stopRecord

      public String stopRecord(String uuid, String filePath)
      停止录音
    • getChannelVar

      public String getChannelVar(String uuid, String varName)
      获取通道变量
    • setChannelVar

      public String setChannelVar(String uuid, String varName, String varValue)
      设置通道变量
    • sendDtmf

      public String sendDtmf(String uuid, String digits)
      发送DTMF
    • showChannels

      public String showChannels()
      获取活动通道列表
    • showCalls

      public String showCalls()
      获取活动呼叫数量
    • reloadModule

      public String reloadModule(String moduleName)
      重新加载模块
    • sendMessage

      public void sendMessage(String uuid, String application, String... args)
      发送消息到通道
    • isConnected

      public boolean isConnected()
      检查Call连接状态
    • getStatus

      public String getStatus()
      获取Call状态信息
    • createUser

      public String createUser(String domain, String userId, String password)
      创建用户
    • getProperties

      public CallFreeswitchProperties getProperties()
      获取配置信息