diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-01-29 18:36:38 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-01-29 18:36:38 +0000 |
commit | 46a065a2a8ab12f09a4b116dc7da86067d924078 (patch) | |
tree | ac113a674a8387dd49438b87dfc066502687439c /pjsip | |
parent | d35d3d1ff385ea2411940b536126025f8dcd6e7c (diff) |
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
Diffstat (limited to 'pjsip')
-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) { |