[sr-dev] git:master:1f8bc9fd: http_async_client: use route_lookup() instead of route_get()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[sr-dev] git:master:1f8bc9fd: http_async_client: use route_lookup() instead of route_get()

Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 1f8bc9fd5a4067b25994e87e27801d9df5cb5eb7
URL: https://github.com/kamailio/kamailio/commit/1f8bc9fd5a4067b25994e87e27801d9df5cb5eb7

Author: Daniel-Constantin Mierla <[hidden email]>
Committer: Daniel-Constantin Mierla <[hidden email]>
Date: 2017-12-05T16:50:59+01:00

http_async_client: use route_lookup() instead of route_get()

- avoids creating a useless route block structure

---

Modified: src/modules/http_async_client/http_async_client_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/1f8bc9fd5a4067b25994e87e27801d9df5cb5eb7.diff
Patch: https://github.com/kamailio/kamailio/commit/1f8bc9fd5a4067b25994e87e27801d9df5cb5eb7.patch

---

diff --git a/src/modules/http_async_client/http_async_client_mod.c b/src/modules/http_async_client/http_async_client_mod.c
index 4012da24be..42b68fcb71 100644
--- a/src/modules/http_async_client/http_async_client_mod.c
+++ b/src/modules/http_async_client/http_async_client_mod.c
@@ -406,7 +406,7 @@ static int w_http_async_query(sip_msg_t *msg, char *query, char* rt)
  return -1;
  }
 
- ri = route_get(&main_rt, rn.s);
+ ri = route_lookup(&main_rt, rn.s);
  if(ri<0)
  {
  LM_ERR("unable to find route block [%.*s]\n", rn.len, rn.s);


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev