On 9/10/07, Barton Fisher <[EMAIL PROTECTED]> wrote:
> Thanks Guys...  ulaw it is.  One more question if you don't mind.  If a
> phase recorded as both .wav and .ulaw in the same folder, which will
> asterisk pick using Playback(), Read() and Background() since you can't
> specify the file extension in the command?
> I thought I change my script to begin recording new messages in ulaw
> instead of converting them all to ulaw at once. So it's possible to have
> two prompts with both file extension at a time

Asterisk will try to find file in codec currently in use, and if it
can't find, it will try to use file with less translation time (try
"show transcoding" in CLI). So - you can have files in all the codecs
used in your PBX, asterisk will choose most appropriate. The same goes
for MOH.

A little caveat - "sox" doesn't understands file extensions used by
asterisk (or it's just asterisk, trying to use file extensions that
match codec name). So - some sox commandline hints:

ulaw: -t ul
alaw: -t al
slin: -t raw -s -w

Regards,
Atis

-- 
Atis Lezdins,
IT Responsible of BEST Riga,
[EMAIL PROTECTED]
ICQ: 142239285
Skype: atis.lezdins
Cell Phone: +371 28806004 [Tele2, Latvia]
Work phone: +1 800 7502835 [Toll free, USA]
?BEST? -> www.BEST.eu.org

_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to