Module: kamailio Branch: master Commit: b9bd13a1d016eba5e4211ca9068bee1a3f5dbf83 URL: https://github.com/kamailio/kamailio/commit/b9bd13a1d016eba5e4211ca9068bee1a3f5dbf83
Author: Henning Westerholt <h...@skalatan.de> Committer: Henning Westerholt <h...@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/b9bd13a1d016eba5e4211ca9068bee1a3f5dbf83.diff Patch: https://github.com/kamailio/kamailio/commit/b9bd13a1d016eba5e4211ca9068bee1a3f5dbf83.patch --- 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; _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev