[sr-dev] git:master:eb6b48f0: http_async_client: don't stop routing script execution for a POST query if transaction is not suspended
Federico Cabiddu
federico.cabiddu at gmail.com
Fri Aug 12 14:40:24 CEST 2016
Module: kamailio
Branch: master
Commit: eb6b48f03b794ba7430e50b47402ba9cf091f96d
URL: https://github.com/kamailio/kamailio/commit/eb6b48f03b794ba7430e50b47402ba9cf091f96d
Author: Federico Cabiddu <federico.cabiddu at gmail.com>
Committer: Federico Cabiddu <federico.cabiddu at gmail.com>
Date: 2016-08-12T14:36:27+02:00
http_async_client: don't stop routing script execution for a POST query if transaction is not suspended
---
Modified: modules/http_async_client/http_async_client_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/eb6b48f03b794ba7430e50b47402ba9cf091f96d.diff
Patch: https://github.com/kamailio/kamailio/commit/eb6b48f03b794ba7430e50b47402ba9cf091f96d.patch
---
diff --git a/modules/http_async_client/http_async_client_mod.c b/modules/http_async_client/http_async_client_mod.c
index f8d2cc2..54a0878 100644
--- a/modules/http_async_client/http_async_client_mod.c
+++ b/modules/http_async_client/http_async_client_mod.c
@@ -487,11 +487,7 @@ static int w_http_async_post(sip_msg_t *msg, char *query, char* post, char* rt)
return -1;
}
- if(async_send_query(msg, &sdata, &post_data, act)<0)
- return -1;
-
- /* force exit in config */
- return 0;
+ return async_send_query(msg, &sdata, &post_data, act);
}
#define _IVALUE_ERROR(NAME) LM_ERR("invalid parameter '" #NAME "' (must be a number)\n")
More information about the sr-dev
mailing list