diff --git a/src/main/java/com/bandwidth/voice/bxml/verbs/Ring.java b/src/main/java/com/bandwidth/voice/bxml/verbs/Ring.java
index 5efd28d9..111c9f8f 100644
--- a/src/main/java/com/bandwidth/voice/bxml/verbs/Ring.java
+++ b/src/main/java/com/bandwidth/voice/bxml/verbs/Ring.java
@@ -19,4 +19,11 @@ public class Ring implements Verb {
*/
@XmlAttribute
private Double duration;
+
+ /**
+ * (optional) A boolean indicating whether or not to answer the call when Ring is executed on an unanswered
+ * incoming call. Default value is 'true'.
+ */
+ @XmlAttribute
+ private boolean answerCall;
}
diff --git a/src/test/java/com/bandwidth/BxmlTest.java b/src/test/java/com/bandwidth/BxmlTest.java
index 44732ecb..cf83164b 100644
--- a/src/test/java/com/bandwidth/BxmlTest.java
+++ b/src/test/java/com/bandwidth/BxmlTest.java
@@ -429,14 +429,15 @@ public void testStopRecording() {
@Test
public void testRing() {
Ring ring = Ring.builder()
- .duration(3.0)
- .build();
+ .duration(3.0)
+ .answerCall(false)
+ .build();
String response = new Response()
.add(ring)
.toBXML();
- String expected = "";
+ String expected = "";
assertEquals("BXML strings not equal", expected, response);
}