Exit from AMI script

yash@yash-VirtualBox:~$ sudo su
[sudo] password for yash: 
root@yash-VirtualBox:/home/yash# telnet 192.168.1.4 5038
Trying 192.168.1.4...
Connected to 192.168.1.4.
Escape character is '^]'.
Asterisk Call Manager/5.0.2
Action:login
Username:1101
Secret:123456

Response: Success
Message: Authentication accepted

Event: FullyBooted
Privilege: system,all
Uptime: 323
LastReload: 323
Status: Fully Booted

Event: SuccessfulAuth
Privilege: security,all
EventTV: 2021-01-13T10:03:59.318+0530
Severity: Informational
Service: AMI
EventVersion: 1
AccountID: 1101
SessionID: 0x7f3b5c000be0
LocalAddress: IPV4/TCP/0.0.0.0/5038
RemoteAddress: IPV4/TCP/192.168.1.4/37906
UsingPassword: 0
SessionTV: 2021-01-13T10:03:59.318+0530













I am working in AMI but When I action login its its authenticate but after my work done how to exit from AMI script.
I tried ctrl+c, esc, shift+: and :q but nothing worked.

Use the ‘logoff’ command:

pbx10:newline:20:55:55> manager show command logoff

Or, if your goal is to exit ‘telnet’ enter <control><right-square-bracket>exit<newline>.

logoff command worked, thanks for that

But telnet command not worked

I got invalid command error in that.

My bad. Try ‘quit’ instead of ‘exit’.

1 Like

done thanks for your support