Skip to content

Commit b1bc3e7

Browse files
committed
Fix Dial TwiML bug
1 parent 6bc9a65 commit b1bc3e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/twiml/VoiceResponse.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Gather.prototype.say = function(attributes, body) {
296296
* @param {string} url url of file to play
297297
*/
298298
Gather.prototype.play = function(attributes, url) {
299-
this.gather.play('Play', attributes, url);
299+
this.gather.ele('Play', attributes, url);
300300
};
301301

302302
/**
@@ -306,7 +306,7 @@ Gather.prototype.play = function(attributes, url) {
306306
* @param {number} [attributes.length] time in seconds to pause
307307
*/
308308
Gather.prototype.pause = function(attributes) {
309-
this.gather.pause('Pause', attributes);
309+
this.gather.ele('Pause', attributes);
310310
};
311311

312312

0 commit comments

Comments
 (0)