Changeset 212 for pjproject/trunk/pjsip/include/pjsip-ua/sip_inv.h
- Timestamp:
- Feb 21, 2006 11:47:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip-ua/sip_inv.h
r184 r212 98 98 * This callback is called when the invite session has received 99 99 * new offer from peer. Application can inspect the remote offer 100 * by calling negotiator's pjmedia_sdp_neg_get_neg_remote(), and 101 * optionally specify a modified answer. 102 * 103 * This callback is optional. When it's not specified, the default 104 * behavior is nothing. After calling this callback, the negotiator 105 * will negotiate remote offer with session's initial capability. 100 * in "offer". 106 101 * 107 102 * @param inv The invite session. 108 */ 109 void (*on_rx_offer)(pjsip_inv_session *inv); 103 * @param offer Remote offer. 104 */ 105 void (*on_rx_offer)(pjsip_inv_session *inv, 106 const pjmedia_sdp_session *offer); 110 107 111 108 /** … … 122 119 void (*on_media_update)(pjsip_inv_session *inv_ses, 123 120 pj_status_t status); 124 125 121 }; 126 122 … … 388 384 389 385 390 #if 0 391 If we implement this, we need to send SDP answer automatically on 392 subsequent request/response. Something like "has_answer" flag. 393 394 /** 395 * Set local answer to respond to remote SDP offer. By calling this function, 396 * application can start SDP negotiation immediately without having to 397 * send any request or response message. This function is normally called 398 * when on_rx_offer() callback is called. 386 /** 387 * Set local answer to respond to remote SDP offer, to be carried by 388 * subsequent response (or request). 399 389 * 400 390 * @param inv The invite session. 401 391 * @param sdp The SDP description which will be set as answer 402 392 * to remote. 403 */ 404 PJ_DECL(pj_status_t) pjsip_inv_set_sdp_answer( pjsip_inv_session *inv, 405 const pjmedia_sdp_session *sdp ); 406 #endif 393 * 394 * @return PJ_SUCCESS if local answer can be accepted by 395 * SDP negotiator. 396 */ 397 PJ_DECL(pj_status_t) pjsip_inv_set_sdp_answer(pjsip_inv_session *inv, 398 const pjmedia_sdp_session *sdp ); 399 407 400 408 401 /**
Note: See TracChangeset
for help on using the changeset viewer.