AMI bug?

Hello from Rome, Italy

The execution of the very same shell script that connects to AMI and originates a conference call

  • WORKS when invoked from a shell
  • FAILS when invoked by the Dialplan using the System() application

The Asterisk console reports:
Connect attempt from ‘’ unable to authenticate

Asterisk is running as root, so permissions shouldn’t be a problem.
The firewall is disabled.
Selinux is disabled.

The software versions are:
Asterisk 11.6.0-rc1 built by root @ localhost.localdomain on a x86_64 running Linux
Centos 2.6.32-71.el6.x86_64

Seems a bug to me.

Why don’t you use originate from the dialplan instead calling a shell cmd. In the other hand seems like you don’t have set the permission correctly you need to provide logs code and dialplan in order to get further help.

As AMI is TCP based it would not be able to tell the difference between the two cases, so definitely not an AMI bug.