Beyond Broadcast, a conference that I was involved in organizing last year is happening again this year. It is coming on the heels of the Integrated Media Association’s Public Media Conference in Boston which is definitely a good time to have it.
Last year was great (despite the rain) with a series of fantastic talks and panels (check the archives). This year promises more of the same.
The purpose of the course was to utilize emerging telephony technologies, concepts and services such as VoIP as a tool for building interactive applications and devices. ITP students are famous for their imaginative use of new technology. One of my goals in this course was to help them apply some of their creative and critical thinking to new telephony technology in the context of the rich history of telephony.
The results of this course were truely fantastic and I will take a bit of time in the coming days/weeks to highlight their projects.
For a quick taste, checkout these projects
For now I want to write a bit about using Asterisk in an environment such as this in the hopes that some Asterisk users/developers offer suggestions and perhaps implement some of my suggestions.
We (18+ students in my class, myself and a couple of students following along without actually being members of the class) used an older Intel P3 machine running RedHat Enterprise Linux 4 (as I recall) with the Secure Linux enabled. We used Asterisk 1.2 and each student had a normal linux user account on the machine. We also had Apache 2, PHP, MySQL (running on another machine), PHP AGI, Perl, Festival and Sphinx.
Many of the issues that we ran into were a direct result of running PHP for both AGI scripting in Asterisk and normal web development with Apache. PHP’s safe mode and SE linux contributed to these difficulties.
The problem is that Asterisk was running as the “asterisk” user and Apache was running as a different user. PHP safe mode was relaxed to allow the group to execute the files but this still threw many of us for a loop several times.
I don’t want to whine about this too much as it is what was available and we just had to deal with it. One thing that might help would be to enable suexec within Asterisk so that AGI scripts could run as the owner of the script. This, I believe is how Apache can be setup to handle things and would go a long way towards alleviating many of the issues we had with both security and usability.
The next major problem we had was in developing dialplans and editing other Asterisk configuration files. At first, I setup an extensions file for each student that was included (using #include) in the main Asterisk extensions.conf file. Unfortunately, we ran up against a hard limit to the number of includes that Asterisk would handle and half of the files never got included.
To alleviate that problem, I put together a PHP script and a shell script that would cat together all of the extension files that needed to be included. These scripts also took care of issuing the reload command to the asterisk manager interface. This worked reasonably well but didn’t have any error checking so that if one user’s extensions file had errors or if they used a context that was named the same as another user problems would arise.
This is probably a harder problem to solve in the current design of Asterisk. I am interested in hearing other’s thoughts on how these problem could be solved. My thoughts are that Asterisk could somehow take some pointers from Apache and allow individual users to have a set of configuration files that get included at run time when their extension is entered. Something similar to the concept of a public_html directory. Asterisk when told to go to a specific user’s context would look in a specific directory and include the dialplan from there.
Perhaps I am just dreaming.. ;-) What do you think?
In any case, none of this would have been possible in a world without Asterisk and on behalf of my students and myself a big thank you to all those who have contributed to Asterisk!
Go Jenny and Cory, go!
“Have you ever been in a situation where you wished your cell phone would ring? Maybe you wanted to look extra important or popular on that hot date. Or maybe you just needed an excuse to escape from an unpleasant meeting.”
Due to overwhelming demand (1 person), I updated my QuickTime Embedding Plugin for WordPress to support Auto Play and Hiding the movie controller.
Just thought you might like to know.. ;-)
Oh yeah, John has been very hard at work on the next version of our Video Commenting Plugin. Prepare to be impressed (I am). It should be released over the weekend.
At this session at Vloggercon 2006, I presented the video comments plugin which this video is using.. Check it out. Click on “Watch Video” after the jump. (Warning, the video is long and big)