Module: kamailio
Branch: master
Commit: ada68095882368a7e05329a52e53a57b2bc818d1
URL:
https://github.com/kamailio/kamailio/commit/ada68095882368a7e05329a52e53a57…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-08-13T14:04:55+02:00
core: more detailed debug message if new uri is too long
---
Modified: src/core/dset.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ada68095882368a7e05329a52e53a57…
Patch:
https://github.com/kamailio/kamailio/commit/ada68095882368a7e05329a52e53a57…
---
diff --git a/src/core/dset.c b/src/core/dset.c
index 06083e7229..1a10f2af9a 100644
--- a/src/core/dset.c
+++ b/src/core/dset.c
@@ -763,7 +763,8 @@ int uri_add_rcv_alias(sip_msg_t *msg, str *uri, str *nuri)
/*uri;alias=[ip]~port~proto*/
len = uri->len+ip.len+port.len+12;
if(len>=nuri->len) {
- LM_ERR("not enough space for new uri: %d\n", len);
+ LM_ERR("not enough space - new uri len: %d (buf size: %d)\n",
+ len, nuri->len);
return -1;
}
p = nuri->s;