Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to test an Asterisk from the terminal, without a phone

Tags:

asterisk

I have installed asterisk I want to test I'm able to log in. I have in Go GoGrid. when I setup the IP, the extension and password I get it cannot reach the server. I'm able to ssh into the machine.

Is there a way to test from the console that asterisk is running and receiving connections ? I would like to test from the terminal that I can connect with that extension and password ? There might a problem with Asterisk running on GoGrid ?

Thanks, Federico

like image 784
Federico Avatar asked Dec 30 '25 23:12

Federico


1 Answers

Federico. Firstly, I run four Asterisk PBXs on GoGrid, so I know it works just fine. Make sure your IP Tables is allowing SIP, IAX2 & RTP connections; by default, the images supplied don't. To see if Asterisk is "seeing" a connection, use "asterisk -rvvv" to connect to the running Asterisk console. Use "sip show peers" or "iax2 show peers" to see if your phones and trunks are connected properly. I also find that the "iftop" utility is -very- useful for making sure that remote devices are even trying to reach your PBX eth0.

like image 127
MichelV69 Avatar answered Jan 02 '26 03:01

MichelV69



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!