Module: kamailio
Branch: master
Commit: 09bce3d97acf54c289f1a2c6905175038502e7a0
URL:
https://github.com/kamailio/kamailio/commit/09bce3d97acf54c289f1a2c69051750…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-01T10:01:52+02:00
nat_traversal: print keepalive file name in error messages
---
Modified: src/modules/nat_traversal/nat_traversal.c
---
Diff:
https://github.com/kamailio/kamailio/commit/09bce3d97acf54c289f1a2c69051750…
Patch:
https://github.com/kamailio/kamailio/commit/09bce3d97acf54c289f1a2c69051750…
---
diff --git a/src/modules/nat_traversal/nat_traversal.c
b/src/modules/nat_traversal/nat_traversal.c
index 7d6724b103..8bd4adde65 100644
--- a/src/modules/nat_traversal/nat_traversal.c
+++ b/src/modules/nat_traversal/nat_traversal.c
@@ -1633,7 +1633,8 @@ save_keepalive_state(void)
f = fopen(keepalive_state_file, "w");
if (!f) {
- LM_ERR("failed to open keepalive state file for writing: %s\n",
strerror(errno));
+ LM_ERR("failed to open keepalive state file (%s) for writing: %s\n",
+ keepalive_state_file, strerror(errno));
return;
}
@@ -1652,7 +1653,8 @@ save_keepalive_state(void)
}
if (ferror(f))
- LM_ERR("couldn't write keepalive state file: %s\n",
strerror(errno));
+ LM_ERR("couldn't write keepalive state file (%s): %s\n",
+ keepalive_state_file, strerror(errno));
fclose(f);
}