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 at 8000)->(slin at 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20171122/5924815f/attachment.html>
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 at 8000)->(slin at 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? > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20171122/3c39bc45/attachment.html>
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 <serov.d.p at gmail.com>:> 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 at 8000)->(slin at 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-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20171122/2ff64360/attachment.html>
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