Search code examples
phpasterisk

Asterisk Manager Interface connection


I am a newbie in Asterisk.

I see two ways to connect Asterisk Manager Interface (AMI) in Asterisk:

  • AMI over TCP
  • AMI over HTTP

How should I use? TCP or HTTP? and why? I have found this open source PAMI, this is implement AMI using PHP and seem using TCP connect.

I not found any open source AMI for HTTP connect.


Solution

  • AMI is protocol which require state support, using tcp socket.

    Sure you can try do AMI connection via http(using middleware), but it not designed to work like that.

    For user via http see ARI interface.