php - Migrating an Asterisk interaction program to a web app from a command line python script -


i trying create small web application interact asterisk telephony platform. there lot of similiar stuff out there want learning experience of making own.

here have now: simple python script allows interact manager interface via command line. how script works is: 1) connects asterisk manager interface. 2) gets 2 phone numbers user on cli. 3) originates 2 calls 4) brings originated calls common meetme conference. 5) 'while' loop waits input user. characters a-z allowed. 6) "a-z" correspond .wav files played or "injected" conference use of originating local extension.

to me kinda neat , want same exact thing web app don't know start. languages need use? know basic html , have played javascript. techniques required pass form input variables python script on server (web server , asterisk server same machine)? cgi? using php? need learn @ somepoint... if use php can still "call" python script , pass values it? hoping use javascript allow user play sound corresponds button (just character in command line version) without hitting submit plan on getting work now. guess question turning "should learn php , drop python?" feel add current telephony skill-set (and have fun... asterisk stuff blast) being able build web based tools interact asterisk (maybe freeswitch too).

any hints or guidance appreciated.

i'd recommend wrapping code have in wsgi interface, python standard web services (something cgi functions instead of programs, has simpler interface , can precompiled in web server).

the wsgi web contains links many python web application frameworks too, @ them , pick one. django, pylons or turbogears seem more popular ones , bottle great putting smaller web applications. might want have @ google app engine, provides restricted python environment fast hosting.

generally python has great web frameworks, faster php , can use same skills on , off web, while php useless outside of web. python, won't learn mix html code (as in php), you'd have unlearn if ever work designer.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -