From 0ff53eddeffb86c08ce1df4784d4b2d07d58c53a Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 12 Aug 2009 10:11:36 +0000 Subject: Always specify which RTP engine is desired for a new RTP instance. This fixes a crash reported in #asterisk-dev where chan_mgcp unexpectedly allocated an RTP instance from res_rtp_multicast, since by not specifying an engine, you get the first one in the list of engines. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211732 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_unistim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channels/chan_unistim.c') diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c index bb90301f9..8de4ada33 100644 --- a/channels/chan_unistim.c +++ b/channels/chan_unistim.c @@ -2061,7 +2061,7 @@ static void start_rtp(struct unistim_subchannel *sub) /* Allocate the RTP */ if (unistimdebug) ast_verb(0, "Starting RTP. Bind on %s\n", ast_inet_ntoa(sout.sin_addr)); - sub->rtp = ast_rtp_instance_new(NULL, sched, &sout, NULL); + sub->rtp = ast_rtp_instance_new("asterisk", sched, &sout, NULL); if (!sub->rtp) { ast_log(LOG_WARNING, "Unable to create RTP session: %s binaddr=%s\n", strerror(errno), ast_inet_ntoa(sout.sin_addr)); -- cgit v1.2.3