Phone System

From TipsTrade Wiki
Revision as of 10:11, 11 July 2014 by 192.168.0.30 (talk) (Asterisk)
Jump to: navigation, search

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