> Should I read the phones from a DB and then write the answer to the same DB? > Does asterisk provide macros,scripts or methods to > open/query/read/write to a db for such tasks? AGI is your answer. I would write that in PHP because I'm used to it and it as all the DB access you will need. hth