Module: kamailio Branch: master Commit: e2ddfed671bebdaf85035c2f813dc955f54484b7 URL: https://github.com/kamailio/kamailio/commit/e2ddfed671bebdaf85035c2f813dc955...
Author: Giacomo Vacca giacomo.vacca@gmail.com Committer: Giacomo Vacca giacomo.vacca@gmail.com Date: 2017-04-26T22:12:43+02:00
http_async_client: doc review (payload setting)
---
Modified: src/modules/http_async_client/doc/http_async_client_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/e2ddfed671bebdaf85035c2f813dc955... Patch: https://github.com/kamailio/kamailio/commit/e2ddfed671bebdaf85035c2f813dc955...
---
diff --git a/src/modules/http_async_client/doc/http_async_client_admin.xml b/src/modules/http_async_client/doc/http_async_client_admin.xml index b7136a8..4656216 100644 --- a/src/modules/http_async_client/doc/http_async_client_admin.xml +++ b/src/modules/http_async_client/doc/http_async_client_admin.xml @@ -331,7 +331,8 @@ t_newtran(); http_async_query("http://example.com/test.php?r_uri=$rU&f_uri=$fU", "HTTP_REPLY"); ... # POST -http_async_query("http://example.com/test.php", "{'r_uri':'$rU', 'f_uri':'$fU'}", "HTTP_REPLY"); +$var(payload) = "{'r_uri':'$rU', 'f_uri':'$fU'}"; +http_async_query("http://example.com/test.php", "HTTP_REPLY"); ... route[HTTP_REPLY] { if ($http_ok) {
Hello,
On 26.04.17 22:12, Giacomo Vacca wrote:
[...] @@ -331,7 +331,8 @@ t_newtran(); http_async_query("http://example.com/test.php?r_uri=$rU&f_uri=$fU", "HTTP_REPLY"); ... # POST -http_async_query("http://example.com/test.php", "{'r_uri':'$rU', 'f_uri':'$fU'}", "HTTP_REPLY"); +$var(payload) = "{'r_uri':'$rU', 'f_uri':'$fU'}"; +http_async_query("http://example.com/test.php", "HTTP_REPLY"); ... route[HTTP_REPLY] { if ($http_ok) {
is $var(payload) right in the example? Or should it be $http_req(body)?
Cheers, Daniel
Hi Daniel, it should be $http_req(body). Wrong commit - the right one coming in in the next minutes.
Cheers, Giacomo
On 26 April 2017 at 22:32, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
On 26.04.17 22:12, Giacomo Vacca wrote:
[...] @@ -331,7 +331,8 @@ t_newtran(); http_async_query("http://example.com/test.php?r_uri=$rU&f_uri=$fU",
"HTTP_REPLY");
... # POST -http_async_query("http://example.com/test.php", "{'r_uri':'$rU',
'f_uri':'$fU'}", "HTTP_REPLY");
+$var(payload) = "{'r_uri':'$rU', 'f_uri':'$fU'}"; +http_async_query("http://example.com/test.php", "HTTP_REPLY"); ... route[HTTP_REPLY] { if ($http_ok) {
is $var(payload) right in the example? Or should it be $http_req(body)?
Cheers, Daniel
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com