如何存储每个频道的录音

时间:2017-10-02 04:21:40

标签: twilio twilio-api twilio-click-to-call twilio-functions

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

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

有人可以帮忙。?

callCreator.setRecordingChannels( “5”);要么 callCreator.setRecordingChannels( “双”); 没有帮助

这是完整的课程

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);
        }
    }

}

0 个答案:

没有答案