<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Guillaume Yziquel escribió:
<blockquote cite="mid:4ADD989C.3010408@citycable.ch" type="cite">
<pre wrap="">Hello.
I wrote a piece of code for AMI 1.0, to originate some calls. The code
is (in OCaml):
</pre>
<blockquote type="cite">
<pre wrap=""> string_of_lines [
"Action: originate";
("Channel: "^(Configuration.dial_campaign_item campaign_item));
"WaitTime: 30";
"CallerId: appel <XXXXXXXX>";
"Exten: receiver";
"Context: receiving";
"Priority: 1";
"Async: true";
("ActionID: "^unique_identifier)]
</pre>
</blockquote>
<pre wrap=""><!---->
It used to work fine with the AMI 1.0, but now, with 1.1., I get
</pre>
<blockquote type="cite">
<pre wrap="">Response: Error
ActionID: 1256035727.29741096
Message: Permission denied
</pre>
</blockquote>
<pre wrap=""><!---->
So what is this permission issue? Where are the changes from 1.0 to 1.1
documented?
All the best,
</pre>
</blockquote>
When I was testing asterisk 1.6.0.X with the AMI Originate action, I
fell into the same issue as you. I found that it was that the
permissions now are more fine-grained, and to have the ability to
originate a call you need to set additional write permissions compared
to the 1.4.X AMI.<br>
<br>
A quick look of asterisk 1.6.0.X manager.conf.sample can give you the
answer:<br>
<br>
; Authorization for various classes <br>
;<br>
; Read authorization permits you to receive asynchronous events, in
general.<br>
; Write authorization permits you to send commands and get back
responses. The<br>
; following classes exist:<br>
;<br>
; system - General information about the system and ability to run
system<br>
; management commands, such as Shutdown, Restart, and
Reload.<br>
; call - Information about channels and ability to set information
in a<br>
; running channel.<br>
; log - Logging information. Read-only.<br>
; verbose - Verbose information. Read-only.<br>
; agent - Information about queues and agents and ability to add
queue<br>
; members to a queue.<br>
; user - Permission to send and receive UserEvent.<br>
; config - Ability to read and write configuration files.<br>
; command - Permission to run CLI commands. Write-only.<br>
; dtmf - Receive DTMF events. Read-only.<br>
; reporting - Ability to get information about the system.<br>
; cdr - Output of cdr_manager, if loaded. Read-only.<br>
; dialplan - Receive NewExten and VarSet events. Read-only.<br>
<b>; originate - Permission to originate new calls. Write-only.</b><br>
;<br>
;read =
system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan<br>
;write = system,call,agent,user,config,command,reporting,<b>originate</b><br>
<br>
When I put the originate permission on the write settings of my AMI
user, everything went fine.<br>
<br>
To find more documentarion about the changes from AMI 1.0 to 1.1 take a
look of these files on your asterisk source code:<br>
<br>
UPGRADE-1.6.txt<br>
doc/manager_1_1.txt<br>
<br>
Hope it solves your issue.<br>
<br>
Cheers,<br>
<pre class="moz-signature" cols="72">--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center
</pre>
</body>
</html>