I am writing an application using asterisk manager API. That will make Asterisk wait for my application to tell it where to route certain incoming call. This will work on call to call basis
-> Asterisk Incoming Call in queue
-> Asterisk asked my application whom to route this call
<- my application tell it whom to send this call
My questions are
1) How do I make asterisk wait untill my application is making a decision.
2) How do I tell asterisk about this decision(What Command)