Asterisk won't be "happy" trying to play foobar.wav if it is actually a
.alaw file.   Since you can't rename the existing files, there's no law that
says you can't copy them and play them correctly.    Assuming that your
calls are using the alaw codec, this snippet would do the trick

 

Exten => 1234,1,answer

Exten => 1234,n,System(/bin/cp foobar.wav /tmp/foobar.alaw)

Exten => 1234,n,playback(/tmp/foobar)

Exten => 1234,n,System(/bin/rm /tmp/foobar.alaw)

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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

Reply via email to