How can it be done with freeswitch?
Dear friends, I am using freeswitch for the last one month and trying to write perl scripts to do some tasks. I am trying a new thing, which is something that I don't how to do it and I don't whether it can be done with freeswitch. my requirement is as follows, A calls B[This extension has to execute a script]. The script has to do the following, * Cut the call and callback to the number. * Get a phone number[DTMF] from A. * Dial the number(C) and bridge A and C. * When C cuts the call, the control has to comeback to script. * Ask another number to A to dial out, get another phone number[DTMF] from A. * Dial the number(D) and bridge A and D. Please, help me to do this. Is there any other documentation to read about the perl freeswitch functions. -- View this message in context: http://www.nabble.com/How-can-it-be-done-with-freeswitch--tp25184845p2518484... Sent from the Freeswitch-users mailing list archive at Nabble.com.
Nagalenoj, This is definitely possible to do with FreeSWITCH. However, it is not exactly simple. You have some learning to do. My recommendation is to learn about event socket. Most likely you'll need to use outbound event socket. (Read about event socket and ESL, the event socket library, on the wiki.) I also recommend that you look at some of the example scripts in src/libs/esl/perl/ which show some of the ways to handle calls with a script. You've already done a good job of breaking down the steps, now experiment with handling each of these steps with a script. We don't have extensive Perl script examples which means we would love to see your code when you have it all figured out! :) -MC On Thu, Aug 27, 2009 at 11:44 PM, Nagalenoj <nagalenoj@gmail.com> wrote:
Dear friends, I am using freeswitch for the last one month and trying to write perl scripts to do some tasks. I am trying a new thing, which is something that I don't how to do it and I don't whether it can be done with freeswitch. my requirement is as follows, A calls B[This extension has to execute a script]. The script has to do the following, * Cut the call and callback to the number. * Get a phone number[DTMF] from A. * Dial the number(C) and bridge A and C. * When C cuts the call, the control has to comeback to script. * Ask another number to A to dial out, get another phone number[DTMF] from A. * Dial the number(D) and bridge A and D.
Please, help me to do this. Is there any other documentation to read about the perl freeswitch functions. -- View this message in context: http://www.nabble.com/How-can-it-be-done-with-freeswitch--tp25184845p2518484... Sent from the Freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ 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
Thanks for your help. Is it the only possible way.? Else, will it be done with the functions listed in the below url, http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes I was trying to do with these classes and functions. mercutioviz wrote:
Nagalenoj,
This is definitely possible to do with FreeSWITCH. However, it is not exactly simple. You have some learning to do. My recommendation is to learn about event socket. Most likely you'll need to use outbound event socket. (Read about event socket and ESL, the event socket library, on the wiki.)
I also recommend that you look at some of the example scripts in src/libs/esl/perl/ which show some of the ways to handle calls with a script. You've already done a good job of breaking down the steps, now experiment with handling each of these steps with a script. We don't have extensive Perl script examples which means we would love to see your code when you have it all figured out! :)
-MC
On Thu, Aug 27, 2009 at 11:44 PM, Nagalenoj <nagalenoj@gmail.com> wrote:
Dear friends, I am using freeswitch for the last one month and trying to write perl scripts to do some tasks. I am trying a new thing, which is something that I don't how to do it and I don't whether it can be done with freeswitch. my requirement is as follows, A calls B[This extension has to execute a script]. The script has to do the following, * Cut the call and callback to the number. * Get a phone number[DTMF] from A. * Dial the number(C) and bridge A and C. * When C cuts the call, the control has to comeback to script. * Ask another number to A to dial out, get another phone number[DTMF] from A. * Dial the number(D) and bridge A and D.
Please, help me to do this. Is there any other documentation to read about the perl freeswitch functions. -- View this message in context: http://www.nabble.com/How-can-it-be-done-with-freeswitch--tp25184845p2518484... Sent from the Freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ 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
-- View this message in context: http://www.nabble.com/How-can-it-be-done-with-freeswitch--tp25184845p2519995... Sent from the Freeswitch-users mailing list archive at Nabble.com.
On Fri, Aug 28, 2009 at 9:26 PM, Nagalenoj <nagalenoj@gmail.com> wrote:
Thanks for your help. Is it the only possible way.? Else, will it be done with the functions listed in the below url, http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes
Yes, these classes and functions are the building blocks that you'll use to construct your application. We have a few Perl examples you can use to get you going. At this point you will probably just need to roll up your sleeves and start hacking away at it. Definitely email or drop by #freeswitch on irc.freenode.net if you have more questions. -MC
participants (2)
-
Michael Collins
-
Nagalenoj