Asterisk CLI useful commands:-
To Enter CLI:-
Connect your dialer with ssh, then type this command to enter in Asterisk CLI console
[root@Akwal ~]# asterisk -rvvvvv
or
[root@Akwal ~]# asterisk -rx
To Enter CLI with additional debugging:-
[root@Akwal ~]# asterisk -rddddd
Set SIP debugging mode :-
dialer2*CLI> sip set debug peer {peer Name]
Eg.
sip set debug peer giove1motion
sip set debug on : Enable sip debugging
sip set debug off : Disable sip debug
sip set debug ip x.x.x.x : Enable sip debug for IP x.x.x.x
sip set debug peer xxxx : Enable sip debug for extension xxxx
core set debug 5 : set the core debug to level 5
core set verbose 9 : set verbosity level to 9
RTP Debugging :-
dialer2*CLI> rtp set debug on
To check CODEC trans-coding list :-
ialer2*CLI> core show translation
#####
core start now : start asterisk service from cli
core stop now : stop asterisk service from cli
core restart now : restart asterisk service from cli
CLI commands outside the CLI :-
To Reload
[root@Akwal ~]# asterisk -rx "reload"
To check Peers
[root@Akwal ~]# asterisk -rx "sip show peers"
To Check Carriers:
[root@Akwal ~]# asterisk -rx "core show channels"
To Check SIP channels list:-
[root@Akwal ~]# asterisk -rx "sip show channels"
To Check Registered trunks:-
[root@Akwal ~]# asterisk -rx "sip show registry"
To Download g729 codec Click here
To Enter CLI:-
Connect your dialer with ssh, then type this command to enter in Asterisk CLI console
[root@Akwal ~]# asterisk -rvvvvv
or
[root@Akwal ~]# asterisk -rx
To Enter CLI with additional debugging:-
[root@Akwal ~]# asterisk -rddddd
Set SIP debugging mode :-
dialer2*CLI> sip set debug peer {peer Name]
Eg.
sip set debug peer giove1motion
sip set debug on : Enable sip debugging
sip set debug off : Disable sip debug
sip set debug ip x.x.x.x : Enable sip debug for IP x.x.x.x
sip set debug peer xxxx : Enable sip debug for extension xxxx
core set debug 5 : set the core debug to level 5
core set verbose 9 : set verbosity level to 9
RTP Debugging :-
dialer2*CLI> rtp set debug on
To check CODEC trans-coding list :-
ialer2*CLI> core show translation
#####
core start now : start asterisk service from cli
core stop now : stop asterisk service from cli
core restart now : restart asterisk service from cli
reload : Reloading complete asterisk configuration
dialplan reload : reload dialplan only
sip reload : reload sip settings only
dialplan show : shows all the dialplans in the system
core show applications : list all the available dialplan applications in asterisk
core show functions : list all the available dialplan functions in asterisk
CLI commands outside the CLI :-
To Reload
[root@Akwal ~]# asterisk -rx "reload"
To check Peers
[root@Akwal ~]# asterisk -rx "sip show peers"
To Check Carriers:
[root@Akwal ~]# asterisk -rx "core show channels"
To Check SIP channels list:-
[root@Akwal ~]# asterisk -rx "sip show channels"
To Check Registered trunks:-
[root@Akwal ~]# asterisk -rx "sip show registry"
To Download g729 codec Click here
0 comments:
Post a Comment