Asterisk manager Example: Login

Asterisk Manager Example: Login


Login - Establish a new Asterisk manager session.

Don't forget that you have to end your request with \r\n\r\n (two CrLfs), that's ascii characters 13, 10, 13 and 10 successively.
SEND:
ACTION: LOGIN
USERNAME: username
SECRET: password
EVENTS: ON


RECEIVE:
Asterisk Call Manager/1.0
Response: Error
Message: Authentication failed


Or hopefully:
Asterisk Call Manager/1.0
Response: Success
Message: Authentication accepted



Back

Asterisk Manager Example: Login


Login - Establish a new Asterisk manager session.

Don't forget that you have to end your request with \r\n\r\n (two CrLfs), that's ascii characters 13, 10, 13 and 10 successively.
SEND:
ACTION: LOGIN
USERNAME: username
SECRET: password
EVENTS: ON


RECEIVE:
Asterisk Call Manager/1.0
Response: Error
Message: Authentication failed


Or hopefully:
Asterisk Call Manager/1.0
Response: Success
Message: Authentication accepted



Back

Created by: flobi, Last modification: Wed 13 of Sep, 2006 (10:27 UTC) by mdspencer
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+