diff options
author | Russell Bryant <russell@russellbryant.com> | 2009-08-12 10:11:36 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2009-08-12 10:11:36 +0000 |
commit | 0ff53eddeffb86c08ce1df4784d4b2d07d58c53a (patch) | |
tree | 277102fdb207ddd1fbfdc504e3c66c5a074cae77 /channels/chan_mgcp.c | |
parent | 148d49e362e4e4138bde111339c8c25823b0c019 (diff) |
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
Diffstat (limited to 'channels/chan_mgcp.c')
-rw-r--r-- | channels/chan_mgcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index d74fc9daf..cc0125031 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -2614,7 +2614,7 @@ static void start_rtp(struct mgcp_subchannel *sub) sub->rtp = NULL; } /* Allocate the RTP now */ - sub->rtp = ast_rtp_instance_new(NULL, sched, &bindaddr, NULL); + sub->rtp = ast_rtp_instance_new("asterisk", sched, &bindaddr, NULL); if (sub->rtp && sub->owner) ast_channel_set_fd(sub->owner, 0, ast_rtp_instance_fd(sub->rtp, 0)); if (sub->rtp) { |