diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-06-05 10:14:20 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-06-05 10:14:20 +0000 |
commit | f405520af6c1e62a8e3d120cfccff2eff98c132c (patch) | |
tree | 7ac1e669460189a86b5717ac618d0569b4a7087d /pjsip/src/pjsua-lib | |
parent | 401809abb64479a67813ac30e714ae26dc5c6ed0 (diff) |
Ticket #880: Pressing call hold twice in pjsua will cause call to be unheld
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2752 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua-lib')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_call.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index bb1ab318..19d516bb 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -3183,7 +3183,10 @@ static pj_status_t create_sdp_of_call_hold(pjsua_call *call, * 'inactive' (PJMEDIA_DIR_NONE). * (See RFC 3264 Section 8.4 and RFC 4317 Section 3.1) */ - if (call->media_dir != PJMEDIA_DIR_ENCODING) { + /* http://trac.pjsip.org/repos/ticket/880 + if (call->media_dir != PJMEDIA_DIR_ENCODING) { + */ + if (1) { pjmedia_sdp_attr *attr; /* Remove existing directions attributes */ @@ -3192,7 +3195,7 @@ static pj_status_t create_sdp_of_call_hold(pjsua_call *call, pjmedia_sdp_media_remove_all_attr(sdp->media[0], "recvonly"); pjmedia_sdp_media_remove_all_attr(sdp->media[0], "inactive"); - if (call->media_dir == PJMEDIA_DIR_ENCODING_DECODING) { + if (call->media_dir & PJMEDIA_DIR_ENCODING) { /* Add sendonly attribute */ attr = pjmedia_sdp_attr_create(pool, "sendonly", NULL); pjmedia_sdp_media_add_attr(sdp->media[0], attr); |