In my manager.conf I have the permissions for a given user set to:
read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
write = originate
However, when I am using the AMI, and do “Action: ListCommands”, the list I get is:
WaitEvent: (Priv: )
MixMonitorMute: (Priv: )
ParkedCalls: (Priv: )
ListCommands: (Priv: )
Originate: (Priv: originate,all)
Ping: (Priv: )
Challenge: (Priv: )
Login: (Priv: )
Logoff: (Priv: )
Events: (Priv: )
DataGet: (Priv: )
I do not get access to any other commands, so I cannot do things like hangup calls, get channel information, etc. It seems like a command like “sip show channels” would be a “read” permission, and since I have all read permissions I should get a longer list than AMI returns to me for ListCommands.
How can I use other commands?
EDIT: I was also just trying to do a simple “Action: Originate” but this was also failing. My call looked like:
Action: Originate
Channel: SIP/@
Context: default
Exten:
Priority: 1
Timeout: 30000
Callerid: 10
I’m very new to AMI and asterisk/SIP in general. However, I am watching the events happen via the CLI and am also sniffing all the SIP packets. Within the CLI I see the following warning:
WARNING[17320]: chan_sip.c:19568 handle_response_invite: Received response: “Forbidden” from '“10” sip:10@wrong_sip_domain;tage=asdasdfa
And then after the timeout specified in the call:
WARNING[17320]: chan_sip.c:retrans_pkt: Retransmission timeout reached on transmission
The domain that Asterisk shows in the first error is the wrong domain. I don’t reference it in my originate script, so I have no idea how it is getting there. Thanks.