Browse Source

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
Daniel-Constantin Mierla 7 years ago
parent
commit
42a55edcfb
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/modules/tm/tm.c

+ 11 - 0
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);
+}
+
 /**
  *
  */