Module: sip-router
Branch: 4.0
Commit: 2afb43f88eb60ac72887b1c6d79cbd6f17b464d2
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2afb43f88eb60ac72887b1c6d79cbd6f17b464d2

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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 7f1f92c..65185f2 100644
--- a/modules/uac/replace.c
+++ b/modules/uac/replace.c
@@ -588,7 +588,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++ ) {


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to