[sr-dev] git:master:42a55edc: tm: readded w_t_reply_wrp()

Daniel-Constantin Mierla miconda at gmail.com
Tue May 1 20:54:29 CEST 2018


Module: kamailio
Branch: master
Commit: 42a55edcfbdac1653ee5f85ff388a733f6c385f4
URL: https://github.com/kamailio/kamailio/commit/42a55edcfbdac1653ee5f85ff388a733f6c385f4

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-05-01T20:52:23+02:00

tm: readded w_t_reply_wrp()

- needed for exports to inter-module api
- simplified version after changes in tm reply code
- reported by GH #1517

---

Modified: src/modules/tm/tm.c

---

Diff:  https://github.com/kamailio/kamailio/commit/42a55edcfbdac1653ee5f85ff388a733f6c385f4.diff
Patch: https://github.com/kamailio/kamailio/commit/42a55edcfbdac1653ee5f85ff388a733f6c385f4.patch

---

diff --git a/src/modules/tm/tm.c b/src/modules/tm/tm.c
index a7977d7003..f264a0b781 100644
--- a/src/modules/tm/tm.c
+++ b/src/modules/tm/tm.c
@@ -1393,6 +1393,17 @@ static int w_t_reply(struct sip_msg* msg, char* p1, char* p2)
 	return ki_t_reply(msg, code, &reason);
 }
 
+/* wrapper for inter-module api */
+int w_t_reply_wrp(struct sip_msg *msg, unsigned int code, char *txt)
+{
+	str reason;
+
+	reason.s = txt;
+	reason.len = strlen(reason.s);
+
+	return ki_t_reply(msg, code, &reason);
+}
+
 /**
  *
  */




More information about the sr-dev mailing list