[Home]

Summary:ASTERISK-17785: [patch] Originate action generates two error responses
Reporter:Olle Johansson (oej)Labels:
Date Opened:2011-05-03 07:16:31Date Closed:2011-05-04 09:40:10
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/ManagerInterface
Versions:1.8.4 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) issue19216-1.8-r316204.patch
Description:Asterisk 1.8 from svn (todays version)

action: originate
actionid: test123edv
async: yes
earlymedia: yes
channel: local/1020@pinefrog
exten: 1010
context: pinefrog
priority: 1

Response: Error
ActionID: test123edv
Message: Permission denied

Response: Error
ActionID: test123edv
Message: Invalid/unknown command: originate. Use Action: ListCommands to show available commands.
Comments:By: Irontec (irontec) 2011-05-03 11:10:30

Hi,

I think that is manager.conf configuration issue.

write = originate

In previous versions no need tu put this option, but in 1.8 is a must.
I also get annoyed with this errors for a while...

By: Sean Bright (seanbright) 2011-05-03 12:12:30

Can you please test the attached patch and report your results?

By: Digium Subversion (svnbot) 2011-05-04 09:35:07

Repository: asterisk
Revision: 316663

U   branches/1.8/main/manager.c

------------------------------------------------------------------------
r316663 | seanbright | 2011-05-04 09:35:06 -0500 (Wed, 04 May 2011) | 8 lines

Only return a single error via AMI when requesting a forbidden action.

(closes issue ASTERISK-17785)
Reported by: oej
Patches:
     issue19216-1.8-r316204.patch uploaded by seanbright (license 71)
Tested by: seanbright

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=316663

By: Digium Subversion (svnbot) 2011-05-04 09:40:09

Repository: asterisk
Revision: 316664

_U  trunk/
U   trunk/main/manager.c

------------------------------------------------------------------------
r316664 | seanbright | 2011-05-04 09:40:09 -0500 (Wed, 04 May 2011) | 15 lines

Merged revisions 316663 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
 r316663 | seanbright | 2011-05-04 10:35:05 -0400 (Wed, 04 May 2011) | 8 lines
 
 Only return a single error via AMI when requesting a forbidden action.
 
 (closes issue ASTERISK-17785)
 Reported by: oej
 Patches:
       issue19216-1.8-r316204.patch uploaded by seanbright (license 71)
 Tested by: seanbright
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=316664