aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-15 22:14:18 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-15 22:14:18 +0000
commitb40e92597ab55df5b8483f7fd2cb9def8b59b34b (patch)
tree2ff62029d144f499c46f6d40369ff30ba0da7243 /channels
parent44cc42f02283c72ac4c27b39122440d03abb676c (diff)
Tell the RTP engine API about the initial read and write format.
Peer reviewed out-of-band by file. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@252627 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 5 insertions, 0 deletions
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;