From 46a065a2a8ab12f09a4b116dc7da86067d924078 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 29 Jan 2007 18:36:38 +0000 Subject: Some simple call testing to py_pjsua and bug fixes git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@916 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsua-lib/pjsua_call.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pjsip/src') 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) { -- cgit v1.2.3