summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-01-24 18:41:34 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-01-24 18:41:34 +0100
commit8fe9103440b47f43eade53bbbc1b4c3438fc0f98 (patch)
tree2d9c1082fc96ad62b6bc4f1580e1762af40e2b65
parent1b622f6442a44e0ab1f9eea60e08a14d830697f3 (diff)
call: print error-string to reason
-rw-r--r--src/call.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/call.c b/src/call.c
index 67b3c22..404071b 100644
--- a/src/call.c
+++ b/src/call.c
@@ -1299,6 +1299,8 @@ static void sipsess_close_handler(int err, const struct sip_msg *msg,
if (err) {
info("%s: session closed: %m\n", call->peer_uri, err);
+ (void)re_snprintf(reason, sizeof(reason), "%m", err);
+
if (call->not) {
(void)call_notify_sipfrag(call, 500, "%m", err);
}