Skip to content

Commit

Permalink
fix: DTMF listener eventUrl case
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Oct 17, 2024
1 parent cc639cd commit 913ed0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

class AddDtmfListenerRequest extends JsonableBaseObject {
@JsonIgnore final String uuid;
@JsonProperty("eventUrl") final Collection<URI> eventUrl;
@JsonProperty("event_url") final Collection<URI> eventUrl;

public AddDtmfListenerRequest(String uuid, URI eventUrl) {
this.uuid = uuid;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/vonage/client/voice/VoiceClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ public TalkResponse stopTalk(String uuid) throws VonageResponseParseException, V
}

/**
* Add a listener for asynchronous DTMF events sent by a caller to an
* Register a listener for asynchronous DTMF events sent by a caller to an
* {@linkplain com.vonage.client.voice.ncco.InputAction} NCCO action, when the
* {@linkplain com.vonage.client.voice.ncco.InputAction.Builder#mode(InputMode)} is
* {@link com.vonage.client.voice.ncco.InputMode#ASYNCHRONOUS}.
Expand All @@ -502,7 +502,7 @@ public void addDtmfListener(String uuid, String eventUrl) throws VoiceResponseEx
}

/**
* Remove the listener for asynchronous DTMF events sent by a caller to an
* Stop receiving updates for asynchronous DTMF events sent by a caller to an
* {@linkplain com.vonage.client.voice.ncco.InputAction} NCCO, when the
* {@linkplain com.vonage.client.voice.ncco.InputAction.Builder#mode(InputMode)} is
* {@link com.vonage.client.voice.ncco.InputMode#ASYNCHRONOUS}. Calling this method
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/vonage/client/voice/VoiceClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ protected AddDtmfListenerRequest sampleRequest() {

@Override
protected String sampleRequestBodyString() {
return "{\"eventUrl\":[\""+url+"\"]}";
return "{\"event_url\":[\""+url+"\"]}";
}
}
.runTests();
Expand Down

0 comments on commit 913ed0f

Please sign in to comment.