From 8badac2f054e293b1d421f3f0fa9d0854eab2042 Mon Sep 17 00:00:00 2001 From: DennisFrea Date: Wed, 26 Jun 2019 16:09:50 +0700 Subject: [PATCH 1/2] Add dial method This enabled the node to use dial method. --- src/PAGI/Node/Node.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/PAGI/Node/Node.php b/src/PAGI/Node/Node.php index 86b1f93..86c5057 100644 --- a/src/PAGI/Node/Node.php +++ b/src/PAGI/Node/Node.php @@ -627,6 +627,20 @@ public function saySound($filename) $this->addClientMethodCall('streamFile', $filename, $this->validInterruptDigits); return $this; } + + /** + * Loads a prompt message for dialing channel. + * + * @param string $channel + * @param string $options + * + * @return Node + */ + public function dial($channel, $options = array()) + { + $this->addClientMethodCall('dial', $channel, $options); + return $this; + } /** * Configure the node to expect at least this many digits. The input is From 418edca393ce17b8ee3e1580e1d8cc8002e537b1 Mon Sep 17 00:00:00 2001 From: DennisFrea Date: Wed, 26 Jun 2019 16:11:53 +0700 Subject: [PATCH 2/2] Updated dial description param $options to array --- src/PAGI/Node/Node.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PAGI/Node/Node.php b/src/PAGI/Node/Node.php index 86c5057..664425e 100644 --- a/src/PAGI/Node/Node.php +++ b/src/PAGI/Node/Node.php @@ -632,7 +632,7 @@ public function saySound($filename) * Loads a prompt message for dialing channel. * * @param string $channel - * @param string $options + * @param array $options * * @return Node */