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
I have a custom written LUA script which utilizes mod_lcr and mod_nibblebill. I'm also using xml cdr support. On Apr 11, 2011, at 4:55 AM, alex pappas <rebel.pappas@gmail.com> wrote:
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
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You can do everything from the dial plan, with a few queries and/or mod_lcr. You'll have to adjust the account balance post-call, though, via the cdr. For making sure it is prepaid, you can use api_sched_hangup/transfer and then you don't need mod_nibblebill. -Avi On Mon, Apr 11, 2011 at 4:06 PM, <rhuddleston@gmail.com> wrote:
I have a custom written LUA script which utilizes mod_lcr and mod_nibblebill. I'm also using xml cdr support.
On Apr 11, 2011, at 4:55 AM, alex pappas <rebel.pappas@gmail.com> wrote:
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
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi, My approach is that all the logic would be in the application and in the backend(Database). What I want to understand is which is the best way to run an application with Freeswitch concerning the performance ofc. If I was doing this in Asterisk I would try with AGI for example. Thanks \Alx In my understanding inside the application will seat the business logic of the prepaid. In every step I can play dynamically sound files and in every step I would save a custom CDR to my Database On Mon, Apr 11, 2011 at 4:16 PM, Avi Marcus <avi@avimarcus.net> wrote:
You can do everything from the dial plan, with a few queries and/or mod_lcr. You'll have to adjust the account balance post-call, though, via the cdr. For making sure it is prepaid, you can use api_sched_hangup/transfer and then you don't need mod_nibblebill.
-Avi
On Mon, Apr 11, 2011 at 4:06 PM, <rhuddleston@gmail.com> wrote:
I have a custom written LUA script which utilizes mod_lcr and mod_nibblebill. I'm also using xml cdr support.
On Apr 11, 2011, at 4:55 AM, alex pappas <rebel.pappas@gmail.com> wrote:
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
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Whats wrong with nibblebill? I use lua script because i have business logic that has to be checked. I like how nibblebill keeps the balance updated on the fly On Apr 11, 2011, at 9:50 AM, alex pappas <rebel.pappas@gmail.com> wrote:
Hi, My approach is that all the logic would be in the application and in the backend(Database).
What I want to understand is which is the best way to run an application with Freeswitch concerning the performance ofc. If I was doing this in Asterisk I would try with AGI for example.
Thanks \Alx
In my understanding inside the application will seat the business logic of the prepaid. In every step I can play dynamically sound files and in every step I would save a custom CDR to my Database
On Mon, Apr 11, 2011 at 4:16 PM, Avi Marcus <avi@avimarcus.net> wrote: You can do everything from the dial plan, with a few queries and/or mod_lcr. You'll have to adjust the account balance post-call, though, via the cdr. For making sure it is prepaid, you can use api_sched_hangup/transfer and then you don't need mod_nibblebill.
-Avi
On Mon, Apr 11, 2011 at 4:06 PM, <rhuddleston@gmail.com> wrote: I have a custom written LUA script which utilizes mod_lcr and mod_nibblebill. I'm also using xml cdr support.
On Apr 11, 2011, at 4:55 AM, alex pappas <rebel.pappas@gmail.com> wrote:
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
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Nothing wrong with nibblebill. I'm trying to simulate an existing system and I need to start everything from scratch. That's why I'm asking about how I can have performance with Freeswitch. \Alx On Mon, Apr 11, 2011 at 4:59 PM, <rhuddleston@gmail.com> wrote:
Whats wrong with nibblebill? I use lua script because i have business logic that has to be checked. I like how nibblebill keeps the balance updated on the fly
On Apr 11, 2011, at 9:50 AM, alex pappas <rebel.pappas@gmail.com> wrote:
Hi, My approach is that all the logic would be in the application and in the backend(Database).
What I want to understand is which is the best way to run an application with Freeswitch concerning the performance ofc. If I was doing this in Asterisk I would try with AGI for example.
Thanks \Alx
In my understanding inside the application will seat the business logic of the prepaid. In every step I can play dynamically sound files and in every step I would save a custom CDR to my Database
On Mon, Apr 11, 2011 at 4:16 PM, Avi Marcus < <avi@avimarcus.net> avi@avimarcus.net> wrote:
You can do everything from the dial plan, with a few queries and/or mod_lcr. You'll have to adjust the account balance post-call, though, via the cdr. For making sure it is prepaid, you can use api_sched_hangup/transfer and then you don't need mod_nibblebill.
-Avi
On Mon, Apr 11, 2011 at 4:06 PM, < <rhuddleston@gmail.com> rhuddleston@gmail.com> wrote:
I have a custom written LUA script which utilizes mod_lcr and mod_nibblebill. I'm also using xml cdr support.
On Apr 11, 2011, at 4:55 AM, alex pappas < <rebel.pappas@gmail.com> rebel.pappas@gmail.com> wrote:
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
_______________________________________________ FreeSWITCH-users mailing list <FreeSWITCH-users@lists.freeswitch.org> FreeSWITCH-users@lists.freeswitch.org <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:<http://lists.freeswitch.org/mailman/options/freeswitch-users> http://lists.freeswitch.org/mailman/options/freeswitch-users <http://www.freeswitch.org>http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list <FreeSWITCH-users@lists.freeswitch.org> FreeSWITCH-users@lists.freeswitch.org <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:<http://lists.freeswitch.org/mailman/options/freeswitch-users> http://lists.freeswitch.org/mailman/options/freeswitch-users <http://www.freeswitch.org>http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list <FreeSWITCH-users@lists.freeswitch.org> FreeSWITCH-users@lists.freeswitch.org <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:<http://lists.freeswitch.org/mailman/options/freeswitch-users> http://lists.freeswitch.org/mailman/options/freeswitch-users <http://www.freeswitch.org>http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Mon, Apr 11, 2011 at 7:10 AM, alex pappas <rebel.pappas@gmail.com> wrote:
Nothing wrong with nibblebill. I'm trying to simulate an existing system and I need to start everything from scratch. That's why I'm asking about how I can have performance with Freeswitch.
Scripting right from the dialplan has a lower barrier to entry but will not scale as well as using outbound event socket. If I were in your shoes I would roll up my sleeves and learn ESL. Pick your favorite language. ESL has bindings for: C/C++ Perl PHP Python Ruby TCL I highly recommend getting the FreeSWITCH book and reading chapter 9. Of course, chapters 1 through 6 are also important for getting a foundation for using FreeSWITCH, but chapter 9 has a lot of solid information about using the event socket and ESL. Note: you asked about using inbound vs. outbound event socket. If I understand your situation correctly you need to handle the case where an outside party calls in to your FS server. This means you need outbound event socket. (See the 'socket' dp tool on the wiki.) Enjoy! -MC
Michael, Thank you for all the info! Cheers \Alx On Mon, Apr 11, 2011 at 7:21 PM, Michael Collins <msc@freeswitch.org> wrote:
On Mon, Apr 11, 2011 at 7:10 AM, alex pappas <rebel.pappas@gmail.com>wrote:
Nothing wrong with nibblebill. I'm trying to simulate an existing system and I need to start everything from scratch. That's why I'm asking about how I can have performance with Freeswitch.
Scripting right from the dialplan has a lower barrier to entry but will not scale as well as using outbound event socket. If I were in your shoes I would roll up my sleeves and learn ESL. Pick your favorite language. ESL has bindings for: C/C++ Perl PHP Python Ruby TCL
I highly recommend getting the FreeSWITCH book and reading chapter 9. Of course, chapters 1 through 6 are also important for getting a foundation for using FreeSWITCH, but chapter 9 has a lot of solid information about using the event socket and ESL.
Note: you asked about using inbound vs. outbound event socket. If I understand your situation correctly you need to handle the case where an outside party calls in to your FS server. This means you need outbound event socket. (See the 'socket' dp tool on the wiki.)
Enjoy! -MC
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
alex pappas
-
Avi Marcus
-
Michael Collins
-
rhuddleston@gmail.com