diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-02-21 23:41:33 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-02-21 23:41:33 +0000 |
commit | e77ee9b77d5813b3ebbf2f29ac5a005de23c6fa0 (patch) | |
tree | 31e8a720c1c7c6cc2bd9abc96e71c751072c7c24 /pjmedia/include/pjmedia/sdp_neg.h | |
parent | 8f621792f7e321df325377487ea8193844044d07 (diff) |
Added has_local_answer(), and more relaxed negotiation
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@207 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include/pjmedia/sdp_neg.h')
-rw-r--r-- | pjmedia/include/pjmedia/sdp_neg.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/sdp_neg.h b/pjmedia/include/pjmedia/sdp_neg.h index 5c2e564f..c3cb14e7 100644 --- a/pjmedia/include/pjmedia/sdp_neg.h +++ b/pjmedia/include/pjmedia/sdp_neg.h @@ -532,6 +532,19 @@ pjmedia_sdp_neg_set_local_answer( pj_pool_t *pool, /** + * Call this function when the negotiator is in PJMEDIA_SDP_NEG_STATE_WAIT_NEGO + * state to see if it was local who is answering the offer (instead of + * remote). + * + * @param neg The negotiator. + * + * @return PJ_TRUE if it is local is answering an offer, PJ_FALSE + * if remote has answered local offer. + */ +PJ_DECL(pj_bool_t) pjmedia_sdp_neg_has_local_answer(pjmedia_sdp_neg *neg); + + +/** * Negotiate local and remote answer. Before calling this function, the * SDP negotiator must be in PJMEDIA_SDP_NEG_STATE_WAIT_NEGO state. * After calling this function, the negotiator state will move to |