https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r64974 | oej | 2007-05-18 12:37:44 +0200 (Fri, 18 May 2007) | 2 lines
Issue 9487 - stop media flows at hangup of call
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64975
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
int debug);
static enum sip_result add_sdp(struct sip_request *resp, struct sip_pvt *p);
static void do_setnat(struct sip_pvt *p, int natflags);
+static void stop_media_flows(struct sip_pvt *p);
/*--- Authentication stuff */
static int reply_digest(struct sip_pvt *p, struct sip_request *req, char *header, int sipmethod, char *digest, int digest_len);
ast_log(LOG_DEBUG, "Hanging up channel in state %s (not UP)\n", ast_state2str(ast->_state));
}
+ stop_media_flows(p); /* Immediately stop RTP, VRTP and UDPTL as applicable */
+
/* Disconnect */
if (p->vad)
ast_dsp_free(p->vad);