0

我正在关注以下博客点击通话。 https://www.twilio.com/docs/tutorials/click-to-call-java-spring

我也可以拨打电话和录音。但是我们如何存储每个频道的录音呢?

有人可以帮忙吗?

callCreator.setRecordingChannels("5"); 或调用Creator.setRecordingChannels("dual"); 没有帮助

这是完整的课程

public class TwilioLine {
    private String twilioNumber;
    private TwilioRestClient restClient;

    public TwilioLine(TwilioRestClient restClient, String twilioNumber) {
        this.restClient = restClient;
        this.twilioNumber = twilioNumber;
    }

    public void call(final String phoneNumber, final String responseUrl)  {
        try {
            CallCreator callCreator = new CallCreator(new PhoneNumber(phoneNumber), new PhoneNumber(twilioNumber), new URI(responseUrl));
            callCreator.setRecord(true);
            callCreator.setSendDigits("8245719056");
            callCreator.setRecordingChannels("5");
            callCreator.create(restClient);
        } catch (URISyntaxException e) {
            throw new CallException(e);
        }
    }

}
4

0 回答 0