diff --git a/lib/utils/plivoxml.js b/lib/utils/plivoxml.js
index 18ed25ad..4c2c9852 100644
--- a/lib/utils/plivoxml.js
+++ b/lib/utils/plivoxml.js
@@ -493,7 +493,6 @@ Response.prototype = {
* @param {string} [attributes.startRecordingAudioMethod]
* @param {string} [attributes.stopRecordingAudioMethod]
* @param {boolean} [attributes.recordParticipantTrack]
- * @param {string} [attributes.recordTrackType]
*/
addMultiPartyCall: function (body, attributes){
const VALID_ROLE_VALUES = ['agent', 'supervisor', 'customer']
@@ -721,14 +720,6 @@ Response.prototype = {
else if (!attributes.recordParticipantTrack){
attributes.recordParticipantTrack = false
}
-
- if(attributes.recordTrackType && !plivoUtils.isOneAmongStringUrl('recordTrackType', attributes.recordTrackType, false, ['all', 'both', 'participant'])){
- throw new PlivoXMLError('Invalid attribute value ' + attributes.recordTrackType + ' for recordTrackType')
- }
- else if(!attributes.recordTrackType){
- attributes.recordTrackType = 'all'
- }
-
return this.add(new MultiPartyCall(Response), body, attributes);
},
@@ -1050,7 +1041,7 @@ function MultiPartyCall(Response){
'stayAlone', 'coachMode', 'mute', 'hold', 'startMpcOnEnter', 'endMpcOnExit',
'enterSound', 'enterSoundMethod', 'exitSound', 'exitSoundMethod',
'onExitActionUrl', 'onExitActionMethod', 'relayDTMFInputs',
- 'startRecordingAudio', 'startRecordingAudioMethod', 'stopRecordingAudio', 'stopRecordingAudioMethod', 'recordTrackType', 'recordParticipantTrack'];
+ 'startRecordingAudio', 'startRecordingAudioMethod', 'stopRecordingAudio', 'stopRecordingAudioMethod', 'recordParticipantTrack'];
}
util.inherits(MultiPartyCall, Response);
diff --git a/test/xml.js b/test/xml.js
index 0e7db160..fc762eba 100644
--- a/test/xml.js
+++ b/test/xml.js
@@ -35,7 +35,7 @@ describe('PlivoXML', function () {
maxDuration: 1000,
statusCallbackEvents: 'participant-speak-events, participant-digit-input-events, add-participant-api-events, participant-state-changes, mpc-state-changes'
});
- assert.equal('Nairobi',mpcResponse.toXML());
+ assert.equal('Nairobi',mpcResponse.toXML());
done();
});