[sr-dev] git:master: uac: print new and old uri in log message in case of error

Daniel-Constantin Mierla miconda at gmail.com
Mon Jun 30 11:07:24 CEST 2014


Module: sip-router
Branch: master
Commit: 6feeb886b58f4cd1cefeef132245c009bf8ca07f
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6feeb886b58f4cd1cefeef132245c009bf8ca07f

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Jun 30 11:06:41 2014 +0200

uac: print new and old uri in log message in case of error

---

 modules/uac/replace.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/uac/replace.c b/modules/uac/replace.c
index 3c78abe..f8285c6 100644
--- a/modules/uac/replace.c
+++ b/modules/uac/replace.c
@@ -587,7 +587,8 @@ int restore_uri( struct sip_msg *msg, str *rr_param, str* restore_avp, int check
 
 	/* get new uri */
 	if ( new_uri.len<old_uri.len ) {
-		LM_ERR("new URI shorter than old URI\n");
+		LM_ERR("new URI [%.*s] shorter than old URI [%.*s]\n",
+				new_uri.len, new_uri.s, old_uri.len, old_uri.s);
 		goto failed;
 	}
 	for( i=0 ; i<old_uri.len ; i++ ) {




More information about the sr-dev mailing list