Skip to content

Commit

Permalink
Merge branch 'master' into addition-mdr-attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
narayana-plivo authored Sep 6, 2024
2 parents 68f4446 + 18f4656 commit 7e317bc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# Change Log

## [v4.68.3](https://github.com/plivo/plivo-node/tree/v4.68.3) (2024-09-06)
**Feature - Adding more attribute on mdr object**
- Added `message_sent_time`, `message_updated_time` and `error-message` on get and list Message API

## [v4.68.2](https://github.com/plivo/plivo-node/tree/v4.68.2) (2024-09-06)
**Feature - Adding support for brand_name and app_hash in Create,Get and List Session**
- Added new request param `brand_name` and `app_hash` in create Session API
- Added support for `brand_name` and `app_hash` param in get and list Session response

## [v4.68.1](https://github.com/plivo/plivo-node/tree/v4.68.1) (2024-09-03)
**Feature - Adding new element for Audio Stream XML **
- Added `keepCallAlive` element in Audio Stream XML


## [v4.68.0](https://github.com/plivo/plivo-node/tree/v4.68.0) (2024-07-11)
**Feature - Locale param supported for Create, Get and List Verify Session API's**
- Added new request param `locale` in create Session API
Expand Down
14 changes: 13 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
var app_uuid, recipient, url, method, channel, locale , brand_name, app_hash , code_length

if (isObject === 1) {
app_uuid = sessionReq.app_uuid
Expand All @@ -149,6 +149,9 @@ export class SessionInterface extends PlivoResourceInterface {
method = sessionReq.method
channel = sessionReq.channel
locale = sessionReq.locale
brand_name = sessionReq.brand_name
app_hash = sessionReq.app_hash
code_length = sessionReq.code_length
}

let errors = validate([{
Expand Down Expand Up @@ -182,6 +185,15 @@ export class SessionInterface extends PlivoResourceInterface {
if(method) {
params.method = method
}
if(brand_name) {
params.brand_name = brand_name
}
if(app_hash) {
params.app_hash = app_hash
}
if (code_length) {
params.code_length = code_length
}
}

let client = this[clientKey];
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/plivoxml.js
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ util.inherits(MultiPartyCall, Response);
function Stream(Response) {
this.element = 'Stream';
this.valid_attributes = ['bidirectional', 'audioTrack', 'streamTimeout', 'statusCallbackUrl', 'statusCallbackMethod',
'contentType', 'extraHeaders'];
'contentType', 'extraHeaders', 'keepCallAlive'];
this.nestables = ['break', 'emphasis', 'lang', 'p', 'phoneme', 'prosody', 's', 'say-as', 'sub', 'w'];
}
util.inherits(Stream, Response);

0 comments on commit 7e317bc

Please sign in to comment.