summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsip-ua/sip_inv.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-10-03 18:28:49 +0000
committerBenny Prijono <bennylp@teluu.com>2007-10-03 18:28:49 +0000
commit3112361512e913a6ce28a9253a6d45434b975505 (patch)
tree914e356e5b5e2cf05c17c1177589064773638d20 /pjsip/include/pjsip-ua/sip_inv.h
parente2f5c2d529ae091a65c73f86ab60f4fc251645dc (diff)
Ticket 5: Support for SIP UPDATE (RFC 3311) and fix the offer/answer negotiation
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1469 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip-ua/sip_inv.h')
-rw-r--r--pjsip/include/pjsip-ua/sip_inv.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/pjsip/include/pjsip-ua/sip_inv.h b/pjsip/include/pjsip-ua/sip_inv.h
index f04f4aed..a367fe1e 100644
--- a/pjsip/include/pjsip-ua/sip_inv.h
+++ b/pjsip/include/pjsip-ua/sip_inv.h
@@ -253,6 +253,8 @@ struct pjsip_inv_session
pjmedia_sdp_neg *neg; /**< Negotiator. */
pjsip_transaction *invite_tsx; /**< 1st invite tsx. */
pjsip_tx_data *last_answer; /**< Last INVITE resp. */
+ pjsip_tx_data *last_ack; /**< Last ACK request */
+ pj_int32_t last_ack_cseq; /**< CSeq of last ACK */
void *mod_data[PJSIP_MAX_MODULE];/**< Modules data. */
};
@@ -561,20 +563,15 @@ PJ_DECL(pj_status_t) pjsip_inv_reinvite(pjsip_inv_session *inv,
/**
- * Create an UPDATE request.
+ * Create an UPDATE request to initiate new SDP offer.
*
* @param inv The invite session.
* @param new_contact If application wants to update its local contact
* and inform peer to perform target refresh with a new
* contact, it can specify the new contact in this
* argument; otherwise this argument must be NULL.
- * @param new_offer Application MAY initiate a new SDP offer/answer
- * session in the request when there is no pending answer
- * to be sent or received. It can detect this condition
- * by observing the state of the SDP negotiator of the
- * invite session. If new offer should be sent to remote,
- * the offer must be specified in this argument; otherwise
- * this argument must be NULL.
+ * @param offer Offer to be sent to remote. This argument is
+ * mandatory.
* @param p_tdata Pointer to receive the UPDATE request message to
* be created.
*
@@ -584,7 +581,7 @@ PJ_DECL(pj_status_t) pjsip_inv_reinvite(pjsip_inv_session *inv,
*/
PJ_DECL(pj_status_t) pjsip_inv_update ( pjsip_inv_session *inv,
const pj_str_t *new_contact,
- const pjmedia_sdp_session *new_offer,
+ const pjmedia_sdp_session *offer,
pjsip_tx_data **p_tdata );