Class CallController
java.lang.Object
com.bytedesk.freeswitch.controller.CallController
呼叫控制器
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
answerCall
(String callId) 应答呼叫org.springframework.http.ResponseEntity<?>
结束呼叫org.springframework.http.ResponseEntity<?>
发起呼叫org.springframework.http.ResponseEntity<?>
rejectCall
(String callId) 拒绝呼叫org.springframework.http.ResponseEntity<?>
发送DTMForg.springframework.http.ResponseEntity<?>
toggleMute
(String callId, Map<String, Boolean> request) 开关静音
-
Field Details
-
log
private static final org.slf4j.Logger log -
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) 开关静音
-