diff options
author | Liong Sauw Ming <ming@teluu.com> | 2011-10-03 02:04:36 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2011-10-03 02:04:36 +0000 |
commit | dd10c1af79c2a0d4d4720245b7f5d28a63a5292c (patch) | |
tree | 89efde612812bee65dd3541f5f6c9c364d1761f1 /pjsip/include/pjsip-ua/sip_inv.h | |
parent | 21bee233619f1e2187345efd4eaed85e49facc5b (diff) |
Closed #1266:
Handle incoming calls when media transport is created asynchronously.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3777 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip-ua/sip_inv.h')
-rw-r--r-- | pjsip/include/pjsip-ua/sip_inv.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pjsip/include/pjsip-ua/sip_inv.h b/pjsip/include/pjsip-ua/sip_inv.h index e455a20f..4fe44758 100644 --- a/pjsip/include/pjsip-ua/sip_inv.h +++ b/pjsip/include/pjsip-ua/sip_inv.h @@ -545,6 +545,25 @@ PJ_DECL(pj_status_t) pjsip_inv_verify_request2( pjsip_rx_data *rdata, pjsip_tx_data **tdata); /** + * Variant of #pjsip_inv_verify_request() which allows application not to + * specify the rdata (i.e. pass NULL as the rdata parameter) and specify + * the parsed SDP in the \a offer argument and a temporary pool in the + * \a tmp_pool argument. + * This is useful if application no longer has access to the rdata. + * + * @see pjsip_inv_verify_request() + */ +PJ_DECL(pj_status_t) pjsip_inv_verify_request3( pjsip_rx_data *rdata, + pj_pool_t *tmp_pool, + unsigned *options, + const pjmedia_sdp_session *offer, + const pjmedia_sdp_session *answer, + pjsip_dialog *dlg, + pjsip_endpoint *endpt, + pjsip_tx_data **tdata); + + +/** * Create UAS invite session for the specified dialog in dlg. Application * SHOULD call the verification function before calling this function, * to ensure that it can create the session successfully. @@ -711,6 +730,21 @@ PJ_DECL(pj_status_t) pjsip_inv_answer( pjsip_inv_session *inv, /** + * Set local offer or answer depending on negotiator state (it may also + * create a negotiator if it doesn't exist yet). + * + * @param inv The invite session. + * @param sdp The SDP description which will be set as + * an offer/answer to remote. + * + * @return PJ_SUCCESS if local offer/answer can be accepted by + * SDP negotiator. + */ +PJ_DECL(pj_status_t) pjsip_inv_set_local_sdp(pjsip_inv_session *inv, + const pjmedia_sdp_session *sdp ); + + +/** * Set local answer to respond to remote SDP offer, to be carried by * subsequent response (or request). * |