I am a bit confused about what version of Asterisk I am running on centos server.The documentation is different for different versions. How to know the version using putty command?
asterisk -r
core show version
If that not work, you are running version <1.8 and you need do
asterisk -r
show version
Also you can try
asterisk -v
Fail that try
asterisk -V