Hi, I've seen some examples for ASR/TTS in JavaScripts/Lua/Python etc. I can set my extension in the dialplan and point to my application e.g. by <action application="python" data="mySpeechApp.py"/>. I am wondering how I could do this for a C/C++ application? And in the scripts languages I can set a callback method, e.g. session.setInputCallback(myInputCallback) but I didn't find how to do this in C/C++. Googled around, but didn't find much helpful info on it. Any suggestions please? Thanks! Xing -- Heriot-Watt University is a Scottish charity registered under charity number SC000278.
On Thu, Aug 11, 2011 at 10:59 AM, xl127 <x.liu@hw.ac.uk> wrote:
I am wondering how I could do this for a C/C++ application? And in the scripts languages I can set a callback method, e.g. session.setInputCallback(myInputCallback) but I didn't find how to do this in C/C++.
The default question here is, why do you need C/C++ for an IVR? FreeSWITCH allows you to use simpler/safer languages to build IVR's. You can certainly do it, but the reason you don't find examples is probably because most people understand there is no need for C/C++ there. Having said that, you can take a look at the IVR/say/play API's in switch_ivr_play_say.c to find out how to provide a callback to the different API's thru the switch_input_args_t structure. Moises Silva Senior Software Engineer, Software Development Manager Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
Also, you can check mod-voicemail.c and the new mod-voicemail made by Moc, those are the only IVR written in C that I know about (they're written in C because voicemail is considered a base feature, and been written in C assure stability because people does not fiddle with them) On 8/13/11, Moises Silva <moises.silva@gmail.com> wrote:
On Thu, Aug 11, 2011 at 10:59 AM, xl127 <x.liu@hw.ac.uk> wrote:
I am wondering how I could do this for a C/C++ application? And in the scripts languages I can set a callback method, e.g. session.setInputCallback(myInputCallback) but I didn't find how to do this in C/C++.
The default question here is, why do you need C/C++ for an IVR? FreeSWITCH allows you to use simpler/safer languages to build IVR's.
You can certainly do it, but the reason you don't find examples is probably because most people understand there is no need for C/C++ there. Having said that, you can take a look at the IVR/say/play API's in switch_ivr_play_say.c to find out how to provide a callback to the different API's thru the switch_input_args_t structure.
Moises Silva Senior Software Engineer, Software Development Manager Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Sent from my mobile device Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Where can I find Mock's voicemail -- I don't see it in contrib? Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
Also, you can check mod-voicemail.c and the new mod-voicemail made by Moc, those are the only IVR written in C that I know about (they're written in C because voicemail is considered a base feature, and been written in C assure stability because people does not fiddle with them)
On 8/13/11, Moises Silva <moises.silva@gmail.com> wrote:
On Thu, Aug 11, 2011 at 10:59 AM, xl127 <x.liu@hw.ac.uk> wrote:
I am wondering how I could do this for a C/C++ application? And in the scripts languages I can set a callback method, e.g. session.setInputCallback(myInputCallback) but I didn't find how to do this in C/C++.
The default question here is, why do you need C/C++ for an IVR? FreeSWITCH allows you to use simpler/safer languages to build IVR's.
You can certainly do it, but the reason you don't find examples is probably because most people understand there is no need for C/C++ there. Having said that, you can take a look at the IVR/say/play API's in switch_ivr_play_say.c to find out how to provide a callback to the different API's thru the switch_input_args_t structure.
Moises Silva Senior Software Engineer, Software Development Manager Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Sent from my mobile device
Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
Try here: http://fisheye.freeswitch.org/browse/freeswitch.git/src/mod/applications/mod... Campbell On Sun, Aug 14, 2011 at 11:58 AM, <covici@ccs.covici.com> wrote:
Where can I find Mock's voicemail -- I don't see it in contrib?
Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
Also, you can check mod-voicemail.c and the new mod-voicemail made by Moc, those are the only IVR written in C that I know about (they're written in C because voicemail is considered a base feature, and been written in C assure stability because people does not fiddle with them)
On 8/13/11, Moises Silva <moises.silva@gmail.com> wrote:
On Thu, Aug 11, 2011 at 10:59 AM, xl127 <x.liu@hw.ac.uk> wrote:
I am wondering how I could do this for a C/C++ application? And in the scripts languages I can set a callback method, e.g. session.setInputCallback(myInputCallback) but I didn't find how to do this in C/C++.
The default question here is, why do you need C/C++ for an IVR? FreeSWITCH allows you to use simpler/safer languages to build IVR's.
You can certainly do it, but the reason you don't find examples is probably because most people understand there is no need for C/C++ there. Having said that, you can take a look at the IVR/say/play API's in switch_ivr_play_say.c to find out how to provide a callback to the different API's thru the switch_input_args_t structure.
Moises Silva Senior Software Engineer, Software Development Manager Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Sent from my mobile device
Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
And how would I do a git for that module? Campbell Steven <casteven@gmail.com> wrote:
Try here:
http://fisheye.freeswitch.org/browse/freeswitch.git/src/mod/applications/mod...
Campbell
On Sun, Aug 14, 2011 at 11:58 AM, <covici@ccs.covici.com> wrote:
Where can I find Mock's voicemail -- I don't see it in contrib?
Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
Also, you can check mod-voicemail.c and the new mod-voicemail made by Moc, those are the only IVR written in C that I know about (they're written in C because voicemail is considered a base feature, and been written in C assure stability because people does not fiddle with them)
On 8/13/11, Moises Silva <moises.silva@gmail.com> wrote:
On Thu, Aug 11, 2011 at 10:59 AM, xl127 <x.liu@hw.ac.uk> wrote:
I am wondering how I could do this for a C/C++ application? And in the scripts languages I can set a callback method, e.g. session.setInputCallback(myInputCallback) but I didn't find how to do this in C/C++.
The default question here is, why do you need C/C++ for an IVR? FreeSWITCH allows you to use simpler/safer languages to build IVR's.
You can certainly do it, but the reason you don't find examples is probably because most people understand there is no need for C/C++ there. Having said that, you can take a look at the IVR/say/play API's in switch_ivr_play_say.c to find out how to provide a callback to the different API's thru the switch_input_args_t structure.
Moises Silva Senior Software Engineer, Software Development Manager Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Sent from my mobile device
Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
Thanks for everybody's points, helpful! Cheers, Xing On 14/08/11 04:04, Campbell Steven wrote:
Try here:
http://fisheye.freeswitch.org/browse/freeswitch.git/src/mod/applications/mod...
Campbell
On Sun, Aug 14, 2011 at 11:58 AM,<covici@ccs.covici.com> wrote:
Where can I find Mock's voicemail -- I don't see it in contrib?
Giovanni Maruzzelli<gmaruzz@gmail.com> wrote:
Also, you can check mod-voicemail.c and the new mod-voicemail made by Moc, those are the only IVR written in C that I know about (they're written in C because voicemail is considered a base feature, and been written in C assure stability because people does not fiddle with them)
On 8/13/11, Moises Silva<moises.silva@gmail.com> wrote:
On Thu, Aug 11, 2011 at 10:59 AM, xl127<x.liu@hw.ac.uk> wrote:
I am wondering how I could do this for a C/C++ application? And in the scripts languages I can set a callback method, e.g. session.setInputCallback(myInputCallback) but I didn't find how to do this in C/C++. The default question here is, why do you need C/C++ for an IVR? FreeSWITCH allows you to use simpler/safer languages to build IVR's.
You can certainly do it, but the reason you don't find examples is probably because most people understand there is no need for C/C++ there. Having said that, you can take a look at the IVR/say/play API's in switch_ivr_play_say.c to find out how to provide a callback to the different API's thru the switch_input_args_t structure.
Moises Silva Senior Software Engineer, Software Development Manager Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Sent from my mobile device
Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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 -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Heriot-Watt University is a Scottish charity registered under charity number SC000278.
also if you look at switch_cpp.cpp its the c++ wrapper we use to create all the embedded language modules so the documentation for the embedded lua api's would also apply to that C++ wrapper if you chose to use it directly. On Tue, Aug 16, 2011 at 10:53 AM, xl127 <x.liu@hw.ac.uk> wrote:
Thanks for everybody's points, helpful!
Cheers, Xing
On 14/08/11 04:04, Campbell Steven wrote:
Try here:
http://fisheye.freeswitch.org/browse/freeswitch.git/src/mod/applications/mod...
Campbell
On Sun, Aug 14, 2011 at 11:58 AM,<covici@ccs.covici.com> wrote:
Where can I find Mock's voicemail -- I don't see it in contrib?
Giovanni Maruzzelli<gmaruzz@gmail.com> wrote:
Also, you can check mod-voicemail.c and the new mod-voicemail made by Moc, those are the only IVR written in C that I know about (they're written in C because voicemail is considered a base feature, and been written in C assure stability because people does not fiddle with them)
On 8/13/11, Moises Silva<moises.silva@gmail.com> wrote:
On Thu, Aug 11, 2011 at 10:59 AM, xl127<x.liu@hw.ac.uk> wrote:
I am wondering how I could do this for a C/C++ application? And in the scripts languages I can set a callback method, e.g. session.setInputCallback(myInputCallback) but I didn't find how to do this in C/C++. The default question here is, why do you need C/C++ for an IVR? FreeSWITCH allows you to use simpler/safer languages to build IVR's.
You can certainly do it, but the reason you don't find examples is probably because most people understand there is no need for C/C++ there. Having said that, you can take a look at the IVR/say/play API's in switch_ivr_play_say.c to find out how to provide a callback to the different API's thru the switch_input_args_t structure.
Moises Silva Senior Software Engineer, Software Development Manager Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Sent from my mobile device
Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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 -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Heriot-Watt University is a Scottish charity registered under charity number SC000278.
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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Thanks for the answer, Moises! My final goal is to let FreeSwitch (FS) to communicate with my external applications in Java, C, or Python, e.g. to send the ASR results from FS to my external applications. I know I could do it by FS Event Socket but I am a bit worried about the performances by using the Event Socket. So I thought it might be better to use embedded FS in my apps, set the speech input callback to point to the method in my app. To use embedded FS, it seems to be easier to find the C API e.g. switch_core_init_and_modload( ..) so I was thinking about the FS IVR in C/C++. (I couldn't find the APIs for embedded FS in others of my chosen languages: Java, C and Python) any suggestions for accomplishing the goal? Thanks, Xing On 13/08/11 17:48, Moises Silva wrote:
On Thu, Aug 11, 2011 at 10:59 AM, xl127<x.liu@hw.ac.uk> wrote:
I am wondering how I could do this for a C/C++ application? And in the scripts languages I can set a callback method, e.g. session.setInputCallback(myInputCallback) but I didn't find how to do this in C/C++. The default question here is, why do you need C/C++ for an IVR? FreeSWITCH allows you to use simpler/safer languages to build IVR's.
You can certainly do it, but the reason you don't find examples is probably because most people understand there is no need for C/C++ there. Having said that, you can take a look at the IVR/say/play API's in switch_ivr_play_say.c to find out how to provide a callback to the different API's thru the switch_input_args_t structure.
Moises Silva Senior Software Engineer, Software Development Manager Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Heriot-Watt University is a Scottish charity registered under charity number SC000278.
don't be worried about the performances of Event Socket. Nobody has had that problem (with huuuuuuge loads). Just test it in a load similar (or double) what you expect to be the max, and you'll see no reason to worry. -giovanni On Mon, Aug 15, 2011 at 12:05 PM, xl127 <x.liu@hw.ac.uk> wrote:
Thanks for the answer, Moises!
My final goal is to let FreeSwitch (FS) to communicate with my external applications in Java, C, or Python, e.g. to send the ASR results from FS to my external applications.
I know I could do it by FS Event Socket but I am a bit worried about the performances by using the Event Socket. So I thought it might be better to use embedded FS in my apps, set the speech input callback to point to the method in my app.
To use embedded FS, it seems to be easier to find the C API e.g.
switch_core_init_and_modload( ..)
so I was thinking about the FS IVR in C/C++. (I couldn't find the APIs for embedded FS in others of my chosen languages: Java, C and Python)
any suggestions for accomplishing the goal?
Thanks, Xing
On 13/08/11 17:48, Moises Silva wrote:
On Thu, Aug 11, 2011 at 10:59 AM, xl127<x.liu@hw.ac.uk> wrote:
I am wondering how I could do this for a C/C++ application? And in the scripts languages I can set a callback method, e.g. session.setInputCallback(myInputCallback) but I didn't find how to do this in C/C++. The default question here is, why do you need C/C++ for an IVR? FreeSWITCH allows you to use simpler/safer languages to build IVR's.
You can certainly do it, but the reason you don't find examples is probably because most people understand there is no need for C/C++ there. Having said that, you can take a look at the IVR/say/play API's in switch_ivr_play_say.c to find out how to provide a callback to the different API's thru the switch_input_args_t structure.
Moises Silva Senior Software Engineer, Software Development Manager Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Heriot-Watt University is a Scottish charity registered under charity number SC000278.
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
okay, thanks! I will have a try on it! Cheers, Xing On 15/08/11 13:22, Giovanni Maruzzelli wrote:
don't be worried about the performances of Event Socket. Nobody has had that problem (with huuuuuuge loads).
Just test it in a load similar (or double) what you expect to be the max, and you'll see no reason to worry.
-giovanni
On Mon, Aug 15, 2011 at 12:05 PM, xl127<x.liu@hw.ac.uk> wrote:
Thanks for the answer, Moises!
My final goal is to let FreeSwitch (FS) to communicate with my external applications in Java, C, or Python, e.g. to send the ASR results from FS to my external applications.
I know I could do it by FS Event Socket but I am a bit worried about the performances by using the Event Socket. So I thought it might be better to use embedded FS in my apps, set the speech input callback to point to the method in my app.
To use embedded FS, it seems to be easier to find the C API e.g.
switch_core_init_and_modload( ..)
so I was thinking about the FS IVR in C/C++. (I couldn't find the APIs for embedded FS in others of my chosen languages: Java, C and Python)
any suggestions for accomplishing the goal?
Thanks, Xing
On 13/08/11 17:48, Moises Silva wrote:
On Thu, Aug 11, 2011 at 10:59 AM, xl127<x.liu@hw.ac.uk> wrote:
I am wondering how I could do this for a C/C++ application? And in the scripts languages I can set a callback method, e.g. session.setInputCallback(myInputCallback) but I didn't find how to do this in C/C++. The default question here is, why do you need C/C++ for an IVR? FreeSWITCH allows you to use simpler/safer languages to build IVR's.
You can certainly do it, but the reason you don't find examples is probably because most people understand there is no need for C/C++ there. Having said that, you can take a look at the IVR/say/play API's in switch_ivr_play_say.c to find out how to provide a callback to the different API's thru the switch_input_args_t structure.
Moises Silva Senior Software Engineer, Software Development Manager Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Heriot-Watt University is a Scottish charity registered under charity number SC000278.
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Heriot-Watt University is a Scottish charity registered under charity number SC000278.
participants (6)
-
Anthony Minessale
-
Campbell Steven
-
covici@ccs.covici.com
-
Giovanni Maruzzelli
-
Moises Silva
-
xl127