I am trying to send commands to Asterisk manager via a telnet session. I am able to lo in and receive event logs from AMI, but when I try to issue commands I get an invalid/unknown command error. Here are some of the commands I am trying to send. Asterisk Call Manager/1.0 Action: login Username: xxxxxxx Secret: xxxxxxxxx Response: Success Message: Authentication accepted ACTION: Originate Channel: Local/1656 Exten: 1710 Priority: 1 Context: it Response: Error Message: Invalid/unknown command ACTION: Command command: show dialplan Response: Error Message: Invalid/unknown command Action: Originate Channel: Zap/g1/17329250730 Context: default Exten: 1656 Priority: 1 Callerid: 3125551212 Response: Error Message: Invalid/unknown command Here is how my manager.conf file looks [general] enabled = yes port = 5038 bindaddr = 0.0.0.0 displayconnects = yes [ami] secret = XXXXXXXXXXX permit=0.0.0.0/0.0.0.0 ;deny=0.0.0.0/0.0.0.0 read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user Any help would be greatly appresiated Ed Nu?ez IT/Telecom Engineer 4037 Metric Drive Winter Park, FL (o) 407-384-4200 x 1656 (f) 407-384-4222 (c) 732-925-0730
Sorry, but I failed to mention that I am running Asterisk BE B 1-1 I am trying to send commands to Asterisk manager via a telnet session. I am able to lo in and receive event logs from AMI, but when I try to issue commands I get an invalid/unknown command error. Here are some of the commands I am trying to send. Asterisk Call Manager/1.0 Action: login Username: xxxxxxx Secret: xxxxxxxxx Response: Success Message: Authentication accepted ACTION: Originate Channel: Local/1656 Exten: 1710 Priority: 1 Context: it Response: Error Message: Invalid/unknown command ACTION: Command command: show dialplan Response: Error Message: Invalid/unknown command Action: Originate Channel: Zap/g1/17329250730 Context: default Exten: 1656 Priority: 1 Callerid: 3125551212 Response: Error Message: Invalid/unknown command Here is how my manager.conf file looks [general] enabled = yes port = 5038 bindaddr = 0.0.0.0 displayconnects = yes [ami] secret = XXXXXXXXXXX permit=0.0.0.0/0.0.0.0 ;deny=0.0.0.0/0.0.0.0 read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user Any help would be greatly appresiated Ed Nu?ez IT/Telecom Engineer 4037 Metric Drive Winter Park, FL (o) 407-384-4200 x 1656 (f) 407-384-4222 (c) 732-925-0730 _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
I remember when I started working with the manager (I was using VB) that you have to send a string of characters that you are going to the next line. I am not sure if this will solve the issue. (sorry if my response dosent make much sense - a bit on the tired side) ----- Original Message ----- From: "Ed Nu?ez" <enunez@netoneint.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Wednesday, November 01, 2006 6:50 PM Subject: RE: [asterisk-users] Asterisk manager Sorry, but I failed to mention that I am running Asterisk BE B 1-1 I am trying to send commands to Asterisk manager via a telnet session. I am able to lo in and receive event logs from AMI, but when I try to issue commands I get an invalid/unknown command error. Here are some of the commands I am trying to send. Asterisk Call Manager/1.0 Action: login Username: xxxxxxx Secret: xxxxxxxxx Response: Success Message: Authentication accepted ACTION: Originate Channel: Local/1656 Exten: 1710 Priority: 1 Context: it Response: Error Message: Invalid/unknown command ACTION: Command command: show dialplan Response: Error Message: Invalid/unknown command Action: Originate Channel: Zap/g1/17329250730 Context: default Exten: 1656 Priority: 1 Callerid: 3125551212 Response: Error Message: Invalid/unknown command Here is how my manager.conf file looks [general] enabled = yes port = 5038 bindaddr = 0.0.0.0 displayconnects = yes [ami] secret = XXXXXXXXXXX permit=0.0.0.0/0.0.0.0 ;deny=0.0.0.0/0.0.0.0 read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user Any help would be greatly appresiated Ed Nu?ez IT/Telecom Engineer 4037 Metric Drive Winter Park, FL (o) 407-384-4200 x 1656 (f) 407-384-4222 (c) 732-925-0730 _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users