diff options
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_call.c')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_call.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index 6b40becf..e9b2e45a 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -1004,6 +1004,9 @@ PJ_DEF(pj_status_t) pjsua_call_answer( pjsua_call_id call_id, if (call->res_time.sec == 0) pj_gettimeofday(&call->res_time); + if (reason && reason->slen == 0) + reason = NULL; + /* Create response message */ status = pjsip_inv_answer(call->inv, code, reason, NULL, &tdata); if (status != PJ_SUCCESS) { |