我正在关注以下博客点击致电。 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);
}
}
}