Module: kamailio
Branch: 4.3
Commit: dd4d1700a36c6d64590ad00ae8c60270d16c62c3
URL:
https://github.com/kamailio/kamailio/commit/dd4d1700a36c6d64590ad00ae8c6027…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-11-23T16:25:32+01:00
usrloc: log details of contact when inserting in db failes
(cherry picked from commit 1a05910912fbf9baaf821cc30fac7485c1e67622)
---
Modified: modules/usrloc/ucontact.c
---
Diff:
https://github.com/kamailio/kamailio/commit/dd4d1700a36c6d64590ad00ae8c6027…
Patch:
https://github.com/kamailio/kamailio/commit/dd4d1700a36c6d64590ad00ae8c6027…
---
diff --git a/modules/usrloc/ucontact.c b/modules/usrloc/ucontact.c
index a645e42..68e0359 100644
--- a/modules/usrloc/ucontact.c
+++ b/modules/usrloc/ucontact.c
@@ -680,7 +680,8 @@ int db_insert_ucontact(ucontact_t* _c)
}
if (ul_dbf.insert(ul_dbh, keys, vals, nr_cols) < 0) {
- LM_ERR("inserting contact in db failed\n");
+ LM_ERR("inserting contact in db failed %.*s (%.*s)\n",
+ _c->aor->len, ZSW(_c->aor->s), _c->ruid.len, ZSW(_c->ruid.s));
return -1;
}