Class CallController

java.lang.Object
com.bytedesk.freeswitch.controller.CallController

@RestController @RequestMapping("/api/v1/call") public class CallController extends Object
呼叫控制器
  • Field Details

    • log

      private static final org.slf4j.Logger log
    • callService

      private final CallService callService
  • Constructor Details

    • CallController

      public CallController()
  • Method Details

    • makeCall

      @PostMapping("/make") public org.springframework.http.ResponseEntity<?> makeCall(@RequestBody Map<String,String> request)
      发起呼叫
    • answerCall

      @PostMapping("/{callId}/answer") public org.springframework.http.ResponseEntity<?> answerCall(@PathVariable String callId)
      应答呼叫
    • rejectCall

      @PostMapping("/{callId}/reject") public org.springframework.http.ResponseEntity<?> rejectCall(@PathVariable String callId)
      拒绝呼叫
    • endCall

      @PostMapping("/{callId}/end") public org.springframework.http.ResponseEntity<?> endCall(@PathVariable String callId)
      结束呼叫
    • sendDtmf

      @PostMapping("/{callId}/dtmf") public org.springframework.http.ResponseEntity<?> sendDtmf(@PathVariable String callId, @RequestBody Map<String,String> request)
      发送DTMF
    • toggleMute

      @PostMapping("/{callId}/mute") public org.springframework.http.ResponseEntity<?> toggleMute(@PathVariable String callId, @RequestBody Map<String,Boolean> request)
      开关静音