Sfoglia il codice sorgente

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

Daniel-Constantin Mierla 8 anni fa
parent
commit
88612ea4ed
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/modules/uac/replace.c

+ 2 - 1
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(get_route_type()==REQUEST_ROUTE) {
 		if(msg->msg_flags & uac_flag)
 		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;
 			return -1;
 		}
 		}
 	}
 	}