[sr-dev] git:master:88612ea4: uac: explicit name of the function called many times when updating from/to

Daniel-Constantin Mierla miconda at gmail.com
Fri May 12 16:34:24 CEST 2017


Module: kamailio
Branch: master
Commit: 88612ea4ed49db8a10cb8b1ddf23bc0783e937c3
URL: https://github.com/kamailio/kamailio/commit/88612ea4ed49db8a10cb8b1ddf23bc0783e937c3

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-05-12T16:34:12+02:00

uac: explicit name of the function called many times when updating from/to

---

Modified: src/modules/uac/replace.c

---

Diff:  https://github.com/kamailio/kamailio/commit/88612ea4ed49db8a10cb8b1ddf23bc0783e937c3.diff
Patch: https://github.com/kamailio/kamailio/commit/88612ea4ed49db8a10cb8b1ddf23bc0783e937c3.patch

---

diff --git a/src/modules/uac/replace.c b/src/modules/uac/replace.c
index 42626fe..db5ea25 100644
--- a/src/modules/uac/replace.c
+++ b/src/modules/uac/replace.c
@@ -262,7 +262,8 @@ int replace_uri( struct sip_msg *msg, str *display, str *uri,
 	if(get_route_type()==REQUEST_ROUTE) {
 		if(msg->msg_flags & uac_flag)
 		{
-			LM_ERR("Called uac_replace multiple times on the message\n");
+			LM_ERR("called uac_replace_%s() multiple times on the message\n",
+					(hdr==msg->from)?"from":"to");
 			return -1;
 		}
 	}




More information about the sr-dev mailing list