Peer reviewed out-of-band by file.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@252627
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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;