Module: kamailio
Branch: master
Commit: b9bd13a1d016eba5e4211ca9068bee1a3f5dbf83
URL:
https://github.com/kamailio/kamailio/commit/b9bd13a1d016eba5e4211ca9068bee1…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-16T22:29:17+02:00
tm: small change related to commit 38bcfb75d, prevent short from tag in else case
---
Modified: src/modules/tm/uac.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b9bd13a1d016eba5e4211ca9068bee1…
Patch:
https://github.com/kamailio/kamailio/commit/b9bd13a1d016eba5e4211ca9068bee1…
---
diff --git a/src/modules/tm/uac.c b/src/modules/tm/uac.c
index 2de8d29f27..82e7f5edf2 100644
--- a/src/modules/tm/uac.c
+++ b/src/modules/tm/uac.c
@@ -112,6 +112,9 @@ void generate_fromtag(str* tag, str* callid, str* ruri)
crcitt_string_array(&from_tag[MD5_LEN + 1], callid, 1);
if(ruri) {
crcitt_string_array(&from_tag[MD5_LEN + 5], ruri, 1);
+ } else {
+ /* prevent shorter tag in this case, to be changed */
+ crcitt_string_array(&from_tag[MD5_LEN + 5], callid, 1);
}
tag->s = from_tag;
tag->len = FROM_TAG_LEN;