Karlovalentin
Karlovalentin

Reputation: 331

Identify caller id, hung up, call back with asterisk

For a project I need to build an mvp of a service where users call a toll free number, on the other side, the pbx detects the call, saves the caller # and hangs up (so caller never gets charged for the call). Then the pbx calls the user back, allows him to dial a #, then pbx plays an audio file and when it finishes, makes the connection to the # introduced by the user.

I'm new to voip and asterisk, but which documentation should I read to achieve this (which features do I need to understand and look for?)

Upvotes: 1

Views: 1392

Answers (1)

gkocjan
gkocjan

Reputation: 735

At begining you have to understand how to build dialplan and use it's applications(Dial, Playback and Read). If you want to use some programming language you can use AGI, there are library to write agi in almost all languages :)

For redialing user you can use call files or Asterisk Manager function originate. Call file can be used to call in future if you change creation time of file to future.

Simple flow can look like this:

  1. User dial simple dialplan, run there some AGI, which read callerid and saves call file in near future. You do this without answering the call.
  2. Call file dials user.
  3. After answer you go to another dialplan which reads dtmf from user and dial that number.

Upvotes: 1

Related Questions