Answer action

Jan 16, 2014 at 8:40 AM
Dear all,
How can i get the example "send action request answer" in frame-work AsterNet?

if i have the channel, can i send request to server asterisk follow code : "clientSocket.Send(Encoding.ASCII.GetBytes("Action: AGI\r\nChannel: SIP/101-0000abc" + "\r\nCommand: ANSWER \r\n\r\n"));"

please help me solve this prolem.

thanks!
Coordinator
Jan 16, 2014 at 1:02 PM
Right, can you confirm firstly you're using AsyncAGI, and your question relates to using the Action AGI from the AsterNET AMI interface?

If so, you've no reason to use clientSocket.Send. You should simply use the AGIAction supplied by AsterNET AMI framework.
Jan 17, 2014 at 3:53 AM
can you tell me more?
i use ASterNET to run AsterNet.test in AsterNet frame work, when i confiig the ipaddress, port, and sip (100, 200).
when i orignate the call, it ok, but when i run FastAGI, no happend?
Jan 18, 2014 at 3:51 AM

AGI and AMI are opposites.

AGI you wait for requests from Asterisk

AMI you sent requests to Asterisk. Maybe that helps?

Jan 19, 2014 at 1:48 AM
By the way, how can i enable Async AGI ?
when i requesst action AGI, i receive response:
Response: Error\r\nMessage: Failed to add AGI command to channel SIP/201-00000016 queue\r\n\r\n

please help me, Thanks
Jan 19, 2014 at 2:48 AM

I followed the example and it worked no problem.

Jan 20, 2014 at 12:04 AM
Edited Jan 20, 2014 at 6:36 AM
i known, i ran asteriskNet it ok, but when i send AGI action i have that error?
so i have that question, how can enable Async AGI? anybody help me?

AgiAction action = new AgiAction(channel, command);
ManagerResponse response1 = manager.SendAction(action, 3000);

respone : Message: Failed to add AGI command to channel SIP/101-00000003 queue

thanks,