Again - when Originate is run from dialplan, i get: NativeFormats: (slin192) WriteFormat: slin ReadFormat: slin192 WriteTranscode: Yes (slin at 8000)->(slin at 192000) ReadTranscode: No When it's made with a call file (no matter how a call file is created), I see NativeFormats: (slin) WriteFormat: slin ReadFormat: slin WriteTranscode: No ReadTranscode: No Please note - I do not use any manager API Can anybody explain how the native format is chosen in these cases? On Wed, Nov 22, 2017, 9:33 PM Kseniya Blashchuk <ksyblast at gmail.com> wrote:> This thread is not the point how to create call files and not about > manager commands. > I am asking why naive codec is different for channel Local with cmd > Originate when comparing to the same action in a call file. Call files work > for me in this way. If it doesn't work for you, maybe you have a different > OS or Asterisk version. > > On Wed, Nov 22, 2017, 8:02 PM Steve Edwards <asterisk.org at sedwards.com> > wrote: > >> On Wed, 22 Nov 2017, Dmitriy Serov wrote: >> >> > same => n,System(printf "Action: Originate\nActionID: 1\nChannel: >> Local/${number}@mycontext\nApplication: Confbridge\nData: ${confnum}\n" > >> > /var/spool/asterisk/outgoing/${number}-${confnum}) >> >> I get: >> >> Unknown keyword 'Action' at line 1 of /var/spool/asterisk/outgoing/... >> Unknown keyword 'ActionID' at line 2 of /var/spool/asterisk/outgoing/... >> >> These are 'AMI' commands, not call file commands. >> >> Also, just in case you're not aware, 'best practice' is to create the call >> file in a 'temp' directory on the same partition as >> ${astspooldir}/outgoing/ and then 'mv' the file to that directory. >> >> -- >> Thanks in advance, >> ------------------------------------------------------------------------- >> Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST >> https://www.linkedin.com/in/steve-edwards-4244281-- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> Check out the new Asterisk community forum at: >> https://community.asterisk.org/ >> >> New to Asterisk? Start here: >> https://wiki.asterisk.org/wiki/display/AST/Getting+Started >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20171122/192c90a6/attachment.html>
On Wed, Nov 22, 2017 at 12:38 PM, Kseniya Blashchuk <ksyblast at gmail.com> wrote:> Again - when Originate is run from dialplan, i get: > > NativeFormats: (slin192) > WriteFormat: slin > ReadFormat: slin192 > WriteTranscode: Yes (slin at 8000)->(slin at 192000) > ReadTranscode: No > > When it's made with a call file (no matter how a call file is created), I > see > > NativeFormats: (slin) > WriteFormat: slin > ReadFormat: slin > WriteTranscode: No > ReadTranscode: No > > Please note - I do not use any manager API > Can anybody explain how the native format is chosen in these cases? >Version 13.1 is a very old version of Asterisk 13. The current version of Asterisk 13 is 13.18.2. I also recall an issue where local channels tended to use slin192 when there was no need. However, I'm unable to find the issue to know when that was done. Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20171122/220b1ce4/attachment.html>
Hmm thanks, I guess I should try the latest version just to check. Unfortunately Ubuntu asterisk is not so frequently updated, just backports on security updates On Wed, Nov 22, 2017, 10:29 PM Richard Mudgett <rmudgett at digium.com> wrote:> On Wed, Nov 22, 2017 at 12:38 PM, Kseniya Blashchuk <ksyblast at gmail.com> > wrote: > >> Again - when Originate is run from dialplan, i get: >> >> NativeFormats: (slin192) >> WriteFormat: slin >> ReadFormat: slin192 >> WriteTranscode: Yes (slin at 8000)->(slin at 192000) >> ReadTranscode: No >> >> When it's made with a call file (no matter how a call file is created), I >> see >> >> NativeFormats: (slin) >> WriteFormat: slin >> ReadFormat: slin >> WriteTranscode: No >> ReadTranscode: No >> >> Please note - I do not use any manager API >> Can anybody explain how the native format is chosen in these cases? >> > Version 13.1 is a very old version of Asterisk 13. The current version of > Asterisk 13 is 13.18.2. > I also recall an issue where local channels tended to use slin192 when > there was no need. However, > I'm unable to find the issue to know when that was done. > > Richard > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20171122/0a1b7700/attachment.html>