[sr-dev] git:master:05509f32: core: forward - add note about return code of forward_request()

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 22 16:56:32 CET 2017


Module: kamailio
Branch: master
Commit: 05509f322d5b4ce23b6e5918f4d6bc4e48678202
URL: https://github.com/kamailio/kamailio/commit/05509f322d5b4ce23b6e5918f4d6bc4e48678202

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-12-22T16:54:29+01:00

core: forward - add note about return code of forward_request()

---

Modified: src/core/forward.c

---

Diff:  https://github.com/kamailio/kamailio/commit/05509f322d5b4ce23b6e5918f4d6bc4e48678202.diff
Patch: https://github.com/kamailio/kamailio/commit/05509f322d5b4ce23b6e5918f4d6bc4e48678202.patch

---

diff --git a/src/core/forward.c b/src/core/forward.c
index dc7e27f523..d9a778ca71 100644
--- a/src/core/forward.c
+++ b/src/core/forward.c
@@ -450,6 +450,8 @@ int check_self_port(unsigned short port, unsigned short proto)
  * WARNING: don't forget to zero-fill all the  unused members (a non-zero
  * random id along with proto==PROTO_TCP can have bad consequences, same for
  *   a bogus send_socket value)
+ *
+ * return: 0 (E_OK) on success; negative (E_*) on failure
  */
 int forward_request(struct sip_msg* msg, str* dst, unsigned short port,
 							struct dest_info* send_info)




More information about the sr-dev mailing list