Re: [Freeswitch-users] howto originate fs call from webapp (python)
hi, oops, i must have been very tired when i wrote my first mail to the list... thanks for your replies. {ignore_early_media=true} really worked for me. i try very hard to "unlearn" asterisk. with asterisk i did not do much more with the python script, but i would like the pthon script to interact more with freeswitch like: - call number1 - say a welcome message with cepstral voice - call number2 - bridge other scenario: enter telephone number in webapp python script have fs to call number say "please enter the pin code from the website" validate dtmf code pass back to webapp: correct or not correct unfortunately just from reading the wiki i don't know how to do it in my python script. can you share your experience? thanks alex
from the freeswitch build root <the place you type make install from> cd libs/esl if you have python-devel or the equiv make pymod from there if you cd python you will see a python module you can use to control freeswitch. On Wed, Feb 25, 2009 at 2:30 AM, Alexander de Greiff <alexander@degreiff.com
wrote:
hi,
oops, i must have been very tired when i wrote my first mail to the list...
thanks for your replies. {ignore_early_media=true} really worked for me.
i try very hard to "unlearn" asterisk.
with asterisk i did not do much more with the python script, but i would like the pthon script to interact more with freeswitch like:
- call number1 - say a welcome message with cepstral voice - call number2 - bridge
other scenario:
enter telephone number in webapp python script have fs to call number say "please enter the pin code from the website" validate dtmf code pass back to webapp: correct or not correct
unfortunately just from reading the wiki i don't know how to do it in my python script.
can you share your experience?
thanks 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
enter telephone number in webapp python script have fs to call number say "please enter the pin code from the website" validate dtmf code pass back to webapp: correct or not correct
unfortunately just from reading the wiki i don't know how to do it in my python script.
can you share your experience?
You definitely need to become familiar with the event socket. However, to become familiar with the event socket you need also to become familiar with some of the basic FreeSWITCH API functions, like "bgapi" and "originate" as well as what kinds of events come over the event socket. Here is some recommended reading: #1 - The reporting bugs page on the wiki. It may sound crazy, but I promise you that if you at least skim over it then it will save you time when you start having to debug things. http://wiki.freeswitch.org/wiki/Reporting_Bugs #2 - The event socket page on the wiki: http://wiki.freeswitch.org/wiki/Mod_event_socket #3 - The commands page on the wiki. Pay special attention to the "originate," "bridge," and "bgapi" commands because they will be extremely useful to you in your application: http://wiki.freeswitch.org/wiki/Mod_commands #4 - The Asterisk/FreeSWITCH Rosetta Stone wiki page. In some cases you can leverage your Asterisk knowledge. This page gives you some tips on how to do stuff in FS that you already know how to do with Asterisk: http://wiki.freeswitch.org/wiki/Rosetta_stone You have lots of reading to do! :) You will also need to start doing test phone calls. Make test calls and see how things work. Watch the debug information on the CLI to see what FS is doing with each call. It's very interesting. Join us on IRC when you have questions and want to talk in real-time. -MC (IRC: mercutioviz)
participants (3)
-
Alexander de Greiff
-
Anthony Minessale
-
Michael Collins