diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-06-13 22:22:54 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-06-13 22:22:54 +0000 |
commit | 3ce16e8a22d2e8e11a749902c621673f87f187be (patch) | |
tree | 26ffecf0b7f8a9b67900630dfd592697cc547f7b /pjmedia/include | |
parent | 26af83c5f17911357c683761253a7b25993f321f (diff) |
Added pjmedia_sdp_neg_was_aswer_remote()
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@501 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r-- | pjmedia/include/pjmedia/sdp_neg.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/sdp_neg.h b/pjmedia/include/pjmedia/sdp_neg.h index 55c74401..d2d977e0 100644 --- a/pjmedia/include/pjmedia/sdp_neg.h +++ b/pjmedia/include/pjmedia/sdp_neg.h @@ -392,6 +392,22 @@ PJ_DECL(pj_status_t) pjmedia_sdp_neg_get_active_remote( pjmedia_sdp_neg *neg, const pjmedia_sdp_session **remote); + +/** + * Determine whether remote sent answer (as opposed to offer) on the + * last negotiation. This function can only be called in state + * PJMEDIA_SDP_NEG_STATE_DONE. + * + * @param neg The SDP negotiator instance. + * + * @return Non-zero if it was remote who sent answer, + * otherwise zero if it was local who supplied + * answer. + */ +PJ_DECL(pj_bool_t) +pjmedia_sdp_neg_was_answer_remote(pjmedia_sdp_neg *neg); + + /** * Get the current remote SDP offer or answer. Application can only * call this function in state PJMEDIA_SDP_NEG_STATE_REMOTE_OFFER or |