summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pjsip/src/pjsua-lib/pjsua_call.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c
index c1bea3b0..86306ffd 100644
--- a/pjsip/src/pjsua-lib/pjsua_call.c
+++ b/pjsip/src/pjsua-lib/pjsua_call.c
@@ -2203,6 +2203,7 @@ PJ_DEF(pj_status_t) pjsua_call_answer2(pjsua_call_id call_id,
*answer->opt = *opt;
}
if (reason) {
+ answer->reason = PJ_POOL_ZALLOC_T(call->inv->pool_prov, pj_str_t);
pj_strdup(call->inv->pool_prov, answer->reason, reason);
}
if (msg_data) {