Hi,
So currently I am able to call my DID and have it play a recorded message, and I am able to place calls from my DID and play a recorded message when the person being called answers the phone. I want to be able to call multiple people (hundreds) at once to play a recorded message. I’ve looked into it and found autodial plans and agi scripts. Could anyone with more experience tell me the better method to do this? Also, if I use an agi script, would that make it easier to then integrate the Asterisk server into the server of the application we are working on?
@basimkhan I used Java AMI to connect with asterisk. For threading I used apache active mq. Using activeMQ I was able to create same number of concurrent thread as same as my number of PRI channels were available.
You may read @JMSListener and its property like concurrency= “dynamic value here as NUMBER OF CHANNELS IN PRI” .
Thanks for the reply, would you be able to help me with a connection issue? I can’t seem to figure out why I can use telnet to connect from the server Asterisk is running on, but I can’t use it to connect to Asterisk from the host machine. Is there something I need to do to enable outside connection? That is stopping my java code from authenticating into Asterisk.
@basimkhan You have to edit the manager.conf file in /etc/asterisk folder.
[general]
enabled =yes
port = 1313
bindaddr = 192.168.1.112
displayconnects=yes
I was able to connect using Java AMI to my Asterisk server. I can now place calls using the AMI, can you please let me know how you went about calling multiple numbers at once?
I was able to place 2 concurrent calls by opening two different ManagerConnections on Java. I then had to add setAsync(Boolean.True), to make sure it called both at the same time. I am now trying to make a loop out of it so I can more than just 2 people, it would be very hectic to have to create a new connection for 100s of people when this goes live.