Dialing a number if its on the postgre database


I was wondering how to approach this. I want the caller to just dial whats on the database which is hosted on a postgre dbase.

Will it easier to use func_odbc or create an agi?

Can anyone give out a sample dialplan for this? any approach you might do?

I would use func_odbc, read the chapter 12 of the good free book Asterisk TFOT 2nd edition for help about.


Marco Bruni