Module: sip-router
Branch: 4.1
Commit: 84c1ff056abf33c0ed8ed666d81d9e3e80cfaabb
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=84c1ff0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Jun 30 11:06:41 2014 +0200
uac: print new and old uri in log message in case of error
(cherry picked from commit 6feeb886b58f4cd1cefeef132245c009bf8ca07f)
---
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++ ) {