I am getting a priveldged command error on the manager API. 16-Feb-09 11:51 am asterisk_command() Action: Login 16-Feb-09 11:51 am asterisk_command() Username: XXX 16-Feb-09 11:51 am asterisk_command() Secret: ZZZZ 16-Feb-09 11:51 am asterisk_command() Events: off 16-Feb-09 11:51 am DEBUG: Response: Success[CR ][LF ]Message: Authentication accepted[CR ][LF ][CR ][LF ] 16-Feb-09 11:51 am asterisk_command() Action: Command 16-Feb-09 11:51 am asterisk_command() Command: show channels concise 16-Feb-09 11:51 am DEBUG: Response: Follows[CR ][LF ]Privilege: Command[CR ][LF ] manager.conf has: [XXX] secret=ZZZZ permit=127.0.0.1/255.255.255.0 read = system,call,command,all,agent,user write = system,call,command,all,agent,user I thought that was all I needed to run that command? I am using 1.4.23. Jerry
Jerry Geis wrote:> I am getting a priveldged command error on the manager API. > > 16-Feb-09 11:51 am asterisk_command() Action: Login > 16-Feb-09 11:51 am asterisk_command() Username: XXX > 16-Feb-09 11:51 am asterisk_command() Secret: ZZZZ > 16-Feb-09 11:51 am asterisk_command() Events: off > 16-Feb-09 11:51 am DEBUG: Response: Success[CR ][LF ]Message: > Authentication accepted[CR ][LF ][CR ][LF ] > 16-Feb-09 11:51 am asterisk_command() Action: Command > 16-Feb-09 11:51 am asterisk_command() Command: show channels concise > 16-Feb-09 11:51 am DEBUG: Response: Follows[CR ][LF ]Privilege: > Command[CR ][LF ] > > manager.conf has: > [XXX] > secret=ZZZZ > permit=127.0.0.1/255.255.255.0 > read = system,call,command,all,agent,user > write = system,call,command,all,agent,user > > I thought that was all I needed to run that command? > > I am using 1.4.23. > > JerryThat's not an error message. That is the response given to a Command action assuming that a command was provided and the command is not blacklisted. Mark Michelson
Jon Weisman
2009-Feb-17 20:33 UTC
[asterisk-users] only ring phones that are not on a call
is there anything i can do in my dialplan to only ring phones which are not on a call at the time someone dials in? its for a call center, they do not want to use queues, but they are complaining that the call waiting beep is annoying. i tried call-limit in the sip.conf but then it just busy out all phones when a call comes in. any thoughts? thanks, jon
Danny Nicholas
2009-Feb-17 21:31 UTC
[asterisk-users] only ring phones that are not on a call
You could set up a hint for the extension and check the hint for "inuse" before executing the Dial in your dialplan Exten => 801,hint,SIP/100 Exten => XXX,1,System("/usr/sbin/asterisk -rx "core show hints"|/bin/grep SIP/100|/bin/grep InUse Exten => XXX,2,GOTOIF($["{CMSTATUS}" = "FAILURE"])?dial Exten => XXX,3,hangup() Exten => XXX,4(dial),Dial(SIP/100) Exten => XXX,5,hangup() -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jon Weisman Sent: Tuesday, February 17, 2009 2:33 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] only ring phones that are not on a call is there anything i can do in my dialplan to only ring phones which are not on a call at the time someone dials in? its for a call center, they do not want to use queues, but they are complaining that the call waiting beep is annoying. i tried call-limit in the sip.conf but then it just busy out all phones when a call comes in. any thoughts? thanks, jon _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users