Author Topic: ERR:Could not download dialplan. You may have to set grant 'config'  (Read 2435 times)

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Where i run AMI tester,there is a error.how to set grant 'config',i have set the read and write to all
Status   
    AMI URL: tcp:admin:*****@127.0.0.1:5038
ERR   Could not download dialplan. You may have to set grant 'config'
OK   Asterisk dialog was OK
    AMI Dialog took 6181 ms

marcos

  • Loway
  • Full Member
  • *
  • Posts: 138
  • Karma: 3
    • View Profile
Re: ERR:Could not download dialplan. You may have to set grant 'config'
« Reply #1 on: January 03, 2011, 12:15:27 »
Hello,

Do you have the config key in the manager.conf file?
In order to be able to run AMI tester properly, the user that access to asterisk through AMI should have the grant "config" enabled.
You can do that modifying the file manager.conf in the asterisk configuration folder then restart asterisk.
Assuming "admin" is the username used by QueueMetrics to access asterisk through AMI you should have something like:

;
; Asterisk Call Management support
;
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

[admin]
secret = yourpasswordhere
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user,config,originate
write = system,call,log,verbose,command,agent,user,config,originate

Thanks.
Marco.


coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: ERR:Could not download dialplan. You may have to set grant 'config'
« Reply #2 on: January 10, 2011, 03:28:03 »
it works for me  thanks