<div dir="ltr">First, I cannot set codecs with cmd Originate from dialplan (or can I?). Second - the difference in my example is only between cmd Originate from dialplan and Originate from a call file. To my mind, it shouldn't make any difference.</div><br><div class="gmail_quote"><div dir="ltr">ср, 22 нояб. 2017 г. в 16:44, Dmitriy Serov <<a href="mailto:serov.d.p@gmail.com">serov.d.p@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
    <div class="m_1951580508923440906moz-cite-prefix">AMI action Originate has param
      "Codecs". I think it helps.<br>
      <br>
      <a class="m_1951580508923440906moz-txt-link-freetext" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+ManagerAction_Originate" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+ManagerAction_Originate</a><br>
      <br>
      22.11.2017 13:24, Kseniya Blashchuk пишет:<br>
    </div>
    </div><div text="#000000" bgcolor="#FFFFFF"><blockquote type="cite">
      <div dir="ltr">Hi all!
        </div></blockquote></div><div text="#000000" bgcolor="#FFFFFF"><blockquote type="cite"><div dir="ltr"><div><br>
        </div>
        <div>Asterisk 13.1.0 Ubuntu 16.04, all latest.</div>
        <div>Can anybody explain this to me - I run Originate command
          from dialplan:<br>
        </div>
        <div>
          <div><br>
          </div>
          <div> same =>
            n,Originate(Local/${number}@mycontext,app,ConfBridge,${confnum})</div>
        </div>
        <div><br>
        </div>
        <div>and I get crazy sound distortion in the conference, and I
          see that transcoding takes place here:</div>
        <div>
          <div><br>
          </div>
          <div>  NativeFormats: (slin192)</div>
          <div>    WriteFormat: slin</div>
          <div>     ReadFormat: slin192</div>
          <div> WriteTranscode: Yes (slin@8000)->(slin@192000)</div>
          <div>  ReadTranscode: No </div>
        </div>
        <div><br>
        </div>
        <div>When I do the same from a call file like:</div>
        <div><br>
        </div>
        <div>
          <div> same => n,System(printf "Action: Originate\nActionID:
            1\nChannel: Local/${number}@mycontext\nApplication:
            Confbridge\nData: ${confnum}\n" >
            /var/spool/asterisk/outgoing/${number}-${confnum})</div>
        </div>
        <div><br>
        </div>
        <div>the sound is perfect and this is what I see on the channel
          params:</div>
        <div><br>
        </div>
        <div>
          <div>  NativeFormats: (slin)</div>
          <div>    WriteFormat: slin</div>
          <div>     ReadFormat: slin</div>
          <div> WriteTranscode: No </div>
          <div>  ReadTranscode: No </div>
        </div>
        <div><br>
        </div>
        <div>Can anybody explain what is going on?</div>
      </div></blockquote></div><div text="#000000" bgcolor="#FFFFFF"><blockquote type="cite"><div dir="ltr"></div>
      <br>
      <fieldset class="m_1951580508923440906mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <p><br>
    </p>
  </div>

--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>