aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_jingle.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-12 10:11:36 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-12 10:11:36 +0000
commit199ef7e3d8b7c1c8d5d34ad31ce1f0855f1a3c5b (patch)
tree277102fdb207ddd1fbfdc504e3c66c5a074cae77 /channels/chan_jingle.c
parent593c44bc4355b2c4cc98b15d3a5ec7bb197100b5 (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: http://svn.digium.com/svn/asterisk/trunk@211732 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_jingle.c')
-rw-r--r--channels/chan_jingle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_jingle.c b/channels/chan_jingle.c
index da98986eb..71113f621 100644
--- a/channels/chan_jingle.c
+++ b/channels/chan_jingle.c
@@ -772,7 +772,7 @@ static struct jingle_pvt *jingle_alloc(struct jingle *client, const char *from,
ast_copy_string(tmp->them, idroster, sizeof(tmp->them));
tmp->initiator = 1;
}
- tmp->rtp = ast_rtp_instance_new(NULL, sched, &bindaddr, NULL);
+ tmp->rtp = ast_rtp_instance_new("asterisk", sched, &bindaddr, NULL);
tmp->parent = client;
if (!tmp->rtp) {
ast_log(LOG_WARNING, "Out of RTP sessions?\n");