I
I
ink2013-05-16 17:25:11
Asterisk
ink, 2013-05-16 17:25:11

How to connect to AMI (asterisk)

I'm trying to set up a connection with the PBX. but I get an error that the action variable is missing.
tried different ways
192.168.1.150 :5038/asterisk/manager?action=login&username=user&secret=pass
192.168.1.150 :5038/manager?action=login&username=user&secret=pass
192.168.1.150 :5038/?action=login&username=user&secret=pass

but the error is the same ... in general, where should I go? :)
thank you all in advance

Answer the question

In order to leave comments, you need to log in

5 answer(s)
L
la0, 2013-05-16
@la0

I already gave you links in the previous question.
There is a link to AJAM: it has a different port, it seems 8088 or 8808 (see docs)

L
la0, 2013-05-16
@la0

That doesn't work. So only for AJAM.
AMI has its own request-response protocol.

I
ink, 2013-05-16
@ink

Clear. but why doesn't it work anyway? and how to make it work? :)

D
Dmitry Skogorev, 2013-05-16
@EnterSandman

Have you read the documentation?
try to telnet to the port and send
Action: login
Username: user
Secret: pass
and now your request is a regular GET
GET /?action=login&username=user&secret=pass HTTP/1.0
is that clearer?

I
ink, 2013-05-16
@ink

this is understandable, thanks ... the question is how to make it work over http :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question