Skip to content

Commit ad7606c

Browse files
authored
Fix bug in dial action
The dial action should take an array of phone numbers and convert to a string. Previously, it acted as though the phone numbers is a single string instead of an array of strings.
1 parent 77cbabb commit ad7606c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Voice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ protected function buildDial($options)
267267
if (!isset($options['phoneNumbers'])) {
268268
return $this->error('Please specifiy at least one number to dial');
269269
}
270-
$phoneNumbers = $options['phoneNumbers'];
270+
$phoneNumbers = implode(", ", $options["phoneNumbers"]);
271271

272272
// Check if ringback tone is set
273273
if (isset($options['ringbackTone'])) {
@@ -478,4 +478,4 @@ private function isValidURL($url)
478478
}
479479
return !filter_var($url, FILTER_VALIDATE_URL) === false;
480480
}
481-
}
481+
}

0 commit comments

Comments
 (0)