/
AMI Through Telnet.
AMI Through Telnet.
Sometimes you need to check AMI connection. But how?
You can use Putty.exe or telnet as well.
With Putty.exe (For Windows), set these parameters like this:
Save your settings and connect and you should get a result like that.
Once connected, then you need to login in.
(<crlf> = Key Enter)
Action: login<crlf>
Username: admin<crlf>
Secret: xxxxxxxxxxxxxxxxxxxxxxxxxxx<crlf>
<crlf>
Response: Success
Message: Authentication accepted
Event: FullyBooted
Privilege: system,all
Status: Fully Booted
ACTION: COMMAND<crlf>
command: core show hints<crlf>
<crlf>
ACTION: COMMAND
command: core show hints
Response: Follows
Privilege: Command
-= Registered Asterisk Dial Plan Hints =-
100@ext-local : PJSIP/100&Custom:DND State:Idle Presence: Watchers 1
101@ext-local : SIP/101&Custom:DND10 State:Unavailable Presence: Watchers 0
102@ext-local : SIP/102&Custom:DND10 State:Idle Presence: Watchers 1
103@ext-local : SIP/103&Custom:DND10 State:Unavailable Presence: Watchers 0
207@ext-local : PJSIP/207&Custom:DND State:Unavailable Presence: Watchers 0
206@ext-local : PJSIP/206&Custom:DND State:Unavailable Presence: Watchers 0
205@ext-local : PJSIP/205&Custom:DND State:Unavailable Presence: Watchers 0
204@ext-local : PJSIP/204&Custom:DND State:Unavailable Presence: Watchers 0
203@ext-local : PJSIP/203&Custom:DND State:Idle Presence: Watchers 0
202@ext-local : PJSIP/202&Custom:DND State:Unavailable Presence: Watchers 1
201@ext-local : PJSIP/201&Custom:DND State:Idle Presence:available Watchers 1
*8575@park-hints : park:75@parkedcalls State:Unavailable Presence:not_set Watchers 0
.../...
----------------
- 74 hints registered
--END COMMAND-- |
Sometimes you might get an error caused by a wrong character somewhere in the console, just press key Enter, and try to writte your command again.
in this example, i formated the result of core show hints, there's no <crlf> in this result.
Ref: Asterisk Manager API - VoIP-Info
With telnet, same thing. Just launch # telnet ip_address 5038