From 38e36e524430f08869bc2364aa7bbbc630778e77 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 23 Jan 2008 20:29:30 +0000 Subject: Related to ticket #61: added new invite session API pjsip_inv_verify_request() which takes additional remote SDP, to avoid parsing SDP multiple times git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1733 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsip-ua/sip_inv.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'pjsip/include') diff --git a/pjsip/include/pjsip-ua/sip_inv.h b/pjsip/include/pjsip-ua/sip_inv.h index 78fdbc6f..bfcc11c3 100644 --- a/pjsip/include/pjsip-ua/sip_inv.h +++ b/pjsip/include/pjsip-ua/sip_inv.h @@ -394,6 +394,8 @@ PJ_DECL(pj_status_t) pjsip_inv_create_uac(pjsip_dialog *dlg, * Otherwise application MUST specify the endpt argument * (this is useful e.g. when application wants to send * the response statelessly). + * + * @see pjsip_inv_verify_request2() */ PJ_DECL(pj_status_t) pjsip_inv_verify_request( pjsip_rx_data *rdata, unsigned *options, @@ -402,6 +404,20 @@ PJ_DECL(pj_status_t) pjsip_inv_verify_request( pjsip_rx_data *rdata, pjsip_endpoint *endpt, pjsip_tx_data **tdata); +/** + * Variant of #pjsip_inv_verify_request() which allows application to specify + * the parsed SDP in the \a offer argument. This is useful to avoid having to + * re-parse the SDP in the incoming request. + * + * @see pjsip_inv_verify_request() + */ +PJ_DECL(pj_status_t) pjsip_inv_verify_request2( pjsip_rx_data *rdata, + 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 -- cgit v1.2.3