Phone System
Asterisk
Converting WAV to PCM:
Asterisk can't play mu-law files, so they need to be converted to PCM
ORIG=<ulaw file> PCM=$(echo "$ORIG" | sed 's/ulaw/pcm/') sox "$ORIG" -r 8000 -c 1 -e signed $PCM
Converting WAV to PCM:
Asterisk can't play mu-law files, so they need to be converted to PCM
ORIG=<ulaw file> PCM=$(echo "$ORIG" | sed 's/ulaw/pcm/') sox "$ORIG" -r 8000 -c 1 -e signed $PCM