aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_h323.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_h323.c')
-rw-r--r--channels/chan_h323.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index 8761026d0..61dc7c25f 100644
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -1031,6 +1031,8 @@ static struct ast_channel *__oh323_new(struct oh323_pvt *pvt, int state, const c
ch->rawwriteformat = fmt;
ch->readformat = fmt;
ch->rawreadformat = fmt;
+ if (!pvt->rtp)
+ __oh323_rtp_create(pvt);
#if 0
ast_channel_set_fd(ch, 0, ast_rtp_fd(pvt->rtp));
ast_channel_set_fd(ch, 1, ast_rtcp_fd(pvt->rtp));