Re: [asterisk-users] Chan Local, Originate and slin

2017-11-22 Thread Steve Edwards

On Wed, 22 Nov 2017, Kseniya Blashchuk wrote:

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


Lubuntu 17.10 installed Asterisk 13.17.2.

--
Thanks in advance,
-
Steve Edwards   sedwa...@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


Re: [asterisk-users] Chan Local, Originate and slin

2017-11-22 Thread Kseniya Blashchuk
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  wrote:

> On Wed, Nov 22, 2017 at 12:38 PM, Kseniya Blashchuk 
> wrote:
>
>> Again - when Originate is run from dialplan, i get:
>>
>> NativeFormats: (slin192)
>> WriteFormat: slin
>>  ReadFormat: slin192
>>  WriteTranscode: Yes (slin@8000)->(slin@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
-- 
_
-- 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

Re: [asterisk-users] Chan Local, Originate and slin

2017-11-22 Thread Richard Mudgett
On Wed, Nov 22, 2017 at 12:38 PM, Kseniya Blashchuk 
wrote:

> Again - when Originate is run from dialplan, i get:
>
> NativeFormats: (slin192)
> WriteFormat: slin
>  ReadFormat: slin192
>  WriteTranscode: Yes (slin@8000)->(slin@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

Re: [asterisk-users] Chan Local, Originate and slin

2017-11-22 Thread Kseniya Blashchuk
Again - when Originate is run from dialplan, i get:

NativeFormats: (slin192)
WriteFormat: slin
 ReadFormat: slin192
 WriteTranscode: Yes (slin@8000)->(slin@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  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 
> 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   sedwa...@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
>
>
-- 
_
-- 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

Re: [asterisk-users] Chan Local, Originate and slin

2017-11-22 Thread Kseniya Blashchuk
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 
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   sedwa...@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
-- 
_
-- 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

Re: [asterisk-users] Chan Local, Originate and slin

2017-11-22 Thread Steve Edwards

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   sedwa...@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

Re: [asterisk-users] Chan Local, Originate and slin

2017-11-22 Thread Kseniya Blashchuk
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.

ср, 22 нояб. 2017 г. в 16:44, Dmitriy Serov :

> AMI action Originate has param "Codecs". I think it helps.
>
>
> https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+ManagerAction_Originate
>
> 22.11.2017 13:24, Kseniya Blashchuk пишет:
>
> Hi all!
>
>
> Asterisk 13.1.0 Ubuntu 16.04, all latest.
> Can anybody explain this to me - I run Originate command from dialplan:
>
>  same => n,Originate(Local/${number}@mycontext,app,ConfBridge,${confnum})
>
> and I get crazy sound distortion in the conference, and I see that
> transcoding takes place here:
>
>   NativeFormats: (slin192)
> WriteFormat: slin
>  ReadFormat: slin192
>  WriteTranscode: Yes (slin@8000)->(slin@192000)
>   ReadTranscode: No
>
> When I do the same from a call file like:
>
>  same => n,System(printf "Action: Originate\nActionID: 1\nChannel:
> Local/${number}@mycontext\nApplication: Confbridge\nData: ${confnum}\n" >
> /var/spool/asterisk/outgoing/${number}-${confnum})
>
> the sound is perfect and this is what I see on the channel params:
>
>   NativeFormats: (slin)
> WriteFormat: slin
>  ReadFormat: slin
>  WriteTranscode: No
>   ReadTranscode: No
>
> Can anybody explain what is going on?
>
>
>
>
> --
> _
> -- 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
-- 
_
-- 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

Re: [asterisk-users] Chan Local, Originate and slin

2017-11-22 Thread Dmitriy Serov

AMI action Originate has param "Codecs". I think it helps.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+ManagerAction_Originate

22.11.2017 13:24, Kseniya Blashchuk пишет:

Hi all!

Asterisk 13.1.0 Ubuntu 16.04, all latest.
Can anybody explain this to me - I run Originate command from dialplan:

 same => n,Originate(Local/${number}@mycontext,app,ConfBridge,${confnum})

and I get crazy sound distortion in the conference, and I see that 
transcoding takes place here:


  NativeFormats: (slin192)
    WriteFormat: slin
     ReadFormat: slin192
 WriteTranscode: Yes (slin@8000)->(slin@192000)
  ReadTranscode: No

When I do the same from a call file like:

 same => n,System(printf "Action: Originate\nActionID: 1\nChannel: 
Local/${number}@mycontext\nApplication: Confbridge\nData: 
${confnum}\n" > /var/spool/asterisk/outgoing/${number}-${confnum})


the sound is perfect and this is what I see on the channel params:

  NativeFormats: (slin)
    WriteFormat: slin
     ReadFormat: slin
 WriteTranscode: No
  ReadTranscode: No

Can anybody explain what is going on?




-- 
_
-- 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

[asterisk-users] Chan Local, Originate and slin

2017-11-22 Thread Kseniya Blashchuk
Hi all!

Asterisk 13.1.0 Ubuntu 16.04, all latest.
Can anybody explain this to me - I run Originate command from dialplan:

 same => n,Originate(Local/${number}@mycontext,app,ConfBridge,${confnum})

and I get crazy sound distortion in the conference, and I see that
transcoding takes place here:

  NativeFormats: (slin192)
WriteFormat: slin
 ReadFormat: slin192
 WriteTranscode: Yes (slin@8000)->(slin@192000)
  ReadTranscode: No

When I do the same from a call file like:

 same => n,System(printf "Action: Originate\nActionID: 1\nChannel:
Local/${number}@mycontext\nApplication: Confbridge\nData: ${confnum}\n" >
/var/spool/asterisk/outgoing/${number}-${confnum})

the sound is perfect and this is what I see on the channel params:

  NativeFormats: (slin)
WriteFormat: slin
 ReadFormat: slin
 WriteTranscode: No
  ReadTranscode: No

Can anybody explain what is going on?
-- 
_
-- 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