Run asterisk commands without entering into the CLI

We can run the asterisk commands by entering into the CLI as below :

asterisk -vvvr

you can run the same commands without entering into the CLI as below :

[root@NOCMEConnect ~]# asterisk -rx "sip show peers"
Name/username              Host            Dyn Nat ACL Port     Status
6123                       192.168.22.73    D   N   A  5060     OK (13 ms)
6124                       192.168.22.67    D   N   A  5060     OK (16 ms)
6125                       192.168.22.35    D   N   A  5060     OK (16 ms)

Enjoy 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s