diff --git a/composer.lock b/composer.lock
index ad2bce3..a664180 100644
--- a/composer.lock
+++ b/composer.lock
@@ -57,16 +57,16 @@
},
{
"name": "squizlabs/php_codesniffer",
- "version": "2.6.2",
+ "version": "2.7.1",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "4edb770cb853def6e60c93abb088ad5ac2010c83"
+ "reference": "9b324f3a1132459a7274a0ace2e1b766ba80930f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/4edb770cb853def6e60c93abb088ad5ac2010c83",
- "reference": "4edb770cb853def6e60c93abb088ad5ac2010c83",
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/9b324f3a1132459a7274a0ace2e1b766ba80930f",
+ "reference": "9b324f3a1132459a7274a0ace2e1b766ba80930f",
"shasum": ""
},
"require": {
@@ -131,7 +131,7 @@
"phpcs",
"standards"
],
- "time": "2016-07-13 23:29:13"
+ "time": "2016-11-30 04:02:31"
}
],
"aliases": [],
diff --git a/phpcs.xml b/phpcs.xml
index 2114335..13abdf8 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -6,5 +6,7 @@
-
+
+
+
diff --git a/src/Ami.php b/src/Ami.php
index 73dd4bd..0c27094 100644
--- a/src/Ami.php
+++ b/src/Ami.php
@@ -166,7 +166,13 @@ public function sendRequest($action, array $parameters = [])
{
$req = 'Action: '.$action."\r\n";
foreach ($parameters as $var => $val) {
- $req .= $var.': '.$val."\r\n";
+ if (is_array($val) === true) { // only supported by Asterisk > 1.4
+ foreach ($val as $k => $v) {
+ $req .= $var.': '.$k.'='.$v."\r\n";
+ }
+ } else {
+ $req .= $var.': '.$val."\r\n";
+ }
}
$req .= "\r\n";