I am following following blog to click to call. https://www.twilio.com/docs/tutorials/click-to-call-java-spring
I am able to place call and record too. But how can we store recording for each channel ?
Can someone please help.?
callCreator.setRecordingChannels("5"); or callCreator.setRecordingChannels("dual"); does not help
Here is the complete class
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);
}
}
}