From ce4086bbdcb6843d50cca6c3b2dbe8d8516831e0 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 15 Mar 2010 22:14:18 +0000 Subject: Tell the RTP engine API about the initial read and write format. Peer reviewed out-of-band by file. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@252627 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a2e13e70b..be9db0776 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5504,10 +5504,15 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit if (state == AST_STATE_RING) tmp->rings = 1; tmp->adsicpe = AST_ADSI_UNAVAILABLE; + tmp->writeformat = fmt; tmp->rawwriteformat = fmt; + ast_rtp_instance_set_write_format(i->rtp, fmt); + tmp->readformat = fmt; tmp->rawreadformat = fmt; + ast_rtp_instance_set_read_format(i->rtp, fmt); + tmp->tech_pvt = dialog_ref(i, "sip_new: set chan->tech_pvt to i"); tmp->callgroup = i->callgroup; -- cgit v1.2.3