2013-08-22 03:34:11 +02:00
|
|
|
# To connect to a running Asterisk session:
|
2013-08-18 16:33:21 +02:00
|
|
|
asterisk -rvvv
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To issue a command to Asterisk from the shell:
|
2013-08-18 16:33:21 +02:00
|
|
|
asterisk -rx "<command>"
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To originate an echo call from a SIP trunk on an Asterisk server, to a specified number:
|
2013-08-18 16:33:21 +02:00
|
|
|
asterisk -rx "channel originate SIP/<trunk>/<number> application echo"
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To print out the details of SIP accounts:
|
2013-08-18 16:33:21 +02:00
|
|
|
asterisk -rx "sip show peers"
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To print out the passwords of SIP accounts:
|
2013-08-18 16:33:21 +02:00
|
|
|
asterisk -rx "sip show users"
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To print out the current active channels:
|
2013-08-18 16:33:21 +02:00
|
|
|
asterisk -rx "core show channels"
|