Newbie question to dialing plans -> export to csv file?

Hi Guys.

I’ve just started to use Asterisk to make a phone system for my office. Now is it that i need a inquiry system that can export the results to a csv file so it can be further processed. Is this possible with the dialingplans, and how should i do it?

this is what i want to do:

  • Welcome message

/* open section*/

  • request to enter phonenr and end with a #
  • replay phonenum and confirm with 1 if good else re-enter with 2

If good:
Store phonenum to csv file

  • Enter postalcode and end with a #
  • Replay postal code and confirm with 1 if good else re-enter with 2

If good:
Store postalcode to csv file

  • Enter housenumber and end with a #
  • Replay housenum code and confirm with 1 if good else re-enter with 2

If good:
Store housenum to csv file

/yes or no section/

  • Message with a yes or no question, 1 for yes, 2 for no
  • Replay choice and confirm with 1 if good else re-enter with 2

Store 1 or 2 in csv file

  • Message with a yes or no question, 1 for yes, 2 for no
  • Replay choice and confirm with 1 if good else re-enter with 2

Store 1 or 2 in csv file

  • Message with a yes or no question, 1 for yes, 2 for no
  • Replay choice and confirm with 1 if good else re-enter with 2

Store 1 or 2 in csv file

etc.

Any help is welcome, i’m looking through the documentation and the book from o’reilly but it’s really confusing me, i hope you can help.

Regards,

Mike

bump! anyone?

  1. Yes.
  2. Reading “Asterisk The Future of Telephony”

Hi, Thanks for replying.
I’ve never done anything with asterisk before, but im indeed reading Asterisk The Future of Telephony book. However, i cannot find how i can write anything to a csv file… What function should i use for that?

Thanks!

You should use an AGI script to create the csv file.

Cheers.

Marco Bruni
www.marcobruni.net

Okay im going to give it a try. thanks for the help!