smsq: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/sbin/smsq - from package: asterisk

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/sbin/smsq - from package: asterisk
/usr/lib/debug/usr/sbin/smsq - from package: asterisk-dbg

You may install the required package with command apt-get install {package}
Error in other languages:
smsq: bevel nie gevind nie
smsq: comandă negăsită
smsq: comando não encontrado
smsq: commande introuvable
smsq: command not found
smsq: käsku ei ole
smsq: không tìm thấy lệnh
smsq: komanda nerasta
smsq: Kommando nicht gefunden.
smsq: kommandot finns inte
smsq: komut yok
smsq: nie znaleziono polecenia
smsq: níor aimsíodh an t-ordú
smsq: no se encontró la orden
smsq: no s'ha trobat l'ordre
smsq: opdracht niet gevonden
smsq: parancs nem található
smsq: perintah tidak ditemukan
smsq: príkaz nenájdený
smsq: příkaz nenalezen
smsq: команда не найдена
smsq: командата не е открита
smsq: 命令找不到
smsq: コマンドが見つかりません