[asterisk-commits] file: branch file/pimp_sip_media r381154 - /team/file/pimp_sip_media/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Feb 10 15:20:33 CST 2013
Author: file
Date: Sun Feb 10 15:20:30 2013
New Revision: 381154
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=381154
Log:
Destroy the session RTP instance when the session is destroyed, not when it is ended.
Modified:
team/file/pimp_sip_media/res/res_sip_sdp_audio.c
Modified: team/file/pimp_sip_media/res/res_sip_sdp_audio.c
URL: http://svnview.digium.com/svn/asterisk/team/file/pimp_sip_media/res/res_sip_sdp_audio.c?view=diff&rev=381154&r1=381153&r2=381154
==============================================================================
--- team/file/pimp_sip_media/res/res_sip_sdp_audio.c (original)
+++ team/file/pimp_sip_media/res/res_sip_sdp_audio.c Sun Feb 10 15:20:30 2013
@@ -59,7 +59,7 @@
static int audio_apply_negotiated_sdp_stream(struct ast_sip_session *session, const struct pjmedia_sdp_session *sdp, const struct pjmedia_sdp_media *stream);
/*! \brief Forward declaration for session supplement functions */
-static void audio_session_end(struct ast_sip_session *session);
+static void audio_session_destroy(struct ast_sip_session *session);
/*! \brief SDP handler for 'audio' media stream */
static struct ast_sip_session_sdp_handler audio_sdp_handler = {
@@ -71,7 +71,7 @@
/*! \brief Session supplement for 'audio' media stream */
static struct ast_sip_session_supplement audio_session_supplement = {
- .session_end = audio_session_end,
+ .session_destroy = audio_session_destroy,
};
/*! \brief Internal function which creates an RTP instance */
@@ -393,7 +393,7 @@
}
/*! \brief Function which destroys the audio RTP instance when session ends */
-static void audio_session_end(struct ast_sip_session *session)
+static void audio_session_destroy(struct ast_sip_session *session)
{
if (!session->media[AST_SIP_MEDIA_AUDIO].rtp) {
return;
More information about the asterisk-commits
mailing list