homehowtokbslinksaboutcontactprojectsmusic

Index > Knowledge Base > Asterisk PBX
Asterisk in debug modes:
asterisk -vvvvvvdr 
Start a very chatty Asterisk command line interface and connect to asterisk running in the background
asterisk -vvvvvvc
Start Asterisk PBX, don't go background Connect to a running Asterisk, force reload of configuration with the CLI command "reload"
asterisk -rx reload
Instal ztdummy and configure it
apt-get install zaptel zaptel-source
m-a a-i zaptel
modprobe ztdummy
Covert music files to different formats in ubuntu
sudo apt-get install sox libsox-fmt-all
sox
to see supported files
sox --show-progress -V1 file.wav -r 8000 -c 1 -t gsm file.gsm resample -ql
Recompile DAHDI. After kernel upgrade you need to update DAHDI to get certain things to work
/var/lib/dpkg/info/dahdi-dkms.postinst configure

Partial reading in asterisk dialplans

Remove first 2 digit from variable ${NUMBER}, number is 123456
${NUMBER:2}
above will change 123456 to 3456 Read last 2 digits from ${NUMBER}
${NUMBER:-2}
above will change 123456 to 56 No cutting but changing reading point
${NUMBER:0:3}
above will not skipping but will read first 3 digits No cutting but changing the reading start point
${NUMBER:1:3}
above will not skip but will start reading from 1 digit

Reference