diff options
author | Joshua Colp <jcolp@digium.com> | 2015-07-20 15:52:38 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-07-20 15:52:38 -0500 |
commit | f7f3ae1815d30a7861dd1d6013996f6d82c32431 (patch) | |
tree | 6e1c1c7c9f87e28c1171779e020798a094ab4a62 /include | |
parent | 6741eedeceba083267a3d8223c911b0b5c6a98d0 (diff) | |
parent | 2b42264e66656f6ab6bc664eec4e93d353c58ffe (diff) |
Merge "res_pjsip: Add rtp_keepalive endpoint option."
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/res_pjsip.h | 2 | ||||
-rw-r--r-- | include/asterisk/res_pjsip_session.h | 2 | ||||
-rw-r--r-- | include/asterisk/rtp_engine.h | 16 |
3 files changed, 20 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h index f199b8fef..432a1689e 100644 --- a/include/asterisk/res_pjsip.h +++ b/include/asterisk/res_pjsip.h @@ -502,6 +502,8 @@ struct ast_sip_media_rtp_configuration { enum ast_sip_session_media_encryption encryption; /*! Do we want to optimistically support encryption if possible? */ unsigned int encryption_optimistic; + /*! Number of seconds between RTP keepalive packets */ + unsigned int keepalive; }; /*! diff --git a/include/asterisk/res_pjsip_session.h b/include/asterisk/res_pjsip_session.h index 9143118dd..c088d039a 100644 --- a/include/asterisk/res_pjsip_session.h +++ b/include/asterisk/res_pjsip_session.h @@ -77,6 +77,8 @@ struct ast_sip_session_media { enum ast_sip_session_media_encryption encryption; /*! \brief The media transport in use for this stream */ pj_str_t transport; + /*! \brief Scheduler ID for RTP keepalive */ + int keepalive_sched_id; /*! \brief Stream is on hold by remote side */ unsigned int remotely_held:1; /*! \brief Stream is on hold by local side */ diff --git a/include/asterisk/rtp_engine.h b/include/asterisk/rtp_engine.h index c7f6511f9..c7a7f1d20 100644 --- a/include/asterisk/rtp_engine.h +++ b/include/asterisk/rtp_engine.h @@ -2288,6 +2288,22 @@ void ast_rtp_publish_rtcp_message(struct ast_rtp_instance *rtp, struct ast_rtp_rtcp_report *report, struct ast_json *blob); +/*! + * \brief Get the last RTP transmission time + * + * \param rtp The instance from which to get the last transmission time + * \return The last RTP transmission time + */ +time_t ast_rtp_instance_get_last_tx(const struct ast_rtp_instance *rtp); + +/*! + * \brief Set the last RTP transmission time + * + * \param rtp The instance on which to set the last transmission time + * \param time The last transmission time + */ +void ast_rtp_instance_set_last_tx(struct ast_rtp_instance *rtp, time_t time); + /*! \addtogroup StasisTopicsAndMessages * @{ */ |