mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -3632,9 +3632,9 @@ static void start_rtp(struct skinny_subchannel *sub)
|
||||
|
||||
ast_mutex_lock(&sub->lock);
|
||||
/* Allocate the RTP */
|
||||
sub->rtp = ast_rtp_instance_new(NULL, sched, &bindaddr, NULL);
|
||||
sub->rtp = ast_rtp_instance_new("asterisk", sched, &bindaddr, NULL);
|
||||
if (hasvideo)
|
||||
sub->vrtp = ast_rtp_instance_new(NULL, sched, &bindaddr, NULL);
|
||||
sub->vrtp = ast_rtp_instance_new("asterisk", sched, &bindaddr, NULL);
|
||||
|
||||
if (sub->rtp) {
|
||||
ast_rtp_instance_set_prop(sub->rtp, AST_RTP_PROPERTY_RTCP, 1);
|
||||
|
Reference in New Issue
Block a user