imantaba / asterisk-php-api

Automatically exported from code.google.com/p/asterisk-php-api
2 stars 0 forks source link

Variables wrong in Originate Call #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Originate a call with Variables arg.

What is the expected output? What do you see instead?
Command: Originate...Variable: foo=bar|baz=2
Command: Origiante...Variable: Array

What version of the product are you using? On what operating system?
N/A

Please provide any additional information below.

Patch:
--- AsteriskManager.php 2009-03-01 18:24:02.000000000 -0600
+++ AsteriskManager.php.original        2009-03-01 18:24:26.000000000 -0600
@@ -323,7 +323,7 @@
                 $chunked_vars[] = "$key=$val";
             }
             $chunked_vars = implode('|', $chunked_vars);
-            $command     .= "Variable: $chunked_vars\r\n";
+            $command     .= "Variable: $variables\r\n";
         }

         if ($action_id) {

Original issue reported on code.google.com by richardl...@gmail.com on 2 Mar 2009 at 12:27

GoogleCodeExporter commented 8 years ago
I did the diff backwards.  Sorry!

--- AsteriskManager.php 2009-03-01 18:24:02.000000000 -0600
+++ AsteriskManager.php.original        2009-03-01 18:24:26.000000000 -0600
@@ -323,7 +323,7 @@
                 $chunked_vars[] = "$key=$val";
             }
             $chunked_vars = implode('|', $chunked_vars);
-            $command     .= "Variable: $variables\r\n";
+            $command     .= "Variable: $chunked_vars\r\n";
         }

         if ($action_id) {

Original comment by richardl...@gmail.com on 2 Mar 2009 at 12:55

GoogleCodeExporter commented 8 years ago
this seems to be fixed on trunk

Original comment by math.par...@gmail.com on 12 Jun 2009 at 11:49

GoogleCodeExporter commented 8 years ago

Original comment by doug.bro...@gmail.com on 8 Jul 2009 at 10:17