I’m writing a robocaller for a company on a server which also has incoming calls. I have an AMI poll set up that will make sure there is a certain number of available channels before it pushes a call file through, but I don’t know which specific channels will be open. Since I can’t be sure at the time of generating my .call files which channels will be open, is there a way to automatically assign free channels to a call the way incoming/transferred/bridged channels are automatically assigned, or is this only possible within the dial plan? If it is possible outside of the dial plan, what would you recommend?
Share
It is only possible with dialplan, you need in case of any call initiated check if src/dst channel is reserved by robocaller. There is also another way: listen AMI events, check for new channels, in case of reserved channel usage – send Hangup for this channel.