Skip to content

Commit

Permalink
Merge pull request #346 from plivo/verify-dtmf
Browse files Browse the repository at this point in the history
dtmf changes for verify session
  • Loading branch information
narayana-plivo authored Oct 10, 2024
2 parents 520d083 + 8fe54d6 commit 038c372
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Change Log
## [v4.69.1](https://github.com/plivo/plivo-node/tree/v4.69.1) (2024-10-10)
**Feature - Dtmf param in Create, Get and List Session**
- Support for the `dtmf` parameter in voice verify session request
- Added support for `dtmf` in GET and LIST verify session.
-
## [v4.69.0](https://github.com/plivo/plivo-node/tree/v4.69.0) (2024-09-30)
**Feature - Adding new param support for Number Masking session with single party **
- Added `create_session_with_single_party`, `virtual_number_cooloff_period` and `force_pin_authentication` attributes in Masking Session
Expand Down
6 changes: 5 additions & 1 deletion lib/resources/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class SessionInterface extends PlivoResourceInterface {
create(sessionReq){

var isObject = arguments.length;
var app_uuid, recipient, url, method, channel, locale , brand_name, app_hash , code_length
var app_uuid, recipient, url, method, channel, locale , brand_name, app_hash , code_length, dtmf

if (isObject === 1) {
app_uuid = sessionReq.app_uuid
Expand All @@ -152,6 +152,7 @@ export class SessionInterface extends PlivoResourceInterface {
brand_name = sessionReq.brand_name
app_hash = sessionReq.app_hash
code_length = sessionReq.code_length
dtmf = sessionReq.dtmf
}

let errors = validate([{
Expand Down Expand Up @@ -194,6 +195,9 @@ export class SessionInterface extends PlivoResourceInterface {
if (code_length) {
params.code_length = code_length
}
if (dtmf){
params.dtmf = dtmf
}
}

let client = this[clientKey];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plivo",
"version": "4.69.0",
"version": "4.69.1",
"description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML",
"homepage": "https://github.com/plivo/plivo-node",
"files": [
Expand Down

0 comments on commit 038c372

Please sign in to comment.