[asterisk-users] Chan Local, Originate and slin

Kseniya Blashchuk ksyblast at gmail.com
Wed Nov 22 12:38:15 CST 2017


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>


More information about the asterisk-users mailing list