Auto calling by reading database

Hi,
I have 2 questions

  1. What are the ways of automatically calling from asterisk by reading phone numbers from a database?
  2. Can we connect the automatically called phone number to an exten?

There are many ways to do this task.

You can do a bash script who query the DB , and then pass the number as variable and finally dial it using the asterisk originate command

[quote=“ambiorixg12”]There are many ways to do this task.

You can do a bash script who query the DB , and then pass the number as variable and finally dial it using the asterisk originate command[/quote]

I have thought so, but can we connect the dialed number to an Application extension .
For eg. playing a message on button press.

Sure, just use local channel