diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-01-23 20:29:30 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-01-23 20:29:30 +0000 |
commit | 38e36e524430f08869bc2364aa7bbbc630778e77 (patch) | |
tree | 733589e3a0ac773db4aebb47ff11f85eecbc1bd4 /pjsip/include/pjsip-ua/sip_inv.h | |
parent | 33a56290728f2ad3eee2c9ce5ee807fbe1a101d1 (diff) |
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
Diffstat (limited to 'pjsip/include/pjsip-ua/sip_inv.h')
-rw-r--r-- | pjsip/include/pjsip-ua/sip_inv.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 |