use of com.twilio.twiml.voice.Queue in project api-snippets by TwilioDevEd.
the class Example method service.
public void service(final HttpServletRequest request, final HttpServletResponse response) throws IOException {
Dial dial = new Dial.Builder().queue(new Queue.Builder("Queue Demo").build()).build();
VoiceResponse voiceResponse = new VoiceResponse.Builder().dial(dial).build();
try {
response.getWriter().print(voiceResponse.toXml());
} catch (TwiMLException e) {
e.printStackTrace();
}
}
Aggregations