Dear all,

I'm very new to Freeswitch and I'm trying to find the best way to implement an application which will handle calling cards.

The scenario is simple. A user makes a call, the call get answered and the user gives the pin number and if is correct  then the user can make a call.

My question is how is the best way to implement this?

1. Through a script which will be called from the dialplan
2. From Inbound ESL
3. From Outbound ESL

Thank you in advance

Alex