File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
main/java/com/bandwidth/voice/bxml/verbs Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,11 @@ public class Ring implements Verb {
1919 */
2020 @ XmlAttribute
2121 private Double duration ;
22+
23+ /**
24+ * (optional) A boolean indicating whether or not to answer the call when Ring is executed on an unanswered
25+ * incoming call. Default value is 'true'.
26+ */
27+ @ XmlAttribute
28+ private boolean answerCall ;
2229}
Original file line number Diff line number Diff line change @@ -429,14 +429,15 @@ public void testStopRecording() {
429429 @ Test
430430 public void testRing () {
431431 Ring ring = Ring .builder ()
432- .duration (3.0 )
433- .build ();
432+ .duration (3.0 )
433+ .answerCall (false )
434+ .build ();
434435
435436 String response = new Response ()
436437 .add (ring )
437438 .toBXML ();
438439
439- String expected = "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?><Response><Ring duration=\" 3.0\" /></Response>" ;
440+ String expected = "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?><Response><Ring duration=\" 3.0\" answerCall= \" false \" /></Response>" ;
440441
441442 assertEquals ("BXML strings not equal" , expected , response );
442443 }
You can’t perform that action at this time.
0 commit comments